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

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

Issue 2675103003: Refactor BackendHelpers to be reusageable with KernelWorldBuilder (Closed)
Patch Set: Updated cf. comments 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
« no previous file with comments | « pkg/compiler/lib/src/elements/elements.dart ('k') | pkg/compiler/lib/src/inferrer/builder.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' 23 import 'package:front_end/src/fasta/scanner.dart' show ErrorToken, Token;
24 show ErrorToken, Token; 24 import 'package:front_end/src/fasta/scanner.dart' as Tokens show EOF_TOKEN;
25 import 'package:front_end/src/fasta/scanner.dart' as Tokens
26 show EOF_TOKEN;
27 import '../tree/tree.dart'; 25 import '../tree/tree.dart';
28 import '../util/util.dart'; 26 import '../util/util.dart';
29 import 'common.dart'; 27 import 'common.dart';
30 import 'elements.dart'; 28 import 'elements.dart';
31 import 'resolution_types.dart'; 29 import 'resolution_types.dart';
32 import 'visitor.dart' show ElementVisitor; 30 import 'visitor.dart' show ElementVisitor;
33 31
34 /// Object that identifies a declaration site. 32 /// Object that identifies a declaration site.
35 /// 33 ///
36 /// 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 3433 matching lines...) Expand 10 before | Expand all | Expand 10 after
3470 body = node.asFunctionExpression().body; 3468 body = node.asFunctionExpression().body;
3471 } 3469 }
3472 return new ParsedResolvedAst( 3470 return new ParsedResolvedAst(
3473 declaration, 3471 declaration,
3474 node, 3472 node,
3475 body, 3473 body,
3476 definingElement.treeElements, 3474 definingElement.treeElements,
3477 definingElement.compilationUnit.script.resourceUri); 3475 definingElement.compilationUnit.script.resourceUri);
3478 } 3476 }
3479 } 3477 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/elements/elements.dart ('k') | pkg/compiler/lib/src/inferrer/builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698