Class PullStringConstantTypeSymbol

Hierarchy

Index

Constructor methods

Properties

Methods

Constructor methods

constructor(name: string): PullStringConstantTypeSymbol

Parameters

  • name: string

Returns

PullStringConstantTypeSymbol

Properties

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

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

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

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[]

public getDisplayName(): string

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[]

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

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

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 isNull(): boolean

Returns

boolean

public isObject(): boolean

Returns

boolean

public isPrimitive(): boolean

Returns

boolean

public isProperty(): boolean

Returns

boolean

public isSignature(): boolean

Returns

boolean

public isStringConstant(): boolean

Returns

boolean

public isType(): boolean

Returns

boolean

public isTypeParameter(): boolean

Returns

boolean

public isTypeReference(): boolean

Returns

boolean

public isTypeVariable(): boolean

Returns

boolean

public isUndefined(): 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