feat(compiler-sfc): compileScript parseOnly mode
This is an internal feature meant for IDE support
This commit is contained in:
@@ -42,6 +42,25 @@ export interface SFCScriptBlock extends SFCBlock {
|
||||
bindings?: BindingMetadata
|
||||
scriptAst?: Statement[]
|
||||
scriptSetupAst?: Statement[]
|
||||
ranges?: ScriptSetupTextRanges
|
||||
}
|
||||
|
||||
/**
|
||||
* Text range data for IDE support
|
||||
*/
|
||||
export interface ScriptSetupTextRanges {
|
||||
scriptBindings: TextRange[]
|
||||
scriptSetupBindings: TextRange[]
|
||||
propsTypeArg?: TextRange
|
||||
propsRuntimeArg?: TextRange
|
||||
emitsTypeArg?: TextRange
|
||||
emitsRuntimeArg?: TextRange
|
||||
withDefaultsArg?: TextRange
|
||||
}
|
||||
|
||||
export interface TextRange {
|
||||
start: number
|
||||
end: number
|
||||
}
|
||||
|
||||
export interface SFCStyleBlock extends SFCBlock {
|
||||
|
||||
Reference in New Issue
Block a user