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

Issue 2419013004: Add local variable declaration token position to service protocol (Closed)

Created:
4 years, 2 months ago by Cutch
Modified:
4 years, 2 months ago
Reviewers:
turnidge, rmacnak
CC:
reviews_dartlang.org, turnidge, rmacnak, Cutch, vm-dev_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Add local variable declaration token position to service protocol - [x] Add three public fields to the "BoundVariable" service type: declarationTokenPos, scopeStartTokenPos, and scopeEndTokenPos. - [x] Extend LocalVarDescriptors to hold the declaration token position (it already had the scope visibility boundaries). - [x] Extend ContextScope to hold the declaration token position. - [x] Add a unit test which verifies this works for local variables, function parameters, and closure captured variables. Fixes https://github.com/dart-lang/sdk/issues/25569 BUG=

Patch Set 1 #

Patch Set 2 : test closure variables #

Total comments: 5

Patch Set 3 : merge and rmacnak review #

Patch Set 4 : ... #

Unified diffs Side-by-side diffs Delta from patch set Stats (+328 lines, -57 lines) Patch
M runtime/observatory/lib/src/service/object.dart View 1 2 6 chunks +39 lines, -6 lines 0 comments Download
A runtime/observatory/tests/service/local_variable_declaration_test.dart View 1 1 chunk +101 lines, -0 lines 0 comments Download
M runtime/vm/ast.cc View 1 chunk +2 lines, -1 line 0 comments Download
M runtime/vm/ast_printer_test.cc View 1 chunk +1 line, -0 lines 0 comments Download
M runtime/vm/ast_test.cc View 2 chunks +2 lines, -0 lines 0 comments Download
M runtime/vm/ast_transformer.cc View 1 chunk +4 lines, -1 line 0 comments Download
M runtime/vm/code_generator.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/code_generator_test.cc View 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/debugger.h View 1 chunk +3 lines, -2 lines 0 comments Download
M runtime/vm/debugger.cc View 1 2 6 chunks +27 lines, -17 lines 0 comments Download
M runtime/vm/flow_graph_builder.cc View 2 chunks +2 lines, -0 lines 0 comments Download
M runtime/vm/kernel_to_il.cc View 1 2 3 chunks +15 lines, -4 lines 0 comments Download
M runtime/vm/object.h View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M runtime/vm/object.cc View 1 2 1 chunk +15 lines, -0 lines 0 comments Download
M runtime/vm/object_service.cc View 1 2 1 chunk +3 lines, -2 lines 0 comments Download
M runtime/vm/object_test.cc View 1 chunk +12 lines, -3 lines 0 comments Download
M runtime/vm/parser.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M runtime/vm/parser.cc View 1 2 29 chunks +47 lines, -9 lines 0 comments Download
M runtime/vm/raw_object.h View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M runtime/vm/raw_object_snapshot.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M runtime/vm/regexp_assembler_ir.cc View 2 chunks +8 lines, -2 lines 0 comments Download
M runtime/vm/scopes.h View 1 2 3 chunks +6 lines, -2 lines 0 comments Download
M runtime/vm/scopes.cc View 1 2 6 chunks +12 lines, -2 lines 0 comments Download
M runtime/vm/scopes_test.cc View 1 chunk +8 lines, -4 lines 0 comments Download
M runtime/vm/service/service.md View 1 2 3 2 chunks +11 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (6 generated)
Cutch
4 years, 2 months ago (2016-10-14 22:13:27 UTC) #5
rmacnak
lgtm https://codereview.chromium.org/2419013004/diff/20001/runtime/observatory/lib/src/service/object.dart File runtime/observatory/lib/src/service/object.dart (right): https://codereview.chromium.org/2419013004/diff/20001/runtime/observatory/lib/src/service/object.dart#newcode3419 runtime/observatory/lib/src/service/object.dart:3419: // Line and column numbers are ...are 1-origin ...
4 years, 2 months ago (2016-10-14 23:10:38 UTC) #6
Cutch
https://codereview.chromium.org/2419013004/diff/20001/runtime/observatory/lib/src/service/object.dart File runtime/observatory/lib/src/service/object.dart (right): https://codereview.chromium.org/2419013004/diff/20001/runtime/observatory/lib/src/service/object.dart#newcode3419 runtime/observatory/lib/src/service/object.dart:3419: // Line and column numbers are On 2016/10/14 23:10:38, ...
4 years, 2 months ago (2016-10-17 18:17:27 UTC) #7
Cutch
4 years, 2 months ago (2016-10-17 18:18:31 UTC) #9
Message was sent while issue was closed.
Committed patchset #4 (id:60001) manually as
8061bd5a8ac94934c1dbcb99010364eafe392bc8 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698