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

Side by Side Diff: pkg/compiler/lib/src/parser/parser.dart

Issue 2221893003: pkg/compiler: fix imports (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 4 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
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 library dart2js.parser; 5 library dart2js.parser;
6 6
7 import '../common.dart';
7 import '../options.dart' show ParserOptions; 8 import '../options.dart' show ParserOptions;
8 import '../common.dart';
9 import '../tokens/keyword.dart' show Keyword; 9 import '../tokens/keyword.dart' show Keyword;
10 import '../tokens/precedence.dart' show PrecedenceInfo; 10 import '../tokens/precedence.dart' show PrecedenceInfo;
11 import '../tokens/precedence_constants.dart' 11 import '../tokens/precedence_constants.dart'
12 show 12 show
13 AS_INFO, 13 AS_INFO,
14 ASSIGNMENT_PRECEDENCE, 14 ASSIGNMENT_PRECEDENCE,
15 CASCADE_PRECEDENCE, 15 CASCADE_PRECEDENCE,
16 EQUALITY_PRECEDENCE, 16 EQUALITY_PRECEDENCE,
17 GT_INFO, 17 GT_INFO,
18 IS_INFO, 18 IS_INFO,
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 OPEN_CURLY_BRACKET_TOKEN, 51 OPEN_CURLY_BRACKET_TOKEN,
52 OPEN_PAREN_TOKEN, 52 OPEN_PAREN_TOKEN,
53 OPEN_SQUARE_BRACKET_TOKEN, 53 OPEN_SQUARE_BRACKET_TOKEN,
54 PERIOD_TOKEN, 54 PERIOD_TOKEN,
55 SEMICOLON_TOKEN, 55 SEMICOLON_TOKEN,
56 STRING_INTERPOLATION_IDENTIFIER_TOKEN, 56 STRING_INTERPOLATION_IDENTIFIER_TOKEN,
57 STRING_INTERPOLATION_TOKEN, 57 STRING_INTERPOLATION_TOKEN,
58 STRING_TOKEN; 58 STRING_TOKEN;
59 import '../util/characters.dart' as Characters show $CLOSE_CURLY_BRACKET; 59 import '../util/characters.dart' as Characters show $CLOSE_CURLY_BRACKET;
60 import '../util/util.dart' show Link; 60 import '../util/util.dart' show Link;
61
62 import 'listener.dart' show Listener; 61 import 'listener.dart' show Listener;
63 62
64 class FormalParameterType { 63 class FormalParameterType {
65 final String type; 64 final String type;
66 const FormalParameterType(this.type); 65 const FormalParameterType(this.type);
67 bool get isRequired => this == REQUIRED; 66 bool get isRequired => this == REQUIRED;
68 bool get isPositional => this == POSITIONAL; 67 bool get isPositional => this == POSITIONAL;
69 bool get isNamed => this == NAMED; 68 bool get isNamed => this == NAMED;
70 static final REQUIRED = const FormalParameterType('required'); 69 static final REQUIRED = const FormalParameterType('required');
71 static final POSITIONAL = const FormalParameterType('positional'); 70 static final POSITIONAL = const FormalParameterType('positional');
(...skipping 2925 matching lines...) Expand 10 before | Expand all | Expand 10 after
2997 } 2996 }
2998 listener.handleContinueStatement(hasTarget, continueKeyword, token); 2997 listener.handleContinueStatement(hasTarget, continueKeyword, token);
2999 return expectSemicolon(token); 2998 return expectSemicolon(token);
3000 } 2999 }
3001 3000
3002 Token parseEmptyStatement(Token token) { 3001 Token parseEmptyStatement(Token token) {
3003 listener.handleEmptyStatement(token); 3002 listener.handleEmptyStatement(token);
3004 return expectSemicolon(token); 3003 return expectSemicolon(token);
3005 } 3004 }
3006 } 3005 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/parser/element_listener.dart ('k') | pkg/compiler/lib/src/parser/parser_task.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698