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

Side by Side Diff: pkg/compiler/lib/src/resolution/send_resolver.dart

Issue 2606253002: Move dart_types to elements/resolution_types (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) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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 dart2js.semantics_visitor.resolver; 5 library dart2js.semantics_visitor.resolver;
6 6
7 import '../common.dart'; 7 import '../common.dart';
8 import '../constants/expressions.dart'; 8 import '../constants/expressions.dart';
9 import '../dart_types.dart'; 9 import '../elements/resolution_types.dart';
10 import '../elements/elements.dart'; 10 import '../elements/elements.dart';
11 import '../tree/tree.dart'; 11 import '../tree/tree.dart';
12 import 'semantic_visitor.dart'; 12 import 'semantic_visitor.dart';
13 import 'send_structure.dart'; 13 import 'send_structure.dart';
14 import 'tree_elements.dart'; 14 import 'tree_elements.dart';
15 15
16 abstract class DeclStructure<R, A> { 16 abstract class DeclStructure<R, A> {
17 final FunctionElement element; 17 final FunctionElement element;
18 18
19 DeclStructure(this.element); 19 DeclStructure(this.element);
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
328 return internalError(node, "Unexpected variable $element."); 328 return internalError(node, "Unexpected variable $element.");
329 } 329 }
330 if (element.isConst) { 330 if (element.isConst) {
331 ConstantExpression constant = elements.getConstant(element.initializer); 331 ConstantExpression constant = elements.getConstant(element.initializer);
332 return new ConstantVariableStructure(kind, node, element, constant); 332 return new ConstantVariableStructure(kind, node, element, constant);
333 } else { 333 } else {
334 return new NonConstantVariableStructure(kind, node, element); 334 return new NonConstantVariableStructure(kind, node, element);
335 } 335 }
336 } 336 }
337 } 337 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/resolution/semantic_visitor.dart ('k') | pkg/compiler/lib/src/resolution/send_structure.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698