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

Unified Diff: runtime/vm/object.h

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.h
diff --git a/runtime/vm/object.h b/runtime/vm/object.h
index 82f3ef7b990bdc2b6ef496bd74688da7026d3bf0..e4552ad734847c71abbb6638975ec2b8724ecfac 100644
--- a/runtime/vm/object.h
+++ b/runtime/vm/object.h
@@ -5122,6 +5122,10 @@ class ContextScope : public Object {
TokenPosition TokenIndexAt(intptr_t scope_index) const;
void SetTokenIndexAt(intptr_t scope_index, TokenPosition token_pos) const;
+ TokenPosition DeclarationTokenIndexAt(intptr_t scope_index) const;
+ void SetDeclarationTokenIndexAt(intptr_t scope_index,
+ TokenPosition declaration_token_pos) const;
+
RawString* NameAt(intptr_t scope_index) const;
void SetNameAt(intptr_t scope_index, const String& name) const;

Powered by Google App Engine
This is Rietveld 408576698