| Index: runtime/vm/object.cc
|
| diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc
|
| index c9d92c23b8bc7a29475194c4bf5cc9722de0694b..31b1165a060e39fa1742ee23416964b189a74dfc 100644
|
| --- a/runtime/vm/object.cc
|
| +++ b/runtime/vm/object.cc
|
| @@ -14801,6 +14801,21 @@ void ContextScope::SetTokenIndexAt(intptr_t scope_index,
|
| }
|
|
|
|
|
| +TokenPosition ContextScope::DeclarationTokenIndexAt(
|
| + intptr_t scope_index) const {
|
| + return TokenPosition(
|
| + Smi::Value(VariableDescAddr(scope_index)->declaration_token_pos));
|
| +}
|
| +
|
| +
|
| +void ContextScope::SetDeclarationTokenIndexAt(
|
| + intptr_t scope_index,
|
| + TokenPosition declaration_token_pos) const {
|
| + StoreSmi(&VariableDescAddr(scope_index)->declaration_token_pos,
|
| + Smi::New(declaration_token_pos.value()));
|
| +}
|
| +
|
| +
|
| RawString* ContextScope::NameAt(intptr_t scope_index) const {
|
| return VariableDescAddr(scope_index)->name;
|
| }
|
|
|