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

Issue 2983173002: Remember isFieldFormal informative flag in VariableDeclaration(s). (Closed)

Created:
3 years, 5 months ago by scheglov
Modified:
3 years, 5 months ago
CC:
reviews_dartlang.org, dart-fe-team+reviews_google.com
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Remember isFieldFormal informative flag in VariableDeclaration(s). It is informative in the same way as documentation. Yesterday I tried to make Analyzer and Analysis Server stop using FieldFormalParameterElement(s) and found one important use case requested by the Flutter team. We need to show documentation of a field when user requests documentation on the corresponding field formal named parameter. This happens outside of the file that declares the parameter and the field, so we don't have AST available. Of course we could resolve the unit, but it would cost us something. And if we decide that it is OK, then maybe we don't need to have documenation comments in elements at all. This is of course more convenience, and we could store documentation and parameter to field mappings outside, like we store index. Just a compromise - convenience vs. purity. R=ahe@google.com, kmillikin@google.com, paulberry@google.com, sigmund@google.com BUG= Committed: https://github.com/dart-lang/sdk/commit/1170b117c9eb33b0cd4eee7d44e4de19877e6b53

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -6 lines) Patch
M pkg/compiler/lib/src/kernel/kernel_debug.dart View 1 chunk +2 lines, -1 line 0 comments Download
M pkg/front_end/lib/src/fasta/kernel/kernel_formal_parameter_builder.dart View 1 chunk +4 lines, -1 line 0 comments Download
M pkg/front_end/lib/src/fasta/kernel/kernel_shadow_ast.dart View 2 chunks +3 lines, -1 line 0 comments Download
M pkg/kernel/lib/ast.dart View 2 chunks +17 lines, -2 lines 0 comments Download
M pkg/kernel/lib/clone.dart View 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 4 (1 generated)
scheglov
3 years, 5 months ago (2017-07-20 15:58:01 UTC) #1
Paul Berry
lgtm
3 years, 5 months ago (2017-07-20 16:32:31 UTC) #2
scheglov
3 years, 5 months ago (2017-07-20 16:53:10 UTC) #4
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
1170b117c9eb33b0cd4eee7d44e4de19877e6b53 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698