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

Unified Diff: pkg/kernel/lib/analyzer/ast_from_analyzer.dart

Issue 2665723002: Implement canonical name scheme in kernel. (Closed)
Patch Set: Address Kevin's comments Created 3 years, 10 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
« no previous file with comments | « pkg/kernel/binary.md ('k') | pkg/kernel/lib/analyzer/loader.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/kernel/lib/analyzer/ast_from_analyzer.dart
diff --git a/pkg/kernel/lib/analyzer/ast_from_analyzer.dart b/pkg/kernel/lib/analyzer/ast_from_analyzer.dart
index 45ebe7b996e3d444c6733dba546c37c28cde586f..858700e901a75e73d20c3927e23df3976ee34901 100644
--- a/pkg/kernel/lib/analyzer/ast_from_analyzer.dart
+++ b/pkg/kernel/lib/analyzer/ast_from_analyzer.dart
@@ -2863,9 +2863,10 @@ class MemberBodyBuilder extends GeneralizingAstVisitor<Null> {
}
if (constructorsField == null) {
ast.ListLiteral literal = new ast.ListLiteral(<ast.Expression>[]);
- constructorsField = new ast.Field(constructors, isStatic: true,
- initializer: literal, fileUri: classNode.fileUri)
- ..fileOffset = classNode.fileOffset;
+ constructorsField = new ast.Field(constructors,
+ isStatic: true,
+ initializer: literal,
+ fileUri: classNode.fileUri)..fileOffset = classNode.fileOffset;
classNode.addMember(constructorsField);
}
ast.ListLiteral literal = constructorsField.initializer;
@@ -2881,7 +2882,7 @@ class MemberBodyBuilder extends GeneralizingAstVisitor<Null> {
}
var function = procedure.function;
function.body = new ast.ExpressionStatement(expression)
- ..parent = function;
+ ..parent = function;
}
}
« no previous file with comments | « pkg/kernel/binary.md ('k') | pkg/kernel/lib/analyzer/loader.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698