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

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

Issue 828413004: Don’t exit prematurely if compilation failed. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 5 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 | Annotate | Revision Log
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 'elements.dart'; 7 import 'elements.dart';
8 import '../constants/expressions.dart'; 8 import '../constants/expressions.dart';
9 import '../helpers/helpers.dart'; // Included for debug helpers. 9 import '../helpers/helpers.dart'; // Included for debug helpers.
10 import '../tree/tree.dart'; 10 import '../tree/tree.dart';
(...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after
506 set.add(ambiguous.newElement); 506 set.add(ambiguous.newElement);
507 element = ambiguous.existingElement; 507 element = ambiguous.existingElement;
508 } 508 }
509 set.add(element); 509 set.add(element);
510 return set; 510 return set;
511 } 511 }
512 512
513 accept(ElementVisitor visitor) => visitor.visitAmbiguousElement(this); 513 accept(ElementVisitor visitor) => visitor.visitAmbiguousElement(this);
514 514
515 bool get isTopLevel => false; 515 bool get isTopLevel => false;
516
517 DynamicType get type => const DynamicType();
516 } 518 }
517 519
518 /// Element synthesized to diagnose an ambiguous import. 520 /// Element synthesized to diagnose an ambiguous import.
519 class AmbiguousImportX extends AmbiguousElementX { 521 class AmbiguousImportX extends AmbiguousElementX {
520 AmbiguousImportX( 522 AmbiguousImportX(
521 MessageKind messageKind, 523 MessageKind messageKind,
522 Map messageArguments, 524 Map messageArguments,
523 Element enclosingElement, Element existingElement, Element newElement) 525 Element enclosingElement, Element existingElement, Element newElement)
524 : super(messageKind, messageArguments, enclosingElement, existingElement, 526 : super(messageKind, messageArguments, enclosingElement, existingElement,
525 newElement); 527 newElement);
(...skipping 2514 matching lines...) Expand 10 before | Expand all | Expand 10 after
3040 AstElement get definingElement; 3042 AstElement get definingElement;
3041 3043
3042 bool get hasResolvedAst => definingElement.hasTreeElements; 3044 bool get hasResolvedAst => definingElement.hasTreeElements;
3043 3045
3044 ResolvedAst get resolvedAst { 3046 ResolvedAst get resolvedAst {
3045 return new ResolvedAst(declaration, 3047 return new ResolvedAst(declaration,
3046 definingElement.node, definingElement.treeElements); 3048 definingElement.node, definingElement.treeElements);
3047 } 3049 }
3048 3050
3049 } 3051 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698