Skip to content

Commit 6fa0781

Browse files
ckennellycopybara-github
authored andcommitted
No public description
PiperOrigin-RevId: 753181562
1 parent 05ad40c commit 6fa0781

File tree

99 files changed

+368
-230
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

99 files changed

+368
-230
lines changed

base/attribute.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ bool AttributeQualifier::operator<(const AttributeQualifier& other) const {
206206
bool Attribute::operator==(const Attribute& other) const {
207207
// We cannot check pointer equality as a short circuit because we have to
208208
// treat all invalid AttributeQualifier as not equal to each other.
209-
// TODO we only support Ident-rooted attributes at the moment.
209+
// TODO(issues/41) we only support Ident-rooted attributes at the moment.
210210
if (variable_name() != other.variable_name()) {
211211
return false;
212212
}

base/attribute.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ class AttributeQualifier final {
124124

125125
// AttributeQualifierPattern matches a segment in
126126
// attribute resolutuion path. AttributeQualifierPattern is capable of
127-
// matching path elements of types string/int64_t/uint64/bool.
127+
// matching path elements of types string/int64/uint64/bool.
128128
class AttributeQualifierPattern final {
129129
private:
130130
// Qualifier value. If not set, treated as wildcard.

base/function_result.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class FunctionResult final {
5050
return descriptor() == other.descriptor();
5151
}
5252

53-
// TODO: re-implement argument capture
53+
// TODO(uncreated-issue/5): re-implement argument capture
5454

5555
private:
5656
FunctionDescriptor descriptor_;

checker/checker_options.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ struct CheckerOptions {
3232
// types, durations, timestamps, and any types. This is inconsistent with
3333
// CEL's usual interpretation of null as a literal JSON null.
3434
//
35-
// TODO: Need a concrete plan for updating existing CEL
35+
// TODO(uncreated-issue/75): Need a concrete plan for updating existing CEL
3636
// expressions that depend on the old behavior.
3737
bool enable_legacy_null_assignment = true;
3838

checker/internal/type_checker_impl.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ bool IsPbNullFieldAssignable(const Type& value, const Type& field) {
123123
// Flatten the type to the AST type representation to remove any lifecycle
124124
// dependency between the type check environment and the AST.
125125
//
126-
// TODO: It may be better to do this at the point of serialization
126+
// TODO(uncreated-issue/72): It may be better to do this at the point of serialization
127127
// in the future, but requires corresponding change for the runtime to correctly
128128
// rehydrate the serialized Ast.
129129
absl::StatusOr<AstType> FlattenType(const Type& type);
@@ -598,7 +598,7 @@ void ResolveVisitor::PostVisitMap(const Expr& expr, const MapExpr& map) {
598598
// homogeneously typed, otherwise assume the type parameter is dyn (defer to
599599
// runtime for enforcing type compatibility).
600600
//
601-
// TODO: Widening behavior is not well documented for map / list
601+
// TODO(uncreated-issue/72): Widening behavior is not well documented for map / list
602602
// construction in the spec and is a bit inconsistent between implementations.
603603
//
604604
// In the future, we should probably default enforce homogeneously
@@ -1222,7 +1222,7 @@ class ResolveRewriter : public AstRewriterBase {
12221222
auto& ast_ref = reference_map_[expr.id()];
12231223
ast_ref.set_name(decl->name());
12241224
for (const auto& overload : decl->overloads()) {
1225-
// TODO: narrow based on type inferences and shape.
1225+
// TODO(uncreated-issue/72): narrow based on type inferences and shape.
12261226
ast_ref.mutable_overload_id().push_back(overload.id());
12271227
}
12281228
expr.mutable_call_expr().set_function(decl->name());

checker/internal/type_inference_context.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ bool IsWildCardType(Type type) {
4949
// Historically, structs and abstract types were considered nullable. This is
5050
// inconsistent with CEL's usual interpretation of null as a literal JSON null.
5151
//
52-
// TODO: Need a concrete plan for updating existing CEL expressions
52+
// TODO(uncreated-issue/74): Need a concrete plan for updating existing CEL expressions
5353
// that depend on the old behavior.
5454
bool IsLegacyNullable(Type type) {
5555
switch (type.kind()) {

checker/internal/type_inference_context.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
namespace cel::checker_internal {
3535

3636
// Class manages context for type inferences in the type checker.
37-
// TODO: for now, just checks assignability for concrete types.
37+
// TODO(uncreated-issue/72): for now, just checks assignability for concrete types.
3838
// Support for finding substitutions of type parameters will be added in a
3939
// follow-up CL.
4040
class TypeInferenceContext {

checker/internal/type_inference_context_test.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ TEST(TypeInferenceContextTest, InstantiateTypeParamsOpaque) {
208208
IsTypeParam("T%2"), IsTypeParam("T%1")));
209209
}
210210

211-
// TODO: Does not consider any substitutions based on type
211+
// TODO(uncreated-issue/72): Does not consider any substitutions based on type
212212
// inferences yet.
213213
TEST(TypeInferenceContextTest, OpaqueTypeAssignable) {
214214
google::protobuf::Arena arena;

checker/standard_library.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -845,7 +845,7 @@ absl::Status AddTypeConstantVariables(TypeCheckerBuilder& builder) {
845845
absl::Status AddEnumConstants(TypeCheckerBuilder& builder) {
846846
VariableDecl pb_null;
847847
pb_null.set_name("google.protobuf.NullValue.NULL_VALUE");
848-
// TODO: This is interpreted as an enum (int) or null in
848+
// TODO(uncreated-issue/74): This is interpreted as an enum (int) or null in
849849
// different cases. We should add some additional spec tests to cover this and
850850
// update the behavior to be consistent.
851851
pb_null.set_type(IntType());

checker/standard_library_test.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ class StdLibDefinitionsTest
242242
// This is not intended to be exhaustive since it is expected to be covered by
243243
// spec conformance tests.
244244
//
245-
// TODO: Tests are fairly minimal right now -- it's not possible to
245+
// TODO(uncreated-issue/72): Tests are fairly minimal right now -- it's not possible to
246246
// test thoroughly without a more complete implementation of the type checker.
247247
// Type-parameterized functions are not yet checkable.
248248
TEST_P(StdLibDefinitionsTest, Runner) {

0 commit comments

Comments
 (0)