Class PullTypeSymbol

Hierarchy

Index

Constructor methods

Properties

Methods

Constructor methods

constructor(name: string, kind: PullElementKind): PullTypeSymbol

Parameters

Returns

PullTypeSymbol

Properties

private _allCallSignatures: any

private _allConstructSignatures: any

private _allIndexSignatures: any

private _allIndexSignaturesOfAugmentedType: any

private _allowedToReferenceTypeParameters: any

private _arrayVersionOfThisType: any

private _associatedContainerTypeSymbol: any

private _callSignatures: any

private _complexInstantiationCache: any

private _constructSignatures: any

private _constructorMethod: any

private _containedNonMemberContainerCache: any

private _containedNonMemberNameCache: any

private _containedNonMemberTypeNameCache: any

private _enclosedContainerCache: any

private _enclosedMemberContainers: any

private _enclosedMemberTypes: any

private _enclosedTypeNameCache: any

private _extendedTypes: any

private _functionSymbol: any

private _hasBaseTypeConflict: any

private _hasDefaultConstructor: any

private _hasGenericMember: any

private _hasGenericSignature: any

private _implementedTypes: any

private _inMemberTypeNameEx: any

private _indexSignatures: any

private _isArrayNamedTypeReference: any

private _knownBaseTypeCount: any

private _memberNameCache: any

private _members: any

private _simpleInstantiationCache: any

private _specializedVersionsOfThisType: any

private _typeParameterNameCache: any

private _typeParameters: any

private _typesThatExplicitlyImplementThisType: any

private _typesThatExtendThisType: any

private _widenedType: any

private _wrapsTypeParameterCache: any

public inResolution: boolean

public inSymbolPrivacyCheck: boolean

public inWrapCheck: boolean

public inWrapInfiniteExpandingReferenceCheck: boolean

public isOptional: boolean

public isPrinting: boolean

public isResolved: boolean

public isVarArg: boolean

public kind: PullElementKind

public name: string

public pullSymbolID: number

public type: PullTypeSymbol

public typeReference: PullTypeReferenceSymbol

Methods

public _getResolver(): PullTypeResolver

Returns

PullTypeResolver

public _resolveDeclaredSymbol(): PullSymbol

Returns

PullSymbol

public _wrapsSomeTypeParameterIntoInfinitelyExpandingTypeReferenceRecurse(enclosingType: PullTypeSymbol, knownWrapMap: IBitMatrix): boolean

Parameters

Returns

boolean

private _wrapsSomeTypeParameterIntoInfinitelyExpandingTypeReferenceStructure(enclosingType: any, knownWrapMap: any): any

Parameters

  • enclosingType: any
  • knownWrapMap: any

Returns

any

private _wrapsSomeTypeParameterIntoInfinitelyExpandingTypeReferenceWorker(enclosingType: any, knownWrapMap: any): any

Parameters

  • enclosingType: any
  • knownWrapMap: any

Returns

any

private addCallOrConstructSignaturePrerequisiteBase(signature: any): any

Parameters

  • signature: any

Returns

any

private addCallSignaturePrerequisite(callSignature: any): any

Parameters

  • callSignature: any

Returns

any

private addConstructSignaturePrerequisite(constructSignature: any): any

Parameters

  • constructSignature: any

Returns

any

public addDeclaration(decl: PullDecl)

Parameters

public addEnclosedMemberContainer(enclosedContainer: PullTypeSymbol)

Parameters

public addEnclosedMemberType(enclosedType: PullTypeSymbol)

Parameters

public addEnclosedNonMember(enclosedNonMember: PullSymbol)

Parameters

public addEnclosedNonMemberContainer(enclosedNonMemberContainer: PullTypeSymbol)

Parameters

public addEnclosedNonMemberType(enclosedNonMemberType: PullTypeSymbol)

Parameters

public addExtendedType(extendedType: PullTypeSymbol)

Parameters

public addImplementedType(implementedType: PullTypeSymbol)

Parameters

public addIndexSignature(indexSignature: PullSignatureSymbol)

Parameters

public addMember(memberSymbol: PullSymbol)

Parameters

public addSpecialization(specializedVersionOfThisType: PullTypeSymbol, typeArgumentMap: TypeArgumentMap)

Parameters

public addTypeParameter(typeParameter: PullTypeParameterSymbol)

Parameters

public addTypeThatExplicitlyImplementsThisType(type: PullTypeSymbol)

Parameters

public addTypeThatExtendsThisType(type: PullTypeSymbol)

Parameters

public allDeclsHaveFlag(flag: PullElementFlags): boolean

Parameters

Returns

boolean

public anyDeclHasFlag(flag: PullElementFlags): boolean

Parameters

Returns

boolean

public appendCallSignature(callSignature: PullSignatureSymbol)

Parameters

public appendConstructSignature(constructSignature: PullSignatureSymbol)

Parameters

private canUseSimpleInstantiationCache(typeArgumentMap: any): any

Parameters

  • typeArgumentMap: any

Returns

any

private computeIsArrayNamedTypeReference(): any

Returns

any

public docComments(useConstructorAsClass?: boolean): string

Parameters

  • useConstructorAsClass?: boolean optional

Returns

string

public findContainedNonMember(name: string): PullSymbol

Parameters

  • name: string

Returns

PullSymbol

public findContainedNonMemberContainer(containerName: string, kind?: PullElementKind): PullTypeSymbol

Parameters

Returns

PullTypeSymbol

public findContainedNonMemberType(typeName: string, kind?: PullElementKind): PullTypeSymbol

Parameters

Returns

PullTypeSymbol

public findMember(name: string, lookInParent: boolean): PullSymbol

Parameters

  • name: string
  • lookInParent: boolean

Returns

PullSymbol

public findNestedContainer(name: string, kind?: PullElementKind): PullTypeSymbol

Parameters

Returns

PullTypeSymbol

public findNestedType(name: string, kind?: PullElementKind): PullTypeSymbol

Parameters

Returns

PullTypeSymbol

public findTypeParameter(name: string): PullTypeParameterSymbol

Parameters

  • name: string

Returns

PullTypeParameterSymbol

public fullName(scopeSymbol?: PullSymbol): string

Parameters

Returns

string

public getAliasSymbolName(scopeSymbol: PullSymbol, aliasNameGetter: (symbol: TypeScript.PullTypeAliasSymbol) => string, aliasPartsNameGetter: (symbol: TypeScript.PullTypeAliasSymbol) => string, skipInternalAlias?: boolean): string

Parameters

  • scopeSymbol: PullSymbol
  • aliasNameGetter: (symbol: TypeScript.PullTypeAliasSymbol) => string
  • aliasPartsNameGetter: (symbol: TypeScript.PullTypeAliasSymbol) => string
  • skipInternalAlias?: boolean optional

Returns

string

public getAllMembers(searchDeclKind: PullElementKind, memberVisiblity: GetAllMembersVisiblity): PullSymbol[]

Parameters

Returns

PullSymbol[]

public getAllowedToReferenceTypeParameters(): PullTypeParameterSymbol[]

Returns

PullTypeParameterSymbol[]

public getArrayType(): PullTypeSymbol

Returns

PullTypeSymbol

public getAssociatedContainerType(): PullTypeSymbol

Returns

PullTypeSymbol

private getBaseClassConstructSignatures(baseType: any): any

Parameters

  • baseType: any

Returns

any

public getCallSignatures(): PullSignatureSymbol[]

Returns

PullSignatureSymbol[]

public getConstructSignatures(): PullSignatureSymbol[]

Returns

PullSignatureSymbol[]

public getConstructorMethod(): PullSymbol

Returns

PullSymbol

public getContainer(): PullTypeSymbol

Returns

PullTypeSymbol

public getDeclarations(): PullDecl[]

Returns

PullDecl[]

private getDefaultClassConstructSignature(): any

Returns

any

public getDisplayName(scopeSymbol?: PullSymbol, useConstraintInName?: boolean, skipInternalAliasName?: boolean): string

Parameters

  • scopeSymbol?: PullSymbol optional
  • useConstraintInName?: boolean optional
  • skipInternalAliasName?: boolean optional

Returns

string

public getElementType(): PullTypeSymbol

Returns

PullTypeSymbol

public getEnclosingSignature(): PullSignatureSymbol

Returns

PullSignatureSymbol

public getExtendedTypes(): PullTypeSymbol[]

Returns

PullTypeSymbol[]

public getExternalAliasedSymbols(scopeSymbol: PullSymbol): PullTypeAliasSymbol[]

Parameters

Returns

PullTypeAliasSymbol[]

public getFunctionSymbol(): PullSymbol

Returns

PullSymbol

public getGenerativeTypeClassification(enclosingType: PullTypeSymbol): GenerativeTypeClassification

Parameters

Returns

GenerativeTypeClassification

public getHasDefaultConstructor(): boolean

Returns

boolean

public getHasGenericMember(): boolean

Returns

boolean

public getHasGenericSignature(): boolean

Returns

boolean

public getImplementedTypes(): PullTypeSymbol[]

Returns

PullTypeSymbol[]

public getIndexSignatures(): PullSignatureSymbol[]

Returns

PullSignatureSymbol[]

public getIndexSignaturesOfAugmentedType(resolver: PullTypeResolver, globalFunctionInterface: PullTypeSymbol, globalObjectInterface: PullTypeSymbol): PullSignatureSymbol[]

Parameters

Returns

PullSignatureSymbol[]

public getIsSpecialized(): boolean

Returns

boolean

public getIsSynthesized(): any

Returns

any

public getKnownBaseTypeCount(): number

Returns

number

public getKnownSpecializations(): PullTypeSymbol[]

Returns

PullTypeSymbol[]

private getMemberTypeNameEx(topLevel: any, scopeSymbol?: any, getPrettyTypeName?: any): any

Parameters

  • topLevel: any
  • scopeSymbol?: any optional
  • getPrettyTypeName?: any optional

Returns

any

public getMembers(): PullSymbol[]

Returns

PullSymbol[]

public getName(scopeSymbol?: PullSymbol, useConstraintInName?: boolean): string

Parameters

  • scopeSymbol?: PullSymbol optional
  • useConstraintInName?: boolean optional

Returns

string

public getNameAndTypeName(scopeSymbol?: PullSymbol): string

Parameters

Returns

string

public getNameAndTypeNameEx(scopeSymbol?: PullSymbol): MemberName

Parameters

Returns

MemberName

public getNamePartForFullName(): string

Returns

string

public getOwnCallSignatures(): PullSignatureSymbol[]

Returns

PullSignatureSymbol[]

public getOwnDeclaredConstructSignatures(): PullSignatureSymbol[]

Returns

PullSignatureSymbol[]

public getOwnIndexSignatures(): PullSignatureSymbol[]

Returns

PullSignatureSymbol[]

public getRootSymbol(): PullSymbol

Returns

PullSymbol

public getScopedName(scopeSymbol?: PullSymbol, skipTypeParametersInName?: boolean, useConstraintInName?: boolean, skipInternalAliasName?: boolean): string

Parameters

  • scopeSymbol?: PullSymbol optional
  • skipTypeParametersInName?: boolean optional
  • useConstraintInName?: boolean optional
  • skipInternalAliasName?: boolean optional

Returns

string

public getScopedNameEx(scopeSymbol?: PullSymbol, skipTypeParametersInName?: boolean, useConstraintInName?: boolean, getPrettyTypeName?: boolean, getTypeParamMarkerInfo?: boolean, skipInternalAliasName?: boolean, shouldAllowArrayType?: boolean): MemberName

Parameters

  • scopeSymbol?: PullSymbol optional
  • skipTypeParametersInName?: boolean optional
  • useConstraintInName?: boolean optional
  • getPrettyTypeName?: boolean optional
  • getTypeParamMarkerInfo?: boolean optional
  • skipInternalAliasName?: boolean optional
  • shouldAllowArrayType?: boolean optional

Returns

MemberName

private getSimpleInstantiationCacheId(typeArgumentMap: any): any

Parameters

  • typeArgumentMap: any

Returns

any

public getSpecialization(typeArgumentMap: TypeArgumentMap): PullTypeSymbol

Parameters

Returns

PullTypeSymbol

public getTypeArguments(): PullTypeSymbol[]

Returns

PullTypeSymbol[]

public getTypeArgumentsOrTypeParameters(): PullTypeSymbol[]

Returns

PullTypeSymbol[]

public getTypeName(scopeSymbol?: PullSymbol, getPrettyTypeName?: boolean): string

Parameters

  • scopeSymbol?: PullSymbol optional
  • getPrettyTypeName?: boolean optional

Returns

string

public getTypeNameEx(scopeSymbol?: PullSymbol, getPrettyTypeName?: boolean): MemberName

Parameters

  • scopeSymbol?: PullSymbol optional
  • getPrettyTypeName?: boolean optional

Returns

MemberName

public getTypeOfSymbol(): PullSymbol

Returns

PullSymbol

public getTypeParameterArgumentMap(): TypeArgumentMap

Returns

TypeArgumentMap

public getTypeParameters(): PullTypeParameterSymbol[]

Returns

PullTypeParameterSymbol[]

public getTypesThatExplicitlyImplementThisType(): PullTypeSymbol[]

Returns

PullTypeSymbol[]

public getTypesThatExtendThisType(): PullTypeSymbol[]

Returns

PullTypeSymbol[]

public getWrappingTypeParameterID(typeParameterArgumentMap: TypeArgumentMap, skipTypeArgumentCheck?: boolean): number

Parameters

  • typeParameterArgumentMap: TypeArgumentMap
  • skipTypeArgumentCheck?: boolean optional

Returns

number

private getWrappingTypeParameterIDFromSignatures(signatures: any, typeParameterArgumentMap: any): any

Parameters

  • signatures: any
  • typeParameterArgumentMap: any

Returns

any

private getWrappingTypeParameterIDWorker(typeParameterArgumentMap: any, skipTypeArgumentCheck: any): any

Parameters

  • typeParameterArgumentMap: any
  • skipTypeArgumentCheck: any

Returns

any

public hasBase(potentialBase: PullTypeSymbol, visited?: PullSymbol[]): boolean

Parameters

Returns

boolean

public hasBaseTypeConflict(): boolean

Returns

boolean

public hasDeclaration(decl: PullDecl): boolean

Parameters

Returns

boolean

public hasMembers(): boolean

Returns

boolean

public hasOnlyOverloadCallSignatures(): boolean

Returns

boolean

public hasOwnCallSignatures(): boolean

Returns

boolean

public hasOwnConstructSignatures(): boolean

Returns

boolean

public hasOwnIndexSignatures(): boolean

Returns

boolean

public incrementKnownBaseCount()

public insertCallSignatureAtIndex(callSignature: PullSignatureSymbol, index: number)

Parameters

public insertConstructSignatureAtIndex(constructSignature: PullSignatureSymbol, index: number)

Parameters

public isAccessor(): boolean

Returns

boolean

public isAlias(): boolean

Returns

boolean

public isAny(): boolean

Returns

boolean

public isArrayNamedTypeReference(): boolean

Returns

boolean

public isClass(): boolean

Returns

boolean

public isConstructor(): boolean

Returns

boolean

public isContainer(): boolean

Returns

boolean

public isEnum(): boolean

Returns

boolean

public isError(): boolean

Returns

boolean

public isExternallyVisible(inIsExternallyVisibleSymbols?: PullSymbol[]): boolean

Parameters

  • inIsExternallyVisibleSymbols?: PullSymbol[] optional

Returns

boolean

public isFunction(): boolean

Returns

boolean

public isFunctionType(): boolean

Returns

boolean

public isGeneric(): boolean

Returns

boolean

public isInterface(): boolean

Returns

boolean

public isMethod(): boolean

Returns

boolean

public isNamedTypeSymbol(): boolean

Returns

boolean

public isObject(): boolean

Returns

boolean

public isPrimitive(): boolean

Returns

boolean

public isProperty(): boolean

Returns

boolean

public isSignature(): boolean

Returns

boolean

public isType(): boolean

Returns

boolean

public isTypeParameter(): boolean

Returns

boolean

public isTypeReference(): boolean

Returns

boolean

public isTypeVariable(): boolean

Returns

boolean

public isValidBaseKind(baseType: PullTypeSymbol, isExtendedType: boolean): boolean

Parameters

Returns

boolean

public pathToRoot(): PullSymbol[]

Returns

PullSymbol[]

public resetKnownBaseTypeCount()

public setArrayType(arrayType: PullTypeSymbol)

Parameters

public setAssociatedContainerType(type: PullTypeSymbol)

Parameters

public setConstructorMethod(constructorMethod: PullSymbol)

Parameters

public setContainer(containerSymbol: PullTypeSymbol)

Parameters

public setEnclosingSignature(signature: PullSignatureSymbol)

Parameters

public setFunctionSymbol(symbol: PullSymbol)

Parameters

public setHasBaseTypeConflict()

public setHasDefaultConstructor(hasOne?: boolean)

Parameters

  • hasOne?: boolean optional

public setHasGenericMember()

public setHasGenericSignature()

public setIsSynthesized(value?: boolean)

Parameters

  • value?: boolean optional

public setResolved()

public setRootSymbol(symbol: PullSymbol)

Parameters

public setUnresolved()

public startResolving()

public toString(scopeSymbol?: PullSymbol, useConstraintInName?: boolean): string

Parameters

  • scopeSymbol?: PullSymbol optional
  • useConstraintInName?: boolean optional

Returns

string

public widenedType(resolver: PullTypeResolver, ast: AST, context: PullTypeResolutionContext): PullTypeSymbol

Parameters

Returns

PullTypeSymbol

public wrapsSomeTypeParameter(typeParameterArgumentMap: CandidateInferenceInfo[]): boolean

Parameters

Returns

boolean

public wrapsSomeTypeParameter(typeParameterArgumentMap: TypeArgumentMap, skipTypeArgumentCheck?: boolean): boolean

Parameters

  • typeParameterArgumentMap: TypeArgumentMap
  • skipTypeArgumentCheck?: boolean optional

Returns

boolean

public wrapsSomeTypeParameterIntoInfinitelyExpandingTypeReference(enclosingType: PullTypeSymbol): boolean

Parameters

Returns

boolean