Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(109)

Unified Diff: pkg/docgen/lib/src/models/model_helpers.dart

Issue 1166723002: Add StringLengthConstantExpression (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Update .fromEnvironment test expectations. Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: pkg/docgen/lib/src/models/model_helpers.dart
diff --git a/pkg/docgen/lib/src/models/model_helpers.dart b/pkg/docgen/lib/src/models/model_helpers.dart
index 70f158d6acd51d5bd3c8af5c0998282a838def20..0aa8c9f56681f09075658502c23df3496f04552f 100644
--- a/pkg/docgen/lib/src/models/model_helpers.dart
+++ b/pkg/docgen/lib/src/models/model_helpers.dart
@@ -229,6 +229,12 @@ class AnnotationCreator
}
@override
+ Annotation visitStringLength(StringLengthConstantExpression exp,
+ AnnotationInfo context) {
+ return null;
+ }
+
+ @override
Annotation visitDeferred(DeferredConstantExpression exp,
AnnotationInfo context) {
return exp.expression.accept(this, context);
« no previous file with comments | « pkg/compiler/lib/src/constants/expressions.dart ('k') | tests/compiler/dart2js/constant_expression_evaluate_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698