File tree 1 file changed +11
-2
lines changed
1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import { KEYS } from "../visitor-keys.js";
2
2
import { Context } from "../context/index.js" ;
3
3
import type {
4
4
Comment ,
5
+ SourceLocation ,
5
6
SvelteProgram ,
6
7
SvelteScriptElement ,
7
8
SvelteStyleElement ,
@@ -10,8 +11,11 @@ import type {
10
11
import type { Program } from "estree" ;
11
12
import type { ScopeManager } from "eslint-scope" ;
12
13
import { Variable } from "eslint-scope" ;
13
- import type { Rule } from "postcss" ;
14
- import type { Root as SelectorRoot } from "postcss-selector-parser" ;
14
+ import type { Rule , Node } from "postcss" ;
15
+ import type {
16
+ Node as SelectorNode ,
17
+ Root as SelectorRoot ,
18
+ } from "postcss-selector-parser" ;
15
19
import { parseScript , parseScriptInSvelte } from "./script.js" ;
16
20
import type * as SvAST from "./svelte-ast-types.js" ;
17
21
import type * as Compiler from "./svelte-ast-types-for-v5.js" ;
@@ -89,6 +93,11 @@ type ParseResult = {
89
93
getSvelteHtmlAst : ( ) => SvAST . Fragment | Compiler . Fragment ;
90
94
getStyleContext : ( ) => StyleContext ;
91
95
getStyleSelectorAST : ( rule : Rule ) => SelectorRoot ;
96
+ styleNodeLoc : ( node : Node ) => Partial < SourceLocation > ;
97
+ styleNodeRange : (
98
+ node : Node ,
99
+ ) => [ number | undefined , number | undefined ] ;
100
+ styleSelectorNodeLoc : ( node : SelectorNode ) => Partial < SourceLocation > ;
92
101
svelteParseContext : SvelteParseContext ;
93
102
}
94
103
| {
You can’t perform that action at this time.
0 commit comments