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

Unified Diff: dart/frog/leg/scanner/scanner_task.dart

Issue 9241014: Generate AST nodes for field initializers. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: changes Created 8 years, 11 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 | « dart/frog/leg/scanner/listener.dart ('k') | dart/frog/leg/tree/nodes.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/frog/leg/scanner/scanner_task.dart
diff --git a/dart/frog/leg/scanner/scanner_task.dart b/dart/frog/leg/scanner/scanner_task.dart
index 59bd10b3b858c61a924eef3cff363a1ddf43dbab..76072b368d69e529da41e67f4b183a81ffd01e24 100644
--- a/dart/frog/leg/scanner/scanner_task.dart
+++ b/dart/frog/leg/scanner/scanner_task.dart
@@ -12,9 +12,9 @@ class ScannerTask extends CompilerTask {
for (Link<Element> link = elements; !link.isEmpty(); link = link.tail) {
Element existing = compiler.universe.find(link.head.name);
if (existing !== null) {
+ Node node = link.head.parseNode(compiler, compiler);
// TODO(ahe): Is this the right place to handle this?
- compiler.cancel('Duplicate definition',
- token: link.head.dynamic.beginToken);
+ compiler.cancel('Duplicate definition', node: node);
}
compiler.universe.define(link.head);
}
« no previous file with comments | « dart/frog/leg/scanner/listener.dart ('k') | dart/frog/leg/tree/nodes.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698