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

Issue 1943013002: Fix for serializing annotations. (Closed)

Created:
4 years, 7 months ago by scheglov
Modified:
4 years, 7 months ago
Reviewers:
Paul Berry
CC:
reviews_dartlang.org
Base URL:
git@github.com:dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Fix for serializing annotations. Instead of using artificial TypeName nodes we just pass all the required information. This helps to avoid the situation when we mutate the AST because we re-parent nodes in annotation. It would be nice if annotations used the same AST structure as instance creation :-( R=paulberry@google.com BUG= Committed: https://github.com/dart-lang/sdk/commit/4c76af4511c074a476ba680f1e145ebbae009aad

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+69 lines, -76 lines) Patch
M pkg/analyzer/lib/src/summary/summarize_ast.dart View 7 chunks +29 lines, -16 lines 0 comments Download
M pkg/analyzer/lib/src/summary/summarize_const_expr.dart View 7 chunks +23 lines, -11 lines 4 comments Download
M pkg/analyzer/lib/src/summary/summarize_elements.dart View 3 chunks +17 lines, -19 lines 0 comments Download
M pkg/analyzer/test/src/summary/resynthesize_ast_test.dart View 2 chunks +0 lines, -30 lines 0 comments Download

Messages

Total messages: 5 (1 generated)
scheglov
4 years, 7 months ago (2016-05-02 20:25:48 UTC) #1
Paul Berry
lgtm https://codereview.chromium.org/1943013002/diff/1/pkg/analyzer/lib/src/summary/summarize_const_expr.dart File pkg/analyzer/lib/src/summary/summarize_const_expr.dart (right): https://codereview.chromium.org/1943013002/diff/1/pkg/analyzer/lib/src/summary/summarize_const_expr.dart#newcode107 pkg/analyzer/lib/src/summary/summarize_const_expr.dart:107: * [name] in the class identified by [typeName]. ...
4 years, 7 months ago (2016-05-02 20:35:48 UTC) #2
scheglov
Committed patchset #1 (id:1) manually as 4c76af4511c074a476ba680f1e145ebbae009aad (presubmit successful).
4 years, 7 months ago (2016-05-02 20:54:37 UTC) #4
scheglov
4 years, 7 months ago (2016-05-02 20:55:04 UTC) #5
Message was sent while issue was closed.
https://codereview.chromium.org/1943013002/diff/1/pkg/analyzer/lib/src/summar...
File pkg/analyzer/lib/src/summary/summarize_const_expr.dart (right):

https://codereview.chromium.org/1943013002/diff/1/pkg/analyzer/lib/src/summar...
pkg/analyzer/lib/src/summary/summarize_const_expr.dart:107: * [name] in the
class identified by [typeName].
On 2016/05/02 20:35:48, Paul Berry wrote:
> Can you include some documentation of [type] and [typeArguments]?  In
> particular:
> 
> - If the constructor invocation specifies type arguments, is it necessary for
> the caller to ensure that type.typeArguments == typeArguments?
> - Under what circumstances is it permissible to pass type=null?  (I assume
it's
> when the type is unresolved, as with [serializeType], below?)

Done.

https://codereview.chromium.org/1943013002/diff/1/pkg/analyzer/lib/src/summar...
pkg/analyzer/lib/src/summary/summarize_const_expr.dart:131: * Return
[EntityRefBuilder] that corresponds to the [name] with the given
On 2016/05/02 20:35:48, Paul Berry wrote:
> I think you mean "...to the [type] with the given [name] and [arguments]."

Acknowledged.

Powered by Google App Engine
This is Rietveld 408576698