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

Issue 2987983004: Issue 30034. Parse annotations for typedef(s) and resynthesize from Kernel in analyzer. (Closed)

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

Description

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -12 lines) Patch
M pkg/analyzer/lib/src/dart/element/element.dart View 1 chunk +4 lines, -0 lines 0 comments Download
M pkg/analyzer/test/src/summary/resynthesize_kernel_test.dart View 1 chunk +0 lines, -5 lines 0 comments Download
M pkg/front_end/lib/src/fasta/source/diet_listener.dart View 2 chunks +18 lines, -6 lines 2 comments Download
M pkg/front_end/testcases/ast_builder.status View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 6 (1 generated)
scheglov
3 years, 4 months ago (2017-07-27 20:57:09 UTC) #1
Brian Wilkerson
lgtm
3 years, 4 months ago (2017-07-27 21:02:30 UTC) #2
Siggi Cherem (dart-lang)
lgtm with small suggestion below https://codereview.chromium.org/2987983004/diff/1/pkg/front_end/lib/src/fasta/source/diet_listener.dart File pkg/front_end/lib/src/fasta/source/diet_listener.dart (right): https://codereview.chromium.org/2987983004/diff/1/pkg/front_end/lib/src/fasta/source/diet_listener.dart#newcode208 pkg/front_end/lib/src/fasta/source/diet_listener.dart:208: var listener = createListener(typedefBuilder, ...
3 years, 4 months ago (2017-07-28 00:05:14 UTC) #3
scheglov
Committed patchset #1 (id:1) manually as f9424908a528420346e078a28709e40d809c28c1 (presubmit successful).
3 years, 4 months ago (2017-08-01 17:08:21 UTC) #5
scheglov
3 years, 4 months ago (2017-08-01 17:10:21 UTC) #6
Message was sent while issue was closed.
https://codereview.chromium.org/2987983004/diff/1/pkg/front_end/lib/src/fasta...
File pkg/front_end/lib/src/fasta/source/diet_listener.dart (right):

https://codereview.chromium.org/2987983004/diff/1/pkg/front_end/lib/src/fasta...
pkg/front_end/lib/src/fasta/source/diet_listener.dart:208: var listener =
createListener(typedefBuilder, memberScope, false);
On 2017/07/28 00:05:14, Siggi Cherem (dart-lang) wrote:
> could we pull this out into a common function? It seems to be almost the same
as
> what we do when parsing annotations in classes.
> 
> Possibly:
>   void parseMetadata(Builder builder, Scope scope, Token metadata, void
> addAnnotation(Expression)) {
>   }
> 
> so you can call it here as:
> 
>    parseMetadata(typedefBuilder, memberScope, metadata,
> typedefBuilder.target.addAnnotation);
> 
> ?

Done.

Powered by Google App Engine
This is Rietveld 408576698