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

Unified Diff: lib/src/codegen/ast_builder.dart

Issue 1840713003: fix to run against latest analyzer (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 4 years, 9 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: lib/src/codegen/ast_builder.dart
diff --git a/lib/src/codegen/ast_builder.dart b/lib/src/codegen/ast_builder.dart
index 45c3c12eb8ac09c9b3fef4652c184033949c1006..f2d448e7a225ce783301d5470e76ebea4d78d6d0 100644
--- a/lib/src/codegen/ast_builder.dart
+++ b/lib/src/codegen/ast_builder.dart
@@ -525,6 +525,11 @@ class RawAstBuilder {
return new ExpressionFunctionBody(null, null, body, semi);
}
+ static ExpressionStatement expressionStatement(Expression expression) {
+ Token semi = new Token(TokenType.SEMICOLON, 0);
+ return new ExpressionStatement(expression, semi);
+ }
+
static FunctionDeclaration functionDeclaration(
TypeName rt, SimpleIdentifier f, FunctionExpression fexp) {
return new FunctionDeclaration(null, null, null, rt, null, f, fexp);

Powered by Google App Engine
This is Rietveld 408576698