| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 // This code was auto-generated, is not intended to be edited, and is subject to | 5 // This code was auto-generated, is not intended to be edited, and is subject to |
| 6 // significant change. Please see the README file for more information. | 6 // significant change. Please see the README file for more information. |
| 7 | 7 |
| 8 library engine.element; | 8 library engine.element; |
| 9 | 9 |
| 10 import 'dart:collection'; | 10 import 'dart:collection'; |
| (...skipping 1480 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1491 */ | 1491 */ |
| 1492 void set types(List<ClassElement> types) { | 1492 void set types(List<ClassElement> types) { |
| 1493 for (ClassElement type in types) { | 1493 for (ClassElement type in types) { |
| 1494 (type as ClassElementImpl).enclosingElement = this; | 1494 (type as ClassElementImpl).enclosingElement = this; |
| 1495 } | 1495 } |
| 1496 this._types = types; | 1496 this._types = types; |
| 1497 } | 1497 } |
| 1498 | 1498 |
| 1499 @override | 1499 @override |
| 1500 bool operator ==(Object object) => | 1500 bool operator ==(Object object) => |
| 1501 object != null && | 1501 object is CompilationUnitElementImpl && source == object.source; |
| 1502 runtimeType == object.runtimeType && | |
| 1503 source == (object as CompilationUnitElementImpl).source; | |
| 1504 | 1502 |
| 1505 @override | 1503 @override |
| 1506 accept(ElementVisitor visitor) => visitor.visitCompilationUnitElement(this); | 1504 accept(ElementVisitor visitor) => visitor.visitCompilationUnitElement(this); |
| 1507 | 1505 |
| 1508 @override | 1506 @override |
| 1509 void appendTo(StringBuffer buffer) { | 1507 void appendTo(StringBuffer buffer) { |
| 1510 if (source == null) { | 1508 if (source == null) { |
| 1511 buffer.write("{compilation unit}"); | 1509 buffer.write("{compilation unit}"); |
| 1512 } else { | 1510 } else { |
| 1513 buffer.write(source.fullName); | 1511 buffer.write(source.fullName); |
| (...skipping 3293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4807 return 3; | 4805 return 3; |
| 4808 } | 4806 } |
| 4809 visitedTypes.add(this); | 4807 visitedTypes.add(this); |
| 4810 // Reference the arrays of parameters | 4808 // Reference the arrays of parameters |
| 4811 List<DartType> normalParameterTypes = this.normalParameterTypes; | 4809 List<DartType> normalParameterTypes = this.normalParameterTypes; |
| 4812 List<DartType> optionalParameterTypes = this.optionalParameterTypes; | 4810 List<DartType> optionalParameterTypes = this.optionalParameterTypes; |
| 4813 Iterable<DartType> namedParameterTypes = this.namedParameterTypes.values; | 4811 Iterable<DartType> namedParameterTypes = this.namedParameterTypes.values; |
| 4814 // Generate the hashCode | 4812 // Generate the hashCode |
| 4815 int code = (returnType as TypeImpl).internalHashCode(visitedTypes); | 4813 int code = (returnType as TypeImpl).internalHashCode(visitedTypes); |
| 4816 for (int i = 0; i < normalParameterTypes.length; i++) { | 4814 for (int i = 0; i < normalParameterTypes.length; i++) { |
| 4817 code = (code << 1) + (normalParameterTypes[i] as TypeImpl).internalHashCod
e(visitedTypes); | 4815 code = (code << 1) + |
| 4816 (normalParameterTypes[i] as TypeImpl).internalHashCode(visitedTypes); |
| 4818 } | 4817 } |
| 4819 for (int i = 0; i < optionalParameterTypes.length; i++) { | 4818 for (int i = 0; i < optionalParameterTypes.length; i++) { |
| 4820 code = (code << 1) + (optionalParameterTypes[i] as TypeImpl).internalHashC
ode(visitedTypes); | 4819 code = (code << 1) + |
| 4820 (optionalParameterTypes[i] as TypeImpl).internalHashCode(visitedTypes)
; |
| 4821 } | 4821 } |
| 4822 for (DartType type in namedParameterTypes) { | 4822 for (DartType type in namedParameterTypes) { |
| 4823 code = (code << 1) + (type as TypeImpl).internalHashCode(visitedTypes); | 4823 code = (code << 1) + (type as TypeImpl).internalHashCode(visitedTypes); |
| 4824 } | 4824 } |
| 4825 return code; | 4825 return code; |
| 4826 } | 4826 } |
| 4827 | 4827 |
| 4828 @override | 4828 @override |
| 4829 Map<String, DartType> get namedParameterTypes { | 4829 Map<String, DartType> get namedParameterTypes { |
| 4830 LinkedHashMap<String, DartType> namedParameterTypes = | 4830 LinkedHashMap<String, DartType> namedParameterTypes = |
| (...skipping 816 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5647 (script as HtmlScriptElementImpl).enclosingElement = this; | 5647 (script as HtmlScriptElementImpl).enclosingElement = this; |
| 5648 } | 5648 } |
| 5649 this._scripts = scripts; | 5649 this._scripts = scripts; |
| 5650 } | 5650 } |
| 5651 | 5651 |
| 5652 @override | 5652 @override |
| 5653 bool operator ==(Object object) { | 5653 bool operator ==(Object object) { |
| 5654 if (identical(object, this)) { | 5654 if (identical(object, this)) { |
| 5655 return true; | 5655 return true; |
| 5656 } | 5656 } |
| 5657 if (object == null) { | 5657 return object is HtmlElementImpl && source == object.source; |
| 5658 return false; | |
| 5659 } | |
| 5660 return runtimeType == object.runtimeType && | |
| 5661 source == (object as HtmlElementImpl).source; | |
| 5662 } | 5658 } |
| 5663 | 5659 |
| 5664 @override | 5660 @override |
| 5665 accept(ElementVisitor visitor) => visitor.visitHtmlElement(this); | 5661 accept(ElementVisitor visitor) => visitor.visitHtmlElement(this); |
| 5666 | 5662 |
| 5667 @override | 5663 @override |
| 5668 void appendTo(StringBuffer buffer) { | 5664 void appendTo(StringBuffer buffer) { |
| 5669 if (source == null) { | 5665 if (source == null) { |
| 5670 buffer.write("{HTML file}"); | 5666 buffer.write("{HTML file}"); |
| 5671 } else { | 5667 } else { |
| (...skipping 1915 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7587 | 7583 |
| 7588 @override | 7584 @override |
| 7589 List<LibraryElement> get visibleLibraries { | 7585 List<LibraryElement> get visibleLibraries { |
| 7590 Set<LibraryElement> visibleLibraries = new Set(); | 7586 Set<LibraryElement> visibleLibraries = new Set(); |
| 7591 _addVisibleLibraries(visibleLibraries, false); | 7587 _addVisibleLibraries(visibleLibraries, false); |
| 7592 return new List.from(visibleLibraries); | 7588 return new List.from(visibleLibraries); |
| 7593 } | 7589 } |
| 7594 | 7590 |
| 7595 @override | 7591 @override |
| 7596 bool operator ==(Object object) => | 7592 bool operator ==(Object object) => |
| 7597 object != null && | 7593 object is LibraryElementImpl && |
| 7598 runtimeType == object.runtimeType && | 7594 _definingCompilationUnit == object.definingCompilationUnit; |
| 7599 _definingCompilationUnit == | |
| 7600 (object as LibraryElementImpl).definingCompilationUnit; | |
| 7601 | 7595 |
| 7602 @override | 7596 @override |
| 7603 accept(ElementVisitor visitor) => visitor.visitLibraryElement(this); | 7597 accept(ElementVisitor visitor) => visitor.visitLibraryElement(this); |
| 7604 | 7598 |
| 7605 @override | 7599 @override |
| 7606 ElementImpl getChild(String identifier) { | 7600 ElementImpl getChild(String identifier) { |
| 7607 if ((_definingCompilationUnit as CompilationUnitElementImpl).identifier == | 7601 if ((_definingCompilationUnit as CompilationUnitElementImpl).identifier == |
| 7608 identifier) { | 7602 identifier) { |
| 7609 return _definingCompilationUnit as CompilationUnitElementImpl; | 7603 return _definingCompilationUnit as CompilationUnitElementImpl; |
| 7610 } | 7604 } |
| (...skipping 3549 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11160 // bottom <: void (as bottom is a subtype of all types). | 11154 // bottom <: void (as bottom is a subtype of all types). |
| 11161 // void <: dynamic (as dynamic is a supertype of all types) | 11155 // void <: dynamic (as dynamic is a supertype of all types) |
| 11162 return identical(type, this) || type.isDynamic; | 11156 return identical(type, this) || type.isDynamic; |
| 11163 } | 11157 } |
| 11164 | 11158 |
| 11165 @override | 11159 @override |
| 11166 VoidTypeImpl substitute2(List<DartType> argumentTypes, | 11160 VoidTypeImpl substitute2(List<DartType> argumentTypes, |
| 11167 List<DartType> parameterTypes) => | 11161 List<DartType> parameterTypes) => |
| 11168 this; | 11162 this; |
| 11169 } | 11163 } |
| OLD | NEW |