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

Issue 10911066: Make an empty identifier a scanning error. (Closed)

Created:
8 years, 3 months ago by Lasse Reichstein Nielsen
Modified:
8 years, 3 months ago
Reviewers:
ahe, kasperl
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Make an empty identifier a scanning error. This only happens in string interpolations, since it is the only place where an identifier is scanned without first seeing at least one character of the identifier. BUG=4899 Committed: https://code.google.com/p/dart/source/detail?r=11927

Patch Set 1 #

Total comments: 1

Patch Set 2 : Add test. Fix typo. #

Patch Set 3 : Added more tests. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+40 lines, -0 lines) Patch
M lib/compiler/implementation/scanner/scanner.dart View 1 1 chunk +5 lines, -0 lines 0 comments Download
A tests/language/string_interpolation9_test.dart View 1 2 1 chunk +35 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Lasse Reichstein Nielsen
8 years, 3 months ago (2012-09-04 14:17:59 UTC) #1
kasperl
https://chromiumcodereview.appspot.com/10911066/diff/1/lib/compiler/implementation/scanner/scanner.dart File lib/compiler/implementation/scanner/scanner.dart (right): https://chromiumcodereview.appspot.com/10911066/diff/1/lib/compiler/implementation/scanner/scanner.dart#newcode658 lib/compiler/implementation/scanner/scanner.dart:658: throw new MalformedInputException("expected identifier not fonud", fonud -> found
8 years, 3 months ago (2012-09-04 14:34:37 UTC) #2
ahe
LGTM, after spellcheck. Also, please add a test.
8 years, 3 months ago (2012-09-04 14:37:55 UTC) #3
Lasse Reichstein Nielsen
Done.
8 years, 3 months ago (2012-09-05 14:12:38 UTC) #4
ahe
LGTM, I assume we already test "$$" somewhere.
8 years, 3 months ago (2012-09-05 15:37:55 UTC) #5
Lasse Reichstein Nielsen
8 years, 3 months ago (2012-09-06 08:39:23 UTC) #6
On 2012/09/05 15:37:55, ahe wrote:
> LGTM, I assume we already test "$$" somewhere.

Not sure we do. Let's add it here too, just for good measure.

Powered by Google App Engine
This is Rietveld 408576698