mirror of
https://github.com/dart-lang/sdk
synced 2024-09-04 16:03:44 +00:00
Don't cast to ClassElementImpl where we don't need to.
R=brianwilkerson@google.com BUG= Review URL: https://codereview.chromium.org/1537233002 .
This commit is contained in:
parent
69723d3388
commit
a20bbc5f7f
|
@ -1295,16 +1295,16 @@ class InterfaceTypeImpl extends TypeImpl implements InterfaceType {
|
|||
}
|
||||
|
||||
@override
|
||||
PropertyAccessorElement getGetter(String getterName) => PropertyAccessorMember
|
||||
.from((element as ClassElementImpl).getGetter(getterName), this);
|
||||
PropertyAccessorElement getGetter(String getterName) =>
|
||||
PropertyAccessorMember.from(element.getGetter(getterName), this);
|
||||
|
||||
@override
|
||||
MethodElement getMethod(String methodName) => MethodMember.from(
|
||||
(element as ClassElementImpl).getMethod(methodName), this);
|
||||
MethodElement getMethod(String methodName) =>
|
||||
MethodMember.from(element.getMethod(methodName), this);
|
||||
|
||||
@override
|
||||
PropertyAccessorElement getSetter(String setterName) => PropertyAccessorMember
|
||||
.from((element as ClassElementImpl).getSetter(setterName), this);
|
||||
PropertyAccessorElement getSetter(String setterName) =>
|
||||
PropertyAccessorMember.from(element.getSetter(setterName), this);
|
||||
|
||||
@override
|
||||
bool isDirectSupertypeOf(InterfaceType type) {
|
||||
|
|
|
@ -2129,7 +2129,7 @@ class ElementResolver extends SimpleAstVisitor<Object> {
|
|||
* given [propertyName], return the element that represents the property.
|
||||
*/
|
||||
Element _resolveElement(
|
||||
ClassElementImpl classElement, SimpleIdentifier propertyName) {
|
||||
ClassElement classElement, SimpleIdentifier propertyName) {
|
||||
String name = propertyName.name;
|
||||
Element element = null;
|
||||
if (propertyName.inSetterContext()) {
|
||||
|
|
Loading…
Reference in a new issue