@@ -267,7 +267,8 @@ abstract class AbstractClassElementImpl extends ElementImpl
267
267
/// This method should be used only for error recovery during analysis,
268
268
/// when instance access to a static class member, defined in this class,
269
269
/// or a superclass.
270
- ExecutableElement lookupStaticGetter (String name, LibraryElement library) {
270
+ PropertyAccessorElement lookupStaticGetter (
271
+ String name, LibraryElement library) {
271
272
return _first (_implementationsOfGetter (name).where ((element) {
272
273
return element.isStatic && element.isAccessibleIn (library);
273
274
}));
@@ -278,7 +279,7 @@ abstract class AbstractClassElementImpl extends ElementImpl
278
279
/// This method should be used only for error recovery during analysis,
279
280
/// when instance access to a static class member, defined in this class,
280
281
/// or a superclass.
281
- ExecutableElement lookupStaticMethod (String name, LibraryElement library) {
282
+ MethodElement lookupStaticMethod (String name, LibraryElement library) {
282
283
return _first (_implementationsOfMethod (name).where ((element) {
283
284
return element.isStatic && element.isAccessibleIn (library);
284
285
}));
@@ -289,7 +290,8 @@ abstract class AbstractClassElementImpl extends ElementImpl
289
290
/// This method should be used only for error recovery during analysis,
290
291
/// when instance access to a static class member, defined in this class,
291
292
/// or a superclass.
292
- ExecutableElement lookupStaticSetter (String name, LibraryElement library) {
293
+ PropertyAccessorElement lookupStaticSetter (
294
+ String name, LibraryElement library) {
293
295
return _first (_implementationsOfSetter (name).where ((element) {
294
296
return element.isStatic && element.isAccessibleIn (library);
295
297
}));
@@ -631,7 +633,7 @@ class ClassElementImpl extends AbstractClassElementImpl
631
633
bool get hasNoSuchMethod {
632
634
MethodElement method = lookUpConcreteMethod (
633
635
FunctionElement .NO_SUCH_METHOD_METHOD_NAME , library);
634
- ClassElement definingClass = method? .enclosingElement;
636
+ var definingClass = method? .enclosingElement as ClassElement ;
635
637
return definingClass != null && ! definingClass.isDartCoreObject;
636
638
}
637
639
@@ -902,7 +904,7 @@ class ClassElementImpl extends AbstractClassElementImpl
902
904
return < ConstructorElement > [];
903
905
}
904
906
905
- ClassElementImpl superElement = supertype.element;
907
+ var superElement = supertype.element as ClassElementImpl ;
906
908
907
909
// First get the list of constructors of the superclass which need to be
908
910
// forwarded to this class.
@@ -7275,7 +7277,7 @@ class TypeParameterElementImpl extends ElementImpl
7275
7277
@override
7276
7278
String get name {
7277
7279
if (linkedNode != null ) {
7278
- TypeParameter node = linkedNode;
7280
+ var node = linkedNode as TypeParameter ;
7279
7281
return node.name.name;
7280
7282
}
7281
7283
return super .name;
0 commit comments