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

Side by Side Diff: dart/sdk/lib/_internal/compiler/implementation/elements/elements.dart

Issue 20742002: Clean up error handling. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Added documentation guide lines. Created 7 years, 4 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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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; 5 library elements;
6 6
7 7
8 import 'modelx.dart'; 8 import 'modelx.dart';
9 import '../tree/tree.dart'; 9 import '../tree/tree.dart';
10 import '../util/util.dart'; 10 import '../util/util.dart';
11 import '../resolution/resolution.dart'; 11 import '../resolution/resolution.dart';
12 12
13 import '../dart2jslib.dart' show InterfaceType, 13 import '../dart2jslib.dart' show InterfaceType,
14 DartType, 14 DartType,
15 TypeVariableType, 15 TypeVariableType,
16 TypedefType, 16 TypedefType,
17 DualKind,
17 MessageKind, 18 MessageKind,
18 DiagnosticListener, 19 DiagnosticListener,
19 Script, 20 Script,
20 FunctionType, 21 FunctionType,
21 SourceString, 22 SourceString,
22 Selector, 23 Selector,
23 Constant, 24 Constant,
24 Compiler; 25 Compiler;
25 26
26 import '../dart_types.dart'; 27 import '../dart_types.dart';
(...skipping 545 matching lines...) Expand 10 before | Expand all | Expand 10 after
572 return element == null || element.statement != body; 573 return element == null || element.statement != body;
573 } 574 }
574 } 575 }
575 576
576 abstract class ErroneousElement extends Element implements FunctionElement { 577 abstract class ErroneousElement extends Element implements FunctionElement {
577 MessageKind get messageKind; 578 MessageKind get messageKind;
578 Map get messageArguments; 579 Map get messageArguments;
579 } 580 }
580 581
581 abstract class AmbiguousElement extends Element { 582 abstract class AmbiguousElement extends Element {
582 MessageKind get messageKind; 583 DualKind get messageKind;
583 Map get messageArguments; 584 Map get messageArguments;
584 Element get existingElement; 585 Element get existingElement;
585 Element get newElement; 586 Element get newElement;
586 } 587 }
587 588
588 // TODO(kasperl): This probably shouldn't be called an element. It's 589 // TODO(kasperl): This probably shouldn't be called an element. It's
589 // just an interface shared by classes and libraries. 590 // just an interface shared by classes and libraries.
590 abstract class ScopeContainerElement { 591 abstract class ScopeContainerElement {
591 Element localLookup(SourceString elementName); 592 Element localLookup(SourceString elementName);
592 593
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after
936 int get resolutionState; 937 int get resolutionState;
937 Token get beginToken; 938 Token get beginToken;
938 Token get endToken; 939 Token get endToken;
939 940
940 // TODO(kasperl): Try to get rid of these. 941 // TODO(kasperl): Try to get rid of these.
941 void set annotatedElement(Element value); 942 void set annotatedElement(Element value);
942 void set resolutionState(int value); 943 void set resolutionState(int value);
943 944
944 MetadataAnnotation ensureResolved(Compiler compiler); 945 MetadataAnnotation ensureResolved(Compiler compiler);
945 } 946 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698