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

Side by Side Diff: pkg/analyzer_experimental/lib/src/generated/scanner.dart

Issue 26096002: New analyzer_experimental snapshot. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // This code was auto-generated, is not intended to be edited, and is subject to 1 // This code was auto-generated, is not intended to be edited, and is subject to
2 // significant change. Please see the README file for more information. 2 // significant change. Please see the README file for more information.
3 library engine.scanner; 3 library engine.scanner;
4 import 'dart:collection'; 4 import 'dart:collection';
5 import 'java_core.dart'; 5 import 'java_core.dart';
6 import 'java_engine.dart'; 6 import 'java_engine.dart';
7 import 'source.dart'; 7 import 'source.dart';
8 import 'error.dart'; 8 import 'error.dart';
9 import 'instrumentation.dart'; 9 import 'instrumentation.dart';
10 /** 10 /**
(...skipping 1089 matching lines...) Expand 10 before | Expand all | Expand 10 after
1100 } 1100 }
1101 } 1101 }
1102 } 1102 }
1103 int tokenizeMultiLineRawString(int quoteChar, int start) { 1103 int tokenizeMultiLineRawString(int quoteChar, int start) {
1104 int next = advance(); 1104 int next = advance();
1105 outer: while (next != -1) { 1105 outer: while (next != -1) {
1106 while (next != quoteChar) { 1106 while (next != quoteChar) {
1107 next = advance(); 1107 next = advance();
1108 if (next == -1) { 1108 if (next == -1) {
1109 break outer; 1109 break outer;
1110 } else if (next == 0xD) {
1111 next = advance();
1112 if (next == 0xA) {
1113 next = advance();
1114 }
1115 recordStartOfLine();
1116 } else if (next == 0xA) {
1117 recordStartOfLine();
1118 next = advance();
1110 } 1119 }
1111 } 1120 }
1112 next = advance(); 1121 next = advance();
1113 if (next == quoteChar) { 1122 if (next == quoteChar) {
1114 next = advance(); 1123 next = advance();
1115 if (next == quoteChar) { 1124 if (next == quoteChar) {
1116 appendStringToken(TokenType.STRING, getString(start, 0)); 1125 appendStringToken(TokenType.STRING, getString(start, 0));
1117 return advance(); 1126 return advance();
1118 } 1127 }
1119 } 1128 }
(...skipping 24 matching lines...) Expand all
1144 return advance(); 1153 return advance();
1145 } 1154 }
1146 } 1155 }
1147 continue; 1156 continue;
1148 } 1157 }
1149 if (next == 0x5C) { 1158 if (next == 0x5C) {
1150 next = advance(); 1159 next = advance();
1151 if (next == -1) { 1160 if (next == -1) {
1152 break; 1161 break;
1153 } 1162 }
1154 if (next == 0xD || next == 0xA) { 1163 bool missingCharacter = false;
1164 if (next == 0xD) {
1165 missingCharacter = true;
1166 next = advance();
1167 if (next == 0xA) {
1168 next = advance();
1169 }
1170 recordStartOfLine();
1171 } else if (next == 0xA) {
1172 missingCharacter = true;
1173 recordStartOfLine();
1174 next = advance();
1175 } else {
1176 next = advance();
1177 }
1178 if (missingCharacter) {
1155 _errorListener.onError(new AnalysisError.con2(source, offset - 1, 1, S cannerErrorCode.CHARACTER_EXPECTED_AFTER_SLASH, [])); 1179 _errorListener.onError(new AnalysisError.con2(source, offset - 1, 1, S cannerErrorCode.CHARACTER_EXPECTED_AFTER_SLASH, []));
1156 } 1180 }
1181 } else if (next == 0xD) {
1182 next = advance();
1183 if (next == 0xA) {
1184 next = advance();
1185 }
1186 recordStartOfLine();
1187 } else if (next == 0xA) {
1188 recordStartOfLine();
1189 next = advance();
1190 } else {
1191 next = advance();
1157 } 1192 }
1158 next = advance();
1159 } 1193 }
1160 reportError(ScannerErrorCode.UNTERMINATED_STRING_LITERAL, []); 1194 reportError(ScannerErrorCode.UNTERMINATED_STRING_LITERAL, []);
1161 appendStringToken(TokenType.STRING, getString(start, 0)); 1195 appendStringToken(TokenType.STRING, getString(start, 0));
1162 return advance(); 1196 return advance();
1163 } 1197 }
1164 int tokenizeMultiply(int next) => select(0x3D, TokenType.STAR_EQ, TokenType.ST AR); 1198 int tokenizeMultiply(int next) => select(0x3D, TokenType.STAR_EQ, TokenType.ST AR);
1165 int tokenizeNumber(int next) { 1199 int tokenizeNumber(int next) {
1166 int start = offset; 1200 int start = offset;
1167 while (true) { 1201 while (true) {
1168 next = advance(); 1202 next = advance();
(...skipping 931 matching lines...) Expand 10 before | Expand all | Expand 10 after
2100 * Return `true` if this token type represents an operator that can be defined by users. 2134 * Return `true` if this token type represents an operator that can be defined by users.
2101 * 2135 *
2102 * @return `true` if this token type represents an operator that can be define d by users 2136 * @return `true` if this token type represents an operator that can be define d by users
2103 */ 2137 */
2104 bool get isUserDefinableOperator => identical(lexeme, "==") || identical(lexem e, "~") || identical(lexeme, "[]") || identical(lexeme, "[]=") || identical(lexe me, "*") || identical(lexeme, "/") || identical(lexeme, "%") || identical(lexeme , "~/") || identical(lexeme, "+") || identical(lexeme, "-") || identical(lexeme, "<<") || identical(lexeme, ">>") || identical(lexeme, ">=") || identical(lexeme , ">") || identical(lexeme, "<=") || identical(lexeme, "<") || identical(lexeme, "&") || identical(lexeme, "^") || identical(lexeme, "|"); 2138 bool get isUserDefinableOperator => identical(lexeme, "==") || identical(lexem e, "~") || identical(lexeme, "[]") || identical(lexeme, "[]=") || identical(lexe me, "*") || identical(lexeme, "/") || identical(lexeme, "%") || identical(lexeme , "~/") || identical(lexeme, "+") || identical(lexeme, "-") || identical(lexeme, "<<") || identical(lexeme, ">>") || identical(lexeme, ">=") || identical(lexeme , ">") || identical(lexeme, "<=") || identical(lexeme, "<") || identical(lexeme, "&") || identical(lexeme, "^") || identical(lexeme, "|");
2105 } 2139 }
2106 class TokenType_EOF extends TokenType { 2140 class TokenType_EOF extends TokenType {
2107 TokenType_EOF(String name, int ordinal, TokenClass arg0, String arg1) : super. con2(name, ordinal, arg0, arg1); 2141 TokenType_EOF(String name, int ordinal, TokenClass arg0, String arg1) : super. con2(name, ordinal, arg0, arg1);
2108 String toString() => "-eof-"; 2142 String toString() => "-eof-";
2109 } 2143 }
OLDNEW
« no previous file with comments | « pkg/analyzer_experimental/lib/src/generated/resolver.dart ('k') | pkg/analyzer_experimental/lib/src/generated/sdk_io.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698