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

Issue 10697003: Various token issues fixed in the compiler (Closed)

Created:
8 years, 5 months ago by Johnni Winther
Modified:
8 years, 5 months ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Various token issues fixed in the compiler Committed: https://code.google.com/p/dart/source/detail?r=9199

Patch Set 1 #

Patch Set 2 : Merged #

Total comments: 8

Patch Set 3 : Updated cf. lrn's review #

Patch Set 4 : Merged #

Patch Set 5 : SendSet.getBeginToken/getEndToken implemented #

Total comments: 1

Patch Set 6 : SendSet.getEndToken() fixed, unit test added #

Total comments: 2

Patch Set 7 : Unit tests updated, co19 status updated. #

Total comments: 1

Patch Set 8 : Unit test tests for erroneous results #

Unified diffs Side-by-side diffs Delta from patch set Stats (+184 lines, -7 lines) Patch
M lib/compiler/implementation/compiler.dart View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M lib/compiler/implementation/scanner/token.dart View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M lib/compiler/implementation/tree/nodes.dart View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M tests/co19/co19-leg.status View 1 2 3 4 5 6 2 chunks +4 lines, -1 line 0 comments Download
A tests/compiler/dart2js/begin_end_token_test.dart View 1 2 3 4 5 6 7 1 chunk +174 lines, -0 lines 0 comments Download
M tests/compiler/dart2js/scanner_offset_length_test.dart View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
Johnni Winther
8 years, 5 months ago (2012-06-27 08:43:16 UTC) #1
Lasse Reichstein Nielsen
LGTM http://codereview.chromium.org/10697003/diff/7001/lib/compiler/implementation/compiler.dart File lib/compiler/implementation/compiler.dart (right): http://codereview.chromium.org/10697003/diff/7001/lib/compiler/implementation/compiler.dart#newcode879 lib/compiler/implementation/compiler.dart:879: static withOffsets(Token begin, Token end, withOffsets -> withCharacterOffsets ...
8 years, 5 months ago (2012-06-27 09:22:16 UTC) #2
ahe
LGTM. I like Lasse's suggestions. http://codereview.chromium.org/10697003/diff/7001/lib/compiler/implementation/elements/elements.dart File lib/compiler/implementation/elements/elements.dart (right): http://codereview.chromium.org/10697003/diff/7001/lib/compiler/implementation/elements/elements.dart#newcode365 lib/compiler/implementation/elements/elements.dart:365: String getLibraryOrScriptName() { What ...
8 years, 5 months ago (2012-06-27 10:48:27 UTC) #3
Johnni Winther
PTAL
8 years, 5 months ago (2012-06-27 11:42:18 UTC) #4
Johnni Winther
TBR Fixes a bug in co19
8 years, 5 months ago (2012-06-27 13:53:55 UTC) #5
floitsch
LGTM to unbreak the build. http://codereview.chromium.org/10697003/diff/1005/lib/compiler/implementation/tree/nodes.dart File lib/compiler/implementation/tree/nodes.dart (right): http://codereview.chromium.org/10697003/diff/1005/lib/compiler/implementation/tree/nodes.dart#newcode359 lib/compiler/implementation/tree/nodes.dart:359: if (isPrefix) return super.getEndToken(); ...
8 years, 5 months ago (2012-06-27 14:06:48 UTC) #6
Johnni Winther
SendSet.getEndToken() fixed, unit test added PTAL
8 years, 5 months ago (2012-06-27 15:24:28 UTC) #7
Lasse Reichstein Nielsen
LGTM https://chromiumcodereview.appspot.com/10697003/diff/7/tests/compiler/dart2js/begin_end_token_test.dart File tests/compiler/dart2js/begin_end_token_test.dart (right): https://chromiumcodereview.appspot.com/10697003/diff/7/tests/compiler/dart2js/begin_end_token_test.dart#newcode139 tests/compiler/dart2js/begin_end_token_test.dart:139: text = "a.b++"; How about testing a[b]++ / ...
8 years, 5 months ago (2012-06-28 07:45:14 UTC) #8
Johnni Winther
PTAL
8 years, 5 months ago (2012-06-28 12:25:32 UTC) #9
Lasse Reichstein Nielsen
8 years, 5 months ago (2012-06-28 13:03:52 UTC) #10
LGTM

https://chromiumcodereview.appspot.com/10697003/diff/15001/tests/compiler/dar...
File tests/compiler/dart2js/begin_end_token_test.dart (right):

https://chromiumcodereview.appspot.com/10697003/diff/15001/tests/compiler/dar...
tests/compiler/dart2js/begin_end_token_test.dart:155:
//testNode(sendSet.arguments.head, "b", text);
Generally, if a test fails, add a test that succeeds (e.g., testing for the
erroneous result we get now) so that it will show up when the test is fixed.
Then write a lot of comments to say that it isn't really correct.

Powered by Google App Engine
This is Rietveld 408576698