Documentation
¶
Index ¶
- type DeclarationEmitHost
- type DeclarationTransformer
- type GetSymbolAccessibilityDiagnostic
- type OutputPaths
- type ReferencedFilePair
- type SymbolAccessibilityDiagnostic
- type SymbolTrackerImpl
- func (s *SymbolTrackerImpl) GetModuleSpecifierGenerationHost() modulespecifiers.ModuleSpecifierGenerationHost
- func (s *SymbolTrackerImpl) PopErrorFallbackNode()
- func (s *SymbolTrackerImpl) PushErrorFallbackNode(node *ast.Node)
- func (s *SymbolTrackerImpl) ReportCyclicStructureError()
- func (s *SymbolTrackerImpl) ReportInaccessibleThisError()
- func (s *SymbolTrackerImpl) ReportInaccessibleUniqueSymbolError()
- func (s *SymbolTrackerImpl) ReportInferenceFallback(node *ast.Node)
- func (s *SymbolTrackerImpl) ReportLikelyUnsafeImportRequiredError(specifier string)
- func (s *SymbolTrackerImpl) ReportNonSerializableProperty(propertyName string)
- func (s *SymbolTrackerImpl) ReportNonlocalAugmentation(containingFile *ast.SourceFile, parentSymbol *ast.Symbol, ...)
- func (s *SymbolTrackerImpl) ReportPrivateInBaseOfClassExpression(propertyName string)
- func (s *SymbolTrackerImpl) ReportTruncationError()
- func (s *SymbolTrackerImpl) TrackSymbol(symbol *ast.Symbol, enclosingDeclaration *ast.Node, meaning ast.SymbolFlags) bool
- type SymbolTrackerSharedState
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 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 NewSymbolTracker ¶
func NewSymbolTracker(host DeclarationEmitHost, resolver printer.EmitResolver, state *SymbolTrackerSharedState) *SymbolTrackerImpl
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
}