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

Unified Diff: sdk/lib/_internal/compiler/implementation/scanner/scanner.dart

Issue 12087094: Removed Dynamic keyword support from dart2js. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Copied inherited dart2js test status to dart2dart status file. Created 7 years, 10 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 | « sdk/lib/_internal/compiler/implementation/scanner/parser.dart ('k') | tests/co19/co19-dart2dart.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/compiler/implementation/scanner/scanner.dart
diff --git a/sdk/lib/_internal/compiler/implementation/scanner/scanner.dart b/sdk/lib/_internal/compiler/implementation/scanner/scanner.dart
index 123b650d683b7b912b86e8509ca5af4739a066b5..75b9cb507c720ee36b6310a5255b6768b24a3e8d 100644
--- a/sdk/lib/_internal/compiler/implementation/scanner/scanner.dart
+++ b/sdk/lib/_internal/compiler/implementation/scanner/scanner.dart
@@ -660,46 +660,17 @@ abstract class AbstractScanner<T extends SourceString> implements Scanner {
int tokenizeIdentifier(int next, int start, bool allowDollar) {
bool isAscii = true;
- // TODO(aprelev@gmail.com): Remove deprecated Dynamic keyword support.
- bool isDynamicBuiltIn = false;
-
- if (identical(next, $D)) {
- next = advance();
- if (identical(next, $y)) {
- next = advance();
- if (identical(next, $n)) {
- next = advance();
- if (identical(next, $a)) {
- next = advance();
- if (identical(next, $m)) {
- next = advance();
- if (identical(next, $i)) {
- next = advance();
- if (identical(next, $c)) {
- isDynamicBuiltIn = true;
- next = advance();
- }
- }
- }
- }
- }
- }
- }
-
while (true) {
if (($a <= next && next <= $z) ||
($A <= next && next <= $Z) ||
($0 <= next && next <= $9) ||
identical(next, $_) ||
(identical(next, $$) && allowDollar)) {
- isDynamicBuiltIn = false;
next = advance();
} else if ((next < 128) || (identical(next, $NBSP))) {
// Identifier ends here.
if (start == byteOffset) {
return error(const SourceString("expected identifier"));
- } else if (isDynamicBuiltIn) {
- appendKeywordToken(Keyword.DYNAMIC_DEPRECATED);
} else if (isAscii) {
appendByteStringToken(IDENTIFIER_INFO, asciiString(start, 0));
} else {
@@ -707,7 +678,6 @@ abstract class AbstractScanner<T extends SourceString> implements Scanner {
}
return next;
} else {
- isDynamicBuiltIn = false;
int nonAsciiStart = byteOffset;
do {
next = nextByte();
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/scanner/parser.dart ('k') | tests/co19/co19-dart2dart.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698