declarations

package
v0.0.0-...-94ae2f2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 4, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeclarationEmitHost

type DeclarationEmitHost interface {
	modulespecifiers.ModuleSpecifierGenerationHost
	GetCurrentDirectory() string
	UseCaseSensitiveFileNames() bool
	GetSourceFileFromReference(origin *ast.SourceFile, ref *ast.FileReference) *ast.SourceFile

	GetOutputPathsFor(file *ast.SourceFile, forceDtsPaths bool) OutputPaths
	GetResolutionModeOverride(node *ast.Node) core.ResolutionMode
	GetEffectiveDeclarationFlags(node *ast.Node, flags ast.ModifierFlags) ast.ModifierFlags
	GetEmitResolver() printer.EmitResolver
}

Used to be passed in the TransformationContext, which is now just an EmitContext

type DeclarationTransformer

type DeclarationTransformer struct {
	transformers.Transformer
	// contains filtered or unexported fields
}

func NewDeclarationTransformer

func NewDeclarationTransformer(host DeclarationEmitHost, context *printer.EmitContext, compilerOptions *core.CompilerOptions, declarationFilePath string, declarationMapPath string) *DeclarationTransformer

TODO: Convert to transformers.TransformerFactory signature to allow more automatic composition with other transforms

func (*DeclarationTransformer) GetDiagnostics

func (tx *DeclarationTransformer) GetDiagnostics() []*ast.Diagnostic

type GetSymbolAccessibilityDiagnostic

type GetSymbolAccessibilityDiagnostic = func(symbolAccessibilityResult printer.SymbolAccessibilityResult) *SymbolAccessibilityDiagnostic

type OutputPaths

type OutputPaths interface {
	DeclarationFilePath() string
	JsFilePath() string
}

type ReferencedFilePair

type ReferencedFilePair struct {
	// contains filtered or unexported fields
}

type SymbolAccessibilityDiagnostic

type SymbolAccessibilityDiagnostic struct {
	// contains filtered or unexported fields
}

type SymbolTrackerImpl

type SymbolTrackerImpl struct {
	// contains filtered or unexported fields
}

func (*SymbolTrackerImpl) GetModuleSpecifierGenerationHost

func (s *SymbolTrackerImpl) GetModuleSpecifierGenerationHost() modulespecifiers.ModuleSpecifierGenerationHost

GetModuleSpecifierGenerationHost implements checker.SymbolTracker.

func (*SymbolTrackerImpl) PopErrorFallbackNode

func (s *SymbolTrackerImpl) PopErrorFallbackNode()

PopErrorFallbackNode implements checker.SymbolTracker.

func (*SymbolTrackerImpl) PushErrorFallbackNode

func (s *SymbolTrackerImpl) PushErrorFallbackNode(node *ast.Node)

PushErrorFallbackNode implements checker.SymbolTracker.

func (*SymbolTrackerImpl) ReportCyclicStructureError

func (s *SymbolTrackerImpl) ReportCyclicStructureError()

ReportCyclicStructureError implements checker.SymbolTracker.

func (*SymbolTrackerImpl) ReportInaccessibleThisError

func (s *SymbolTrackerImpl) ReportInaccessibleThisError()

ReportInaccessibleThisError implements checker.SymbolTracker.

func (*SymbolTrackerImpl) ReportInaccessibleUniqueSymbolError

func (s *SymbolTrackerImpl) ReportInaccessibleUniqueSymbolError()

ReportInaccessibleUniqueSymbolError implements checker.SymbolTracker.

func (*SymbolTrackerImpl) ReportInferenceFallback

func (s *SymbolTrackerImpl) ReportInferenceFallback(node *ast.Node)

ReportInferenceFallback implements checker.SymbolTracker.

func (*SymbolTrackerImpl) ReportLikelyUnsafeImportRequiredError

func (s *SymbolTrackerImpl) ReportLikelyUnsafeImportRequiredError(specifier string)

ReportLikelyUnsafeImportRequiredError implements checker.SymbolTracker.

func (*SymbolTrackerImpl) ReportNonSerializableProperty

func (s *SymbolTrackerImpl) ReportNonSerializableProperty(propertyName string)

ReportNonSerializableProperty implements checker.SymbolTracker.

func (*SymbolTrackerImpl) ReportNonlocalAugmentation

func (s *SymbolTrackerImpl) ReportNonlocalAugmentation(containingFile *ast.SourceFile, parentSymbol *ast.Symbol, augmentingSymbol *ast.Symbol)

ReportNonlocalAugmentation implements checker.SymbolTracker.

func (*SymbolTrackerImpl) ReportPrivateInBaseOfClassExpression

func (s *SymbolTrackerImpl) ReportPrivateInBaseOfClassExpression(propertyName string)

ReportPrivateInBaseOfClassExpression implements checker.SymbolTracker.

func (*SymbolTrackerImpl) ReportTruncationError

func (s *SymbolTrackerImpl) ReportTruncationError()

ReportTruncationError implements checker.SymbolTracker.

func (*SymbolTrackerImpl) TrackSymbol

func (s *SymbolTrackerImpl) TrackSymbol(symbol *ast.Symbol, enclosingDeclaration *ast.Node, meaning ast.SymbolFlags) bool

TrackSymbol implements checker.SymbolTracker.

type SymbolTrackerSharedState

type SymbolTrackerSharedState struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL