Documentation
¶
Index ¶
Constants ¶
View Source
const ProtocolVersion uint32 = 1
Variables ¶
This section is empty.
Functions ¶
func Run ¶
func Run(opts PluginOptions)
Types ¶
type IgnoreDirectiveMapping ¶
type InitializationMessage ¶
type Mapping ¶
type PluginInstance ¶
type PluginInstance struct {
CreateServiceCode func(cwd, configFileName, fileName string, sourceText string) *ServiceCode
}
type PluginOptions ¶
type ScriptKind ¶
type ScriptKind uint8
const ( ScriptKindJS ScriptKind = iota ScriptKindJSX ScriptKindTS ScriptKindTSX )
type ServiceCode ¶
type ServiceCode struct {
Errors []ServiceCodeError
ServiceText []byte
ScriptKind ScriptKind
Mappings []Mapping
IgnoreMappings []IgnoreDirectiveMapping
ExpectErrorMappings []ExpectErrorDirectiveMapping
DeclarationFile bool
IgnoreNotMappedDiagnostics bool
}
type ServiceCodeError ¶
type ServiceCodeProperties ¶
type ServiceCodeProperties uint8
const ( ServiceCodePropertiesError ServiceCodeProperties = 1 << iota ServiceCodePropertiesDeclarationFile ServiceCodePropertiesIgnoreNotMappedDiagnostics )
Click to show internal directories.
Click to hide internal directories.