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

Issue 2732363002: Add support for documentation comments to most of AstBuilder. (Closed)

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

Description

Add support for documentation comments to most of AstBuilder. This CL addresses all use cases except for documentation comments on type parameter formals. R=scheglov@google.com Committed: https://github.com/dart-lang/sdk/commit/a6ee0dfd3f04f1236a072191e9da17ede8467d4a

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+172 lines, -121 lines) Patch
M pkg/analyzer/test/generated/parser_fasta_test.dart View 4 chunks +1 line, -78 lines 0 comments Download
M pkg/analyzer/test/generated/parser_test.dart View 14 chunks +112 lines, -0 lines 2 comments Download
M pkg/front_end/lib/src/fasta/analyzer/ast_builder.dart View 22 chunks +46 lines, -32 lines 0 comments Download
M pkg/front_end/lib/src/fasta/analyzer/token_utils.dart View 2 chunks +12 lines, -11 lines 0 comments Download
M pkg/front_end/lib/src/fasta/source/stack_listener.dart View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 7 (2 generated)
Paul Berry
3 years, 9 months ago (2017-03-07 22:14:46 UTC) #2
scheglov
LGTM
3 years, 9 months ago (2017-03-07 22:17:29 UTC) #3
Paul Berry
Committed patchset #1 (id:1) manually as a6ee0dfd3f04f1236a072191e9da17ede8467d4a (presubmit successful).
3 years, 9 months ago (2017-03-07 22:19:58 UTC) #5
ahe
lgtm I'm pleasantly surprised how well this integrates with what appears to be little overhead ...
3 years, 9 months ago (2017-03-09 13:56:01 UTC) #6
Paul Berry
3 years, 9 months ago (2017-03-09 16:42:04 UTC) #7
Message was sent while issue was closed.
https://codereview.chromium.org/2732363002/diff/1/pkg/analyzer/test/generated...
File pkg/analyzer/test/generated/parser_test.dart (right):

https://codereview.chromium.org/2732363002/diff/1/pkg/analyzer/test/generated...
pkg/analyzer/test/generated/parser_test.dart:359: var constructor =
parser.parseClassMember('C') as ConstructorDeclaration;
On 2017/03/09 13:56:01, ahe wrote:
> Why don't you just put the type on the variable?

Two reasons:

1. it makes the downcast obvious.  A casual reader might see
"ConstructorDeclaration constructor = parser.parseClassMember('C');" and fail to
notice that the assignment might fail if parseClassMember returns the wrong
type.

2. it guarantees that if parseClassMember returns the wrong type, we will get a
test failure regardless of whether the test is running in checked mode.

Powered by Google App Engine
This is Rietveld 408576698