mirror of https://github.com/sveltejs/svelte
parent
cce3773a2d
commit
4e268e258f
@ -1,8 +1,8 @@
|
||||
import is_reference from 'is-reference';
|
||||
import { extract_identifiers } from '../../../utils/ast.js';
|
||||
|
||||
/** @type {import('../types').Visitors<import('../types').LegacyAnalysisState>} */
|
||||
export const analyze_scope_legacy = {
|
||||
/** @type {import('../types.js').Visitors<import('../types.js').LegacyAnalysisState>} */
|
||||
export const analyze_component_scope_legacy = {
|
||||
LabeledStatement(node, { next, path, state }) {
|
||||
if (
|
||||
state.ast_type !== 'instance' ||
|
@ -1,8 +1,8 @@
|
||||
import { extract_identifiers, extract_paths } from '../../../utils/ast.js';
|
||||
import { get_rune } from '../../scope.js';
|
||||
|
||||
/** @type {import('../types').Visitors} */
|
||||
export const analyze_scope_runes_component = {
|
||||
/** @type {import('../types.js').Visitors} */
|
||||
export const analyze_component_scope_runes = {
|
||||
VariableDeclarator(node, { state }) {
|
||||
if (node.init?.type !== 'CallExpression') return;
|
||||
if (get_rune(node.init, state.scope) === null) return;
|
@ -1,8 +1,8 @@
|
||||
import { extract_paths } from '../../../utils/ast.js';
|
||||
import { get_rune } from '../../scope.js';
|
||||
|
||||
/** @type {import('zimmerframe').Visitors<import('#compiler').SvelteNode, { scope: import('../../scope').Scope }>} */
|
||||
export const analyze_scope_runes_module = {
|
||||
/** @type {import('zimmerframe').Visitors<import('#compiler').SvelteNode, { scope: import('../../scope.js').Scope }>} */
|
||||
export const analyze_module_scope_runes = {
|
||||
VariableDeclarator(node, { state }) {
|
||||
if (node.init?.type !== 'CallExpression') return;
|
||||
if (get_rune(node.init, state.scope) === null) return;
|
Loading…
Reference in new issue