| Index: runtime/vm/object.cc
|
| diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc
|
| index d958643d71ed9bcc691ed0638198d73468dd8f20..58213ac3ffd1d9bfed29f8dbe00ca0ce44645d12 100644
|
| --- a/runtime/vm/object.cc
|
| +++ b/runtime/vm/object.cc
|
| @@ -14811,6 +14811,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;
|
| }
|
|
|