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

Issue 2722253002: Calculate default args for local reference completions. (Closed)

Created:
3 years, 9 months ago by pquitslund
Modified:
3 years, 9 months ago
CC:
reviews_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Calculate default args for local reference completions. First step towards wiring up default args for completions. See: https://github.com/flutter/flutter-intellij/issues/553 Next up: similar enhancements for type_members, imported_refs, etc. BUG= R=brianwilkerson@google.com, scheglov@google.com Committed: https://github.com/dart-lang/sdk/commit/d1bfe8bccb8560a5d23a48f556ff280174bf6226

Patch Set 1 #

Total comments: 6

Patch Set 2 : Cleanup; added test. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+101 lines, -10 lines) Patch
M pkg/analysis_server/lib/src/services/completion/dart/local_reference_contributor.dart View 1 1 chunk +24 lines, -5 lines 0 comments Download
M pkg/analysis_server/test/services/completion/dart/completion_contributor_util.dart View 4 chunks +13 lines, -5 lines 0 comments Download
M pkg/analysis_server/test/services/completion/dart/local_reference_contributor_test.dart View 1 1 chunk +64 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (2 generated)
pquitslund
3 years, 9 months ago (2017-03-01 18:18:26 UTC) #2
scheglov
lgtm https://codereview.chromium.org/2722253002/diff/1/pkg/analysis_server/lib/src/services/completion/dart/local_reference_contributor.dart File pkg/analysis_server/lib/src/services/completion/dart/local_reference_contributor.dart (right): https://codereview.chromium.org/2722253002/diff/1/pkg/analysis_server/lib/src/services/completion/dart/local_reference_contributor.dart#newcode488 pkg/analysis_server/lib/src/services/completion/dart/local_reference_contributor.dart:488: List<String> args = requiredParams.map((p) => p.element.name).toList(); It seems ...
3 years, 9 months ago (2017-03-01 18:33:41 UTC) #3
Brian Wilkerson
lgtm https://codereview.chromium.org/2722253002/diff/1/pkg/analysis_server/lib/src/services/completion/dart/local_reference_contributor.dart File pkg/analysis_server/lib/src/services/completion/dart/local_reference_contributor.dart (right): https://codereview.chromium.org/2722253002/diff/1/pkg/analysis_server/lib/src/services/completion/dart/local_reference_contributor.dart#newcode475 pkg/analysis_server/lib/src/services/completion/dart/local_reference_contributor.dart:475: .where((FormalParameter param) => param is! DefaultFormalParameter); I know ...
3 years, 9 months ago (2017-03-01 18:37:42 UTC) #4
pquitslund
Thanks! Comments addressed. Take another look? https://codereview.chromium.org/2722253002/diff/1/pkg/analysis_server/lib/src/services/completion/dart/local_reference_contributor.dart File pkg/analysis_server/lib/src/services/completion/dart/local_reference_contributor.dart (right): https://codereview.chromium.org/2722253002/diff/1/pkg/analysis_server/lib/src/services/completion/dart/local_reference_contributor.dart#newcode475 pkg/analysis_server/lib/src/services/completion/dart/local_reference_contributor.dart:475: .where((FormalParameter param) => ...
3 years, 9 months ago (2017-03-01 19:24:44 UTC) #5
Brian Wilkerson
lgtm
3 years, 9 months ago (2017-03-01 19:27:54 UTC) #6
scheglov
lgtm
3 years, 9 months ago (2017-03-01 19:29:32 UTC) #7
pquitslund
3 years, 9 months ago (2017-03-01 19:45:11 UTC) #9
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
d1bfe8bccb8560a5d23a48f556ff280174bf6226 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698