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

Unified Diff: lib/compiler/implementation/scanner/parser.dart

Issue 10915122: Fix source locations for inlined and patched functions. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/compiler/implementation/leg.dart ('k') | lib/compiler/implementation/scanner/token.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compiler/implementation/scanner/parser.dart
diff --git a/lib/compiler/implementation/scanner/parser.dart b/lib/compiler/implementation/scanner/parser.dart
index a6e09b7e36b3da88d2e3038602495e60ab6c61cf..98bb484f0920a73208110583fd78a74adb61e472 100644
--- a/lib/compiler/implementation/scanner/parser.dart
+++ b/lib/compiler/implementation/scanner/parser.dart
@@ -206,12 +206,7 @@ class Parser {
return token;
}
- bool isIdentifier(Token token) {
- final kind = token.kind;
- if (kind === IDENTIFIER_TOKEN) return true;
- if (kind === KEYWORD_TOKEN) return token.value.isPseudo;
- return false;
- }
+ bool isIdentifier(Token token) => token.isIdentifier();
Token parseDefaultClauseOpt(Token token) {
if (isDefaultKeyword(token)) {
« no previous file with comments | « lib/compiler/implementation/leg.dart ('k') | lib/compiler/implementation/scanner/token.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698