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

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

Issue 1524893002: Fix imports within the analyzer package (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years 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) 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 library analyzer.src.generated.testing.ast_factory; 5 library analyzer.src.generated.testing.ast_factory;
6 6
7 import 'package:analyzer/dart/element/element.dart';
7 import 'package:analyzer/src/generated/ast.dart'; 8 import 'package:analyzer/src/generated/ast.dart';
8 import 'package:analyzer/src/generated/element.dart';
9 import 'package:analyzer/src/generated/scanner.dart'; 9 import 'package:analyzer/src/generated/scanner.dart';
10 import 'package:analyzer/src/generated/testing/token_factory.dart'; 10 import 'package:analyzer/src/generated/testing/token_factory.dart';
11 import 'package:analyzer/src/generated/utilities_dart.dart'; 11 import 'package:analyzer/src/generated/utilities_dart.dart';
12 12
13 /** 13 /**
14 * The class `AstFactory` defines utility methods that can be used to create AST nodes. The 14 * The class `AstFactory` defines utility methods that can be used to create AST nodes. The
15 * nodes that are created are complete in the sense that all of the tokens that would have been 15 * nodes that are created are complete in the sense that all of the tokens that would have been
16 * associated with the nodes by a parser are also created, but the token stream is not constructed. 16 * associated with the nodes by a parser are also created, but the token stream is not constructed.
17 * None of the nodes are resolved. 17 * None of the nodes are resolved.
18 * 18 *
(...skipping 1237 matching lines...) Expand 10 before | Expand all | Expand 10 after
1256 expression, 1256 expression,
1257 TokenFactory.tokenFromType(TokenType.SEMICOLON)); 1257 TokenFactory.tokenFromType(TokenType.SEMICOLON));
1258 1258
1259 static YieldStatement yieldStatement(Expression expression) => 1259 static YieldStatement yieldStatement(Expression expression) =>
1260 new YieldStatement( 1260 new YieldStatement(
1261 TokenFactory.tokenFromTypeAndString(TokenType.IDENTIFIER, "yield"), 1261 TokenFactory.tokenFromTypeAndString(TokenType.IDENTIFIER, "yield"),
1262 null, 1262 null,
1263 expression, 1263 expression,
1264 TokenFactory.tokenFromType(TokenType.SEMICOLON)); 1264 TokenFactory.tokenFromType(TokenType.SEMICOLON));
1265 } 1265 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/generated/static_type_analyzer.dart ('k') | pkg/analyzer/lib/src/generated/testing/element_factory.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698