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

Side by Side Diff: pkg/dev_compiler/lib/src/compiler/ast_builder.dart

Issue 2691043003: Remove unused TokenType.IS. (Closed)
Patch Set: Created 3 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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 import 'package:analyzer/dart/ast/ast.dart'; 5 import 'package:analyzer/dart/ast/ast.dart';
6 import 'package:analyzer/dart/ast/standard_ast_factory.dart'; 6 import 'package:analyzer/dart/ast/standard_ast_factory.dart';
7 import 'package:analyzer/dart/ast/token.dart'; 7 import 'package:analyzer/dart/ast/token.dart';
8 import 'package:analyzer/src/dart/ast/token.dart'; 8 import 'package:analyzer/src/dart/ast/token.dart';
9 import 'package:analyzer/src/generated/utilities_dart.dart'; 9 import 'package:analyzer/src/generated/utilities_dart.dart';
10 import 'package:logging/logging.dart' as logger; 10 import 'package:logging/logging.dart' as logger;
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 case ">>": 160 case ">>":
161 return TokenType.GT_GT; 161 return TokenType.GT_GT;
162 case ">>=": 162 case ">>=":
163 return TokenType.GT_GT_EQ; 163 return TokenType.GT_GT_EQ;
164 case "#": 164 case "#":
165 return TokenType.HASH; 165 return TokenType.HASH;
166 case "[]": 166 case "[]":
167 return TokenType.INDEX; 167 return TokenType.INDEX;
168 case "[]=": 168 case "[]=":
169 return TokenType.INDEX_EQ; 169 return TokenType.INDEX_EQ;
170 case "is":
171 return TokenType.IS;
172 case "<": 170 case "<":
173 return TokenType.LT; 171 return TokenType.LT;
174 case "<=": 172 case "<=":
175 return TokenType.LT_EQ; 173 return TokenType.LT_EQ;
176 case "<<": 174 case "<<":
177 return TokenType.LT_LT; 175 return TokenType.LT_LT;
178 case "<<=": 176 case "<<=":
179 return TokenType.LT_LT_EQ; 177 return TokenType.LT_LT_EQ;
180 case "-": 178 case "-":
181 return TokenType.MINUS; 179 return TokenType.MINUS;
(...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after
595 Label l = astFactory.label(s, new Token(TokenType.COLON, 0)); 593 Label l = astFactory.label(s, new Token(TokenType.COLON, 0));
596 return astFactory.namedExpression(l, e); 594 return astFactory.namedExpression(l, e);
597 } 595 }
598 596
599 static VariableDeclarationStatement variableDeclarationStatement( 597 static VariableDeclarationStatement variableDeclarationStatement(
600 VariableDeclarationList varDecl) { 598 VariableDeclarationList varDecl) {
601 var semi = new Token(TokenType.SEMICOLON, 0); 599 var semi = new Token(TokenType.SEMICOLON, 0);
602 return astFactory.variableDeclarationStatement(varDecl, semi); 600 return astFactory.variableDeclarationStatement(varDecl, semi);
603 } 601 }
604 } 602 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/lib/src/services/correction/assist_internal.dart ('k') | pkg/front_end/lib/src/scanner/token.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698