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

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

Issue 2860753005: Make elements/names.dart its own library (Closed)
Patch Set: Created 3 years, 7 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
« no previous file with comments | « pkg/compiler/lib/src/elements/elements.dart ('k') | pkg/compiler/lib/src/elements/names.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 'package:front_end/src/fasta/scanner.dart' show ErrorToken, Token; 23 import 'package:front_end/src/fasta/scanner.dart' show ErrorToken, Token;
24 import 'package:front_end/src/fasta/scanner.dart' as Tokens show EOF_TOKEN; 24 import 'package:front_end/src/fasta/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 'entities.dart'; 29 import 'entities.dart';
30 import 'names.dart';
30 import 'resolution_types.dart'; 31 import 'resolution_types.dart';
31 import 'visitor.dart' show ElementVisitor; 32 import 'visitor.dart' show ElementVisitor;
32 33
33 /// Object that identifies a declaration site. 34 /// Object that identifies a declaration site.
34 /// 35 ///
35 /// For most elements, this is the element itself, but for variable declarations 36 /// For most elements, this is the element itself, but for variable declarations
36 /// where multi-declarations like `var a, b, c` are allowed, the declaration 37 /// where multi-declarations like `var a, b, c` are allowed, the declaration
37 /// site is a separate object. 38 /// site is a separate object.
38 // TODO(johnniwinther): Add [beginToken] and [endToken] getters. 39 // TODO(johnniwinther): Add [beginToken] and [endToken] getters.
39 abstract class DeclarationSite {} 40 abstract class DeclarationSite {}
(...skipping 3450 matching lines...) Expand 10 before | Expand all | Expand 10 after
3490 body = node.asFunctionExpression().body; 3491 body = node.asFunctionExpression().body;
3491 } 3492 }
3492 return new ParsedResolvedAst( 3493 return new ParsedResolvedAst(
3493 declaration, 3494 declaration,
3494 node, 3495 node,
3495 body, 3496 body,
3496 definingElement.treeElements, 3497 definingElement.treeElements,
3497 definingElement.compilationUnit.script.resourceUri); 3498 definingElement.compilationUnit.script.resourceUri);
3498 } 3499 }
3499 } 3500 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/elements/elements.dart ('k') | pkg/compiler/lib/src/elements/names.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698