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

Issue 10910142: Issue 4988. Fixe for 'assert' statement vs function resolving (Closed)

Created:
8 years, 3 months ago by scheglov
Modified:
8 years, 3 months ago
Reviewers:
Brian Wilkerson
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Patch Set 1 #

Total comments: 2

Patch Set 2 : Tweak for artificial 'assert' function name #

Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -27 lines) Patch
M compiler/java/com/google/dart/compiler/DartCompiler.java View 1 1 chunk +2 lines, -2 lines 0 comments Download
M compiler/java/com/google/dart/compiler/resolver/Elements.java View 1 2 chunks +5 lines, -1 line 0 comments Download
M compiler/java/com/google/dart/compiler/resolver/Resolver.java View 1 1 chunk +4 lines, -0 lines 0 comments Download
M compiler/java/com/google/dart/compiler/resolver/TypeErrorCode.java View 1 chunk +0 lines, -1 line 0 comments Download
M compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java View 2 chunks +2 lines, -20 lines 0 comments Download
M compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerCompilerTest.java View 2 chunks +17 lines, -2 lines 0 comments Download
M tests/language/language.status View 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 3 (0 generated)
scheglov
8 years, 3 months ago (2012-09-07 20:59:18 UTC) #1
Brian Wilkerson
Once the concern about possible name collisions is resolved, LGTM. https://chromiumcodereview.appspot.com/10910142/diff/1/compiler/java/com/google/dart/compiler/DartCompiler.java File compiler/java/com/google/dart/compiler/DartCompiler.java (right): https://chromiumcodereview.appspot.com/10910142/diff/1/compiler/java/com/google/dart/compiler/DartCompiler.java#newcode864 ...
8 years, 3 months ago (2012-09-07 21:09:59 UTC) #2
scheglov
8 years, 3 months ago (2012-09-07 22:05:11 UTC) #3
https://chromiumcodereview.appspot.com/10910142/diff/1/compiler/java/com/goog...
File compiler/java/com/google/dart/compiler/DartCompiler.java (right):

https://chromiumcodereview.appspot.com/10910142/diff/1/compiler/java/com/goog...
compiler/java/com/google/dart/compiler/DartCompiler.java:864: srcCode += "\nvoid
assert__forStatement(x) {}";
On 2012/09/07 21:09:59, Brian Wilkerson wrote:
> I think we want to choose a name that can't easily be duplicated in user code.
> How about something that includes the millisecond clock value. (This would, of
> course require caching the name in a static final field somewhere, which would
> be good anyway.)

Done.

Powered by Google App Engine
This is Rietveld 408576698