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

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

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

Powered by Google App Engine
This is Rietveld 408576698