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

Unified Diff: runtime/vm/ast.cc

Issue 2419013004: Add local variable declaration token position to service protocol (Closed)
Patch Set: ... Created 4 years, 2 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: runtime/vm/ast.cc
diff --git a/runtime/vm/ast.cc b/runtime/vm/ast.cc
index 2ba8dc1504a9bc889ed7885d9408269398a2e0b2..cfe1637e5a695d95cab993bea5e5e4df27377003 100644
--- a/runtime/vm/ast.cc
+++ b/runtime/vm/ast.cc
@@ -111,7 +111,8 @@ LocalVariable* LetNode::AddInitializer(AstNode* node) {
OS::SNPrint(name, sizeof(name), ":lt%s_%" Pd "",
token_pos().ToCString(), vars_.length());
LocalVariable* temp_var =
- new LocalVariable(token_pos(),
+ new LocalVariable(TokenPosition::kNoSource,
+ token_pos(),
String::ZoneHandle(zone, Symbols::New(thread, name)),
Object::dynamic_type());
vars_.Add(temp_var);
« no previous file with comments | « runtime/observatory/tests/service/local_variable_declaration_test.dart ('k') | runtime/vm/ast_printer_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698