public void resolveTypes ( ) { for ( NamedType type : unresolvedNamedTypes ) { type . resolve ( reporter ) ; } unresolvedNamedTypes . clear ( ) ; // By default, the global "this" type is just an anonymous object. // If the user has defined a Window type, make the Window the // implicit prototype of "this". PrototypeObjectType globalThis = ( PrototypeObjectType ) getNativeType ( JSTypeNative . GLOBAL_THIS ) ; JSType windowType = getTypeInternal ( null , "Window" ) ; if ( globalThis . isUnknownType ( ) ) { ObjectType windowObjType = ObjectType . cast ( windowType ) ; if ( windowObjType != null ) { globalThis . setImplicitPrototype ( windowObjType ) ; } else { globalThis . setImplicitPrototype ( getNativeObjectType ( JSTypeNative . OBJECT_TYPE ) ) ; } } }
Resolve all the unresolved types in the given scope .