Skip to content

Commit fc61262

Browse files
authored
chore: delete some unused code (#15783)
* tidy up * more * more
1 parent 189bd47 commit fc61262

File tree

32 files changed

+27
-53
lines changed

32 files changed

+27
-53
lines changed

packages/svelte/src/compiler/migrate/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/** @import { VariableDeclarator, Node, Identifier, AssignmentExpression, LabeledStatement, ExpressionStatement } from 'estree' */
22
/** @import { Visitors } from 'zimmerframe' */
33
/** @import { ComponentAnalysis } from '../phases/types.js' */
4-
/** @import { Scope, ScopeRoot } from '../phases/scope.js' */
4+
/** @import { Scope } from '../phases/scope.js' */
55
/** @import { AST, Binding, ValidatedCompileOptions } from '#compiler' */
66
import MagicString from 'magic-string';
77
import { walk } from 'zimmerframe';

packages/svelte/src/compiler/phases/2-analyze/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import { walk } from 'zimmerframe';
66
import * as e from '../../errors.js';
77
import * as w from '../../warnings.js';
8-
import { extract_identifiers, is_text_attribute } from '../../utils/ast.js';
8+
import { extract_identifiers } from '../../utils/ast.js';
99
import * as b from '../../utils/builders.js';
1010
import { Scope, ScopeRoot, create_scopes, get_rune, set_scope } from '../scope.js';
1111
import check_graph_for_cycles from './utils/check_graph_for_cycles.js';

packages/svelte/src/compiler/phases/2-analyze/visitors/CallExpression.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/** @import { Context } from '../types' */
44
import { get_rune } from '../../scope.js';
55
import * as e from '../../../errors.js';
6-
import { get_parent, unwrap_optional } from '../../../utils/ast.js';
6+
import { get_parent } from '../../../utils/ast.js';
77
import { is_pure, is_safe_identifier } from './shared/utils.js';
88
import { dev, locate_node, source } from '../../../state.js';
99
import * as b from '../../../utils/builders.js';

packages/svelte/src/compiler/phases/2-analyze/visitors/ExportNamedDeclaration.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
/** @import { ExportNamedDeclaration, Identifier, Node } from 'estree' */
2-
/** @import { Binding } from '#compiler' */
1+
/** @import { ExportNamedDeclaration, Identifier } from 'estree' */
32
/** @import { Context } from '../types' */
4-
/** @import { Scope } from '../../scope' */
53
import * as e from '../../../errors.js';
64
import { extract_identifiers } from '../../../utils/ast.js';
75

packages/svelte/src/compiler/phases/2-analyze/visitors/Identifier.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
/** @import { Expression, Identifier } from 'estree' */
2-
/** @import { EachBlock } from '#compiler' */
32
/** @import { Context } from '../types' */
43
import is_reference from 'is-reference';
54
import { should_proxy } from '../../3-transform/client/utils.js';

packages/svelte/src/compiler/phases/2-analyze/visitors/MemberExpression.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
1-
/** @import { MemberExpression, Node } from 'estree' */
1+
/** @import { MemberExpression } from 'estree' */
22
/** @import { Context } from '../types' */
33
import * as e from '../../../errors.js';
4-
import * as w from '../../../warnings.js';
5-
import { object } from '../../../utils/ast.js';
64
import { is_pure, is_safe_identifier } from './shared/utils.js';
7-
import { mark_subtree_dynamic } from './shared/fragment.js';
85

96
/**
107
* @param {MemberExpression} node

packages/svelte/src/compiler/phases/2-analyze/visitors/shared/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/** @import { AssignmentExpression, Expression, Identifier, Literal, Node, Pattern, PrivateIdentifier, Super, UpdateExpression, VariableDeclarator } from 'estree' */
1+
/** @import { AssignmentExpression, Expression, Literal, Node, Pattern, Super, UpdateExpression, VariableDeclarator } from 'estree' */
22
/** @import { AST, Binding } from '#compiler' */
33
/** @import { AnalysisState, Context } from '../../types' */
44
/** @import { Scope } from '../../../scope' */

packages/svelte/src/compiler/phases/3-transform/client/visitors/BlockStatement.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/** @import { ArrowFunctionExpression, BlockStatement, CallExpression, Expression, FunctionDeclaration, FunctionExpression, Statement } from 'estree' */
1+
/** @import { ArrowFunctionExpression, BlockStatement, Expression, FunctionDeclaration, FunctionExpression, Statement } from 'estree' */
22
/** @import { ComponentContext } from '../types' */
33
import { add_state_transformers } from './shared/declarations.js';
44
import * as b from '../../../../utils/builders.js';

packages/svelte/src/compiler/phases/3-transform/client/visitors/ClassBody.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
/** @import { ClassBody, Expression, Identifier, Literal, MethodDefinition, PrivateIdentifier, PropertyDefinition } from 'estree' */
2-
/** @import { } from '#compiler' */
32
/** @import { Context, StateField } from '../types' */
4-
import { dev, is_ignored } from '../../../../state.js';
53
import * as b from '../../../../utils/builders.js';
64
import { regex_invalid_identifier_chars } from '../../../patterns.js';
75
import { get_rune } from '../../../scope.js';

packages/svelte/src/compiler/phases/3-transform/client/visitors/IfBlock.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/** @import { BlockStatement, Expression, Identifier } from 'estree' */
1+
/** @import { BlockStatement, Expression } from 'estree' */
22
/** @import { AST } from '#compiler' */
33
/** @import { ComponentContext } from '../types' */
44
import * as b from '../../../../utils/builders.js';

0 commit comments

Comments
 (0)