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

Issue 837793003: Include required parameter names when completing a method call. (Closed)

Created:
5 years, 11 months ago by Paul Berry
Modified:
5 years, 11 months ago
Reviewers:
danrubel
CC:
reviews_dartlang.org, ricow1
Target Ref:
refs/remotes/git-svn
Visibility:
Public.

Description

Include required parameter names when completing a method call. When a method such as "void m(int i, int j)" is completed, instead of simply inserting "m()", we insert "m(i, j)", we highlight "i", and we set up linked position groups for "i" and "j" so that the user can press tab to move from one parameter to the next. Optional parameters (both named and positional) are not handled by this logic--the user must still enter them manually. R=danrubel@google.com Committed: https://code.google.com/p/dart/source/detail?r=42667

Patch Set 1 #

Total comments: 10

Patch Set 2 : Address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+318 lines, -78 lines) Patch
M editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/generated/types/CompletionSuggestion.java View 10 chunks +20 lines, -20 lines 0 comments Download
M editor/tools/plugins/com.google.dart.server_test/src/com/google/dart/server/internal/remote/RemoteAnalysisServerImplTest.java View 3 chunks +3 lines, -3 lines 0 comments Download
M editor/tools/plugins/com.google.dart.tools.core_test/src/com/google/dart/tools/core/completion/DartSuggestionReceiverTest.java View 5 chunks +10 lines, -10 lines 0 comments Download
M editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/text/dart/DartServerProposal.java View 1 9 chunks +101 lines, -23 lines 0 comments Download
M pkg/analysis_server/doc/api.html View 1 chunk +3 lines, -3 lines 0 comments Download
M pkg/analysis_server/lib/src/generated_protocol.dart View 8 chunks +13 lines, -13 lines 0 comments Download
M pkg/analysis_server/lib/src/services/completion/suggestion_builder.dart View 2 chunks +12 lines, -0 lines 0 comments Download
M pkg/analysis_server/test/integration/protocol_matchers.dart View 2 chunks +2 lines, -2 lines 0 comments Download
M pkg/analysis_server/test/services/completion/invocation_computer_test.dart View 2 chunks +150 lines, -0 lines 0 comments Download
M pkg/analysis_server/tool/spec/spec_input.html View 1 chunk +4 lines, -4 lines 0 comments Download

Messages

Total messages: 6 (1 generated)
Paul Berry
5 years, 11 months ago (2015-01-06 22:48:59 UTC) #2
danrubel
Overall LGTM. Thanks! https://codereview.chromium.org/837793003/diff/1/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/text/dart/DartServerProposal.java File editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/text/dart/DartServerProposal.java (right): https://codereview.chromium.org/837793003/diff/1/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/text/dart/DartServerProposal.java#newcode189 editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/text/dart/DartServerProposal.java:189: * Otherwise null. Computed by computeReplacement(). ...
5 years, 11 months ago (2015-01-06 23:49:37 UTC) #3
Paul Berry
https://codereview.chromium.org/837793003/diff/1/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/text/dart/DartServerProposal.java File editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/text/dart/DartServerProposal.java (right): https://codereview.chromium.org/837793003/diff/1/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/text/dart/DartServerProposal.java#newcode189 editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/text/dart/DartServerProposal.java:189: * Otherwise null. Computed by computeReplacement(). On 2015/01/06 23:49:36, ...
5 years, 11 months ago (2015-01-07 15:39:14 UTC) #4
danrubel
lgtm
5 years, 11 months ago (2015-01-07 15:54:57 UTC) #5
Paul Berry
5 years, 11 months ago (2015-01-07 16:57:49 UTC) #6
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as 42667 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698