File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 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";
22import { Context } from "../context/index.js" ;
33import type {
44 Comment ,
5+ SourceLocation ,
56 SvelteProgram ,
67 SvelteScriptElement ,
78 SvelteStyleElement ,
@@ -10,8 +11,11 @@ import type {
1011import type { Program } from "estree" ;
1112import type { ScopeManager } from "eslint-scope" ;
1213import { 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" ;
1519import { parseScript , parseScriptInSvelte } from "./script.js" ;
1620import type * as SvAST from "./svelte-ast-types.js" ;
1721import type * as Compiler from "./svelte-ast-types-for-v5.js" ;
@@ -89,6 +93,11 @@ type ParseResult = {
8993 getSvelteHtmlAst : ( ) => SvAST . Fragment | Compiler . Fragment ;
9094 getStyleContext : ( ) => StyleContext ;
9195 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 > ;
92101 svelteParseContext : SvelteParseContext ;
93102 }
94103 | {
You can’t perform that action at this time.
0 commit comments