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

Side by Side Diff: pkg/compiler/lib/src/elements/modelx.dart

Issue 2644843006: Use packages dart_parser, dart_scanner, and compiler_util. (Closed)
Patch Set: Created 3 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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 elements.modelx; 5 library elements.modelx;
6 6
7 import '../common.dart'; 7 import '../common.dart';
8 import '../common/names.dart' show Identifiers; 8 import '../common/names.dart' show Identifiers;
9 import '../common/resolution.dart' show Resolution, ParsingContext; 9 import '../common/resolution.dart' show Resolution, ParsingContext;
10 import '../compiler.dart' show Compiler; 10 import '../compiler.dart' show Compiler;
11 import '../constants/constant_constructors.dart'; 11 import '../constants/constant_constructors.dart';
12 import '../constants/constructors.dart'; 12 import '../constants/constructors.dart';
13 import '../constants/expressions.dart'; 13 import '../constants/expressions.dart';
14 import '../diagnostics/messages.dart' show MessageTemplate; 14 import '../diagnostics/messages.dart' show MessageTemplate;
15 import '../ordered_typeset.dart' show OrderedTypeSet; 15 import '../ordered_typeset.dart' show OrderedTypeSet;
16 import '../resolution/class_members.dart' show ClassMemberMixin; 16 import '../resolution/class_members.dart' show ClassMemberMixin;
17 import '../resolution/resolution.dart' show AnalyzableElementX; 17 import '../resolution/resolution.dart' show AnalyzableElementX;
18 import '../resolution/scope.dart' 18 import '../resolution/scope.dart'
19 show ClassScope, LibraryScope, Scope, TypeDeclarationScope; 19 show ClassScope, LibraryScope, Scope, TypeDeclarationScope;
20 import '../resolution/tree_elements.dart' show TreeElements; 20 import '../resolution/tree_elements.dart' show TreeElements;
21 import '../resolution/typedefs.dart' show TypedefCyclicVisitor; 21 import '../resolution/typedefs.dart' show TypedefCyclicVisitor;
22 import '../script.dart'; 22 import '../script.dart';
23 import '../tokens/token.dart' show ErrorToken, Token; 23 import 'package:dart_scanner/dart_scanner.dart' show ErrorToken, Token;
24 import '../tokens/token_constants.dart' as Tokens show EOF_TOKEN; 24 import 'package:dart_scanner/dart_scanner.dart' as Tokens show EOF_TOKEN;
25 import '../tree/tree.dart'; 25 import '../tree/tree.dart';
26 import '../util/util.dart'; 26 import '../util/util.dart';
27 import 'common.dart'; 27 import 'common.dart';
28 import 'elements.dart'; 28 import 'elements.dart';
29 import 'resolution_types.dart'; 29 import 'resolution_types.dart';
30 import 'visitor.dart' show ElementVisitor; 30 import 'visitor.dart' show ElementVisitor;
31 31
32 /// Object that identifies a declaration site. 32 /// Object that identifies a declaration site.
33 /// 33 ///
34 /// For most elements, this is the element itself, but for variable declarations 34 /// For most elements, this is the element itself, but for variable declarations
(...skipping 3386 matching lines...) Expand 10 before | Expand all | Expand 10 after
3421 body = node.asFunctionExpression().body; 3421 body = node.asFunctionExpression().body;
3422 } 3422 }
3423 return new ParsedResolvedAst( 3423 return new ParsedResolvedAst(
3424 declaration, 3424 declaration,
3425 node, 3425 node,
3426 body, 3426 body,
3427 definingElement.treeElements, 3427 definingElement.treeElements,
3428 definingElement.compilationUnit.script.resourceUri); 3428 definingElement.compilationUnit.script.resourceUri);
3429 } 3429 }
3430 } 3430 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698