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

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

Issue 1338683002: Add related types check to analyze_dart2js_test (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Cleanup. Created 5 years, 3 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 '../compiler.dart' show 7 import '../compiler.dart' show
8 Compiler; 8 Compiler;
9 import '../constants/constant_constructors.dart'; 9 import '../constants/constant_constructors.dart';
10 import '../constants/constructors.dart'; 10 import '../constants/constructors.dart';
(...skipping 2652 matching lines...) Expand 10 before | Expand all | Expand 10 after
2663 variableList.modifiers, new NodeList.singleton(definition)); 2663 variableList.modifiers, new NodeList.singleton(definition));
2664 initializerCache = initializer; 2664 initializerCache = initializer;
2665 } 2665 }
2666 } 2666 }
2667 2667
2668 class MixinApplicationElementX extends BaseClassElementX 2668 class MixinApplicationElementX extends BaseClassElementX
2669 implements MixinApplicationElement { 2669 implements MixinApplicationElement {
2670 final Node node; 2670 final Node node;
2671 final Modifiers modifiers; 2671 final Modifiers modifiers;
2672 2672
2673 Link<FunctionElement> constructors = new Link<FunctionElement>(); 2673 Link<ConstructorElement> constructors = new Link<ConstructorElement>();
2674 2674
2675 InterfaceType mixinType; 2675 InterfaceType mixinType;
2676 2676
2677 MixinApplicationElementX(String name, Element enclosing, int id, 2677 MixinApplicationElementX(String name, Element enclosing, int id,
2678 this.node, this.modifiers) 2678 this.node, this.modifiers)
2679 : super(name, enclosing, id, STATE_NOT_STARTED); 2679 : super(name, enclosing, id, STATE_NOT_STARTED);
2680 2680
2681 ClassElement get mixin => mixinType != null ? mixinType.element : null; 2681 ClassElement get mixin => mixinType != null ? mixinType.element : null;
2682 2682
2683 bool get isMixinApplication => true; 2683 bool get isMixinApplication => true;
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after
2967 AstElement get definingElement; 2967 AstElement get definingElement;
2968 2968
2969 bool get hasResolvedAst => definingElement.hasTreeElements; 2969 bool get hasResolvedAst => definingElement.hasTreeElements;
2970 2970
2971 ResolvedAst get resolvedAst { 2971 ResolvedAst get resolvedAst {
2972 return new ResolvedAst(declaration, 2972 return new ResolvedAst(declaration,
2973 definingElement.node, definingElement.treeElements); 2973 definingElement.node, definingElement.treeElements);
2974 } 2974 }
2975 2975
2976 } 2976 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698