Skip to content

Commit bc75922

Browse files
authored
fix: add parent node to SvelteFunctionBindingsExpression (#650)
1 parent 6ff7516 commit bc75922

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

.changeset/flat-starfishes-think.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"svelte-eslint-parser": patch
3+
---
4+
5+
fix: add `parent` node to `SvelteFunctionBindingsExpression`

src/ast/script.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import type ESTree from "estree";
22
import type { BaseNode } from "./base.js";
3+
import type { SvelteBindingDirective } from "./html.js";
34

45
export type SvelteScriptNode =
56
| SvelteReactiveStatement
@@ -22,4 +23,5 @@ export interface SvelteFunctionBindingsExpression extends BaseNode {
2223
/** Setter */
2324
ESTree.Expression,
2425
];
26+
parent: SvelteBindingDirective;
2527
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy