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

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

Issue 12082024: Use named arguments for messages. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebased Created 7 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 | 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 import 'dart:uri'; 7 import 'dart:uri';
8 8
9 import 'modelx.dart'; 9 import 'modelx.dart';
10 import '../tree/tree.dart'; 10 import '../tree/tree.dart';
(...skipping 426 matching lines...) Expand 10 before | Expand all | Expand 10 after
437 return a.hashCode.compareTo(b.hashCode); 437 return a.hashCode.compareTo(b.hashCode);
438 } 438 }
439 439
440 static List<Element> sortedByPosition(Iterable<Element> elements) { 440 static List<Element> sortedByPosition(Iterable<Element> elements) {
441 return elements.toList()..sort(compareByPosition); 441 return elements.toList()..sort(compareByPosition);
442 } 442 }
443 } 443 }
444 444
445 abstract class ErroneousElement extends Element implements FunctionElement { 445 abstract class ErroneousElement extends Element implements FunctionElement {
446 MessageKind get messageKind; 446 MessageKind get messageKind;
447 List get messageArguments; 447 Map get messageArguments;
448 } 448 }
449 449
450 abstract class AmbiguousElement extends Element { 450 abstract class AmbiguousElement extends Element {
451 MessageKind get messageKind; 451 MessageKind get messageKind;
452 List get messageArguments; 452 Map get messageArguments;
453 Element get existingElement; 453 Element get existingElement;
454 Element get newElement; 454 Element get newElement;
455 } 455 }
456 456
457 // TODO(kasperl): This probably shouldn't be called an element. It's 457 // TODO(kasperl): This probably shouldn't be called an element. It's
458 // just an interface shared by classes and libraries. 458 // just an interface shared by classes and libraries.
459 abstract class ScopeContainerElement { 459 abstract class ScopeContainerElement {
460 Element localLookup(SourceString elementName); 460 Element localLookup(SourceString elementName);
461 } 461 }
462 462
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after
778 Element get annotatedElement; 778 Element get annotatedElement;
779 int get resolutionState; 779 int get resolutionState;
780 Token get beginToken; 780 Token get beginToken;
781 781
782 // TODO(kasperl): Try to get rid of these. 782 // TODO(kasperl): Try to get rid of these.
783 void set annotatedElement(Element value); 783 void set annotatedElement(Element value);
784 void set resolutionState(int value); 784 void set resolutionState(int value);
785 785
786 MetadataAnnotation ensureResolved(Compiler compiler); 786 MetadataAnnotation ensureResolved(Compiler compiler);
787 } 787 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698