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

Unified Diff: runtime/vm/object_test.cc

Issue 2419013004: Add local variable declaration token position to service protocol (Closed)
Patch Set: test closure variables 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/object_test.cc
diff --git a/runtime/vm/object_test.cc b/runtime/vm/object_test.cc
index d4594d6004db4a473cc5435eced983c6af9f8bc4..86852f41562ec11f98262d59e7196e93f5ce9c8d 100644
--- a/runtime/vm/object_test.cc
+++ b/runtime/vm/object_test.cc
@@ -2535,17 +2535,26 @@ VM_TEST_CASE(ContextScope) {
const Type& dynamic_type = Type::ZoneHandle(Type::DynamicType());
const String& a = String::ZoneHandle(Symbols::New(thread, "a"));
LocalVariable* var_a =
- new LocalVariable(TokenPosition::kNoSource, a, dynamic_type);
+ new LocalVariable(TokenPosition::kNoSource,
+ TokenPosition::kNoSource,
+ a,
+ dynamic_type);
parent_scope->AddVariable(var_a);
const String& b = String::ZoneHandle(Symbols::New(thread, "b"));
LocalVariable* var_b =
- new LocalVariable(TokenPosition::kNoSource, b, dynamic_type);
+ new LocalVariable(TokenPosition::kNoSource,
+ TokenPosition::kNoSource,
+ b,
+ dynamic_type);
local_scope->AddVariable(var_b);
const String& c = String::ZoneHandle(Symbols::New(thread, "c"));
LocalVariable* var_c =
- new LocalVariable(TokenPosition::kNoSource, c, dynamic_type);
+ new LocalVariable(TokenPosition::kNoSource,
+ TokenPosition::kNoSource,
+ c,
+ dynamic_type);
parent_scope->AddVariable(var_c);
bool test_only = false; // Please, insert alias.

Powered by Google App Engine
This is Rietveld 408576698