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

Issue 820773002: Introduce CompletionTarget to take the place of the Node being completed. (Closed)

Created:
6 years ago by Paul Berry
Modified:
6 years ago
Reviewers:
danrubel
CC:
reviews_dartlang.org, Brian Wilkerson
Target Ref:
refs/remotes/git-svn
Visibility:
Public.

Description

Introduce CompletionTarget to take the place of the Node being completed. Instead of locating the node containing the cursor offset using a NodeLocator, identify the edge in the parse tree which will be displaced or modified by the completion proposal. This reduces the number of cases that need to be handled in the _OpTypeAstVisitor, and avoids the need for the _OpTypeAstVisitor to consider character offsets in nearly all cases. R=danrubel@google.com Committed: https://code.google.com/p/dart/source/detail?r=42543

Patch Set 1 #

Total comments: 9
Unified diffs Side-by-side diffs Delta from patch set Stats (+1319 lines, -229 lines) Patch
A pkg/analysis_server/lib/src/services/completion/completion_target.dart View 1 chunk +206 lines, -0 lines 4 comments Download
M pkg/analysis_server/lib/src/services/completion/dart_completion_manager.dart View 5 chunks +17 lines, -3 lines 0 comments Download
M pkg/analysis_server/lib/src/services/completion/optype.dart View 17 chunks +151 lines, -169 lines 2 comments Download
M pkg/analysis_server/test/completion_test.dart View 18 chunks +42 lines, -30 lines 0 comments Download
M pkg/analysis_server/test/services/completion/completion_test_util.dart View 3 chunks +21 lines, -19 lines 0 comments Download
M pkg/analysis_server/test/services/completion/optype_test.dart View 6 chunks +9 lines, -7 lines 3 comments Download
M pkg/analyzer/lib/src/generated/ast.dart View 112 chunks +865 lines, -1 line 0 comments Download
M pkg/analyzer/lib/src/generated/element_resolver.dart View 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (1 generated)
Paul Berry
This is not quite as polished (or as thoroughly tested) as I would normally like, ...
6 years ago (2014-12-19 22:17:47 UTC) #2
danrubel
LGTM. Nice work. https://codereview.chromium.org/820773002/diff/1/pkg/analysis_server/lib/src/services/completion/completion_target.dart File pkg/analysis_server/lib/src/services/completion/completion_target.dart (right): https://codereview.chromium.org/820773002/diff/1/pkg/analysis_server/lib/src/services/completion/completion_target.dart#newcode40 pkg/analysis_server/lib/src/services/completion/completion_target.dart:40: * target will be the edge ...
6 years ago (2014-12-20 05:22:57 UTC) #3
Paul Berry
https://codereview.chromium.org/820773002/diff/1/pkg/analysis_server/lib/src/services/completion/completion_target.dart File pkg/analysis_server/lib/src/services/completion/completion_target.dart (right): https://codereview.chromium.org/820773002/diff/1/pkg/analysis_server/lib/src/services/completion/completion_target.dart#newcode40 pkg/analysis_server/lib/src/services/completion/completion_target.dart:40: * target will be the edge marked "b", so ...
6 years ago (2014-12-20 15:43:25 UTC) #4
Paul Berry
6 years ago (2014-12-20 15:47:36 UTC) #5
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as 42543 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698