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

Side by Side Diff: pkg/analyzer/lib/src/generated/parser.dart

Issue 649873007: Remove Math and most uses of PrintStringWriter (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 1 month 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 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 // This code was auto-generated, is not intended to be edited, and is subject to 5 // This code was auto-generated, is not intended to be edited, and is subject to
6 // significant change. Please see the README file for more information. 6 // significant change. Please see the README file for more information.
7 7
8 library engine.parser; 8 library engine.parser;
9 9
10 import 'dart:collection'; 10 import 'dart:collection';
11 import "dart:math" as math;
12
11 import 'java_core.dart'; 13 import 'java_core.dart';
12 import 'java_engine.dart'; 14 import 'java_engine.dart';
13 import 'instrumentation.dart'; 15 import 'instrumentation.dart';
14 import 'error.dart'; 16 import 'error.dart';
15 import 'source.dart'; 17 import 'source.dart';
16 import 'scanner.dart'; 18 import 'scanner.dart';
17 import 'ast.dart'; 19 import 'ast.dart';
18 import 'utilities_dart.dart'; 20 import 'utilities_dart.dart';
19 import 'engine.dart' show AnalysisEngine, AnalysisOptionsImpl; 21 import 'engine.dart' show AnalysisEngine, AnalysisOptionsImpl;
20 import 'utilities_collection.dart' show TokenMap; 22 import 'utilities_collection.dart' show TokenMap;
(...skipping 6857 matching lines...) Expand 10 before | Expand all | Expand 10 after
6878 * Report an error with the given error code and arguments. 6880 * Report an error with the given error code and arguments.
6879 * 6881 *
6880 * @param errorCode the error code of the error to be reported 6882 * @param errorCode the error code of the error to be reported
6881 * @param token the token specifying the location of the error 6883 * @param token the token specifying the location of the error
6882 * @param arguments the arguments to the error, used to compose the error mess age 6884 * @param arguments the arguments to the error, used to compose the error mess age
6883 */ 6885 */
6884 void _reportErrorForToken(ErrorCode errorCode, Token token, List<Object> argum ents) { 6886 void _reportErrorForToken(ErrorCode errorCode, Token token, List<Object> argum ents) {
6885 if (token.type == TokenType.EOF) { 6887 if (token.type == TokenType.EOF) {
6886 token = token.previous; 6888 token = token.previous;
6887 } 6889 }
6888 _reportError(new AnalysisError.con2(_source, token.offset, Math.max(token.le ngth, 1), errorCode, arguments)); 6890 _reportError(new AnalysisError.con2(_source, token.offset, math.max(token.le ngth, 1), errorCode, arguments));
6889 } 6891 }
6890 6892
6891 /** 6893 /**
6892 * Skips a block with all containing blocks. 6894 * Skips a block with all containing blocks.
6893 */ 6895 */
6894 void _skipBlock() { 6896 void _skipBlock() {
6895 Token endToken = (_currentToken as BeginToken).endToken; 6897 Token endToken = (_currentToken as BeginToken).endToken;
6896 if (endToken == null) { 6898 if (endToken == null) {
6897 endToken = _currentToken.next; 6899 endToken = _currentToken.next;
6898 while (!identical(endToken, _currentToken)) { 6900 while (!identical(endToken, _currentToken)) {
(...skipping 2652 matching lines...) Expand 10 before | Expand all | Expand 10 after
9551 return trampoline(target, arguments[0], arguments[1]); 9553 return trampoline(target, arguments[0], arguments[1]);
9552 case 3: 9554 case 3:
9553 return trampoline(target, arguments[0], arguments[1], arguments[2]); 9555 return trampoline(target, arguments[0], arguments[1], arguments[2]);
9554 case 4: 9556 case 4:
9555 return trampoline(target, arguments[0], arguments[1], arguments[2], argu ments[3]); 9557 return trampoline(target, arguments[0], arguments[1], arguments[2], argu ments[3]);
9556 default: 9558 default:
9557 throw new IllegalArgumentException("Not implemented for > 4 arguments"); 9559 throw new IllegalArgumentException("Not implemented for > 4 arguments");
9558 } 9560 }
9559 } 9561 }
9560 } 9562 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/generated/java_core.dart ('k') | pkg/analyzer/lib/src/generated/resolver.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698