|
|
|
@ -965,6 +965,15 @@ declare module 'svelte/compiler' {
|
|
|
|
inside_rest?: boolean;
|
|
|
|
inside_rest?: boolean;
|
|
|
|
} | null;
|
|
|
|
} | null;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
interface ExpressionMetadata {
|
|
|
|
|
|
|
|
/** All the bindings that are referenced inside this expression */
|
|
|
|
|
|
|
|
dependencies: Set<Binding>;
|
|
|
|
|
|
|
|
/** True if the expression references state directly, or _might_ (via member/call expressions) */
|
|
|
|
|
|
|
|
has_state: boolean;
|
|
|
|
|
|
|
|
/** True if the expression involves a call expression (often, it will need to be wrapped in a derived) */
|
|
|
|
|
|
|
|
has_call: boolean;
|
|
|
|
|
|
|
|
}
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* The preprocess function provides convenient hooks for arbitrarily transforming component source code.
|
|
|
|
* The preprocess function provides convenient hooks for arbitrarily transforming component source code.
|
|
|
|
* For example, it can be used to convert a <style lang="sass"> block into vanilla CSS.
|
|
|
|
* For example, it can be used to convert a <style lang="sass"> block into vanilla CSS.
|
|
|
|
@ -1563,12 +1572,7 @@ declare module 'svelte/compiler' {
|
|
|
|
type: 'ExpressionTag';
|
|
|
|
type: 'ExpressionTag';
|
|
|
|
expression: Expression;
|
|
|
|
expression: Expression;
|
|
|
|
metadata: {
|
|
|
|
metadata: {
|
|
|
|
contains_call_expression: boolean;
|
|
|
|
expression: ExpressionMetadata;
|
|
|
|
/**
|
|
|
|
|
|
|
|
* Whether or not the expression contains any dynamic references —
|
|
|
|
|
|
|
|
* determines whether it will be updated in a render effect or not
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
dynamic: boolean;
|
|
|
|
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@ -1642,7 +1646,7 @@ declare module 'svelte/compiler' {
|
|
|
|
/** The 'y' in `class:x={y}`, or the `x` in `class:x` */
|
|
|
|
/** The 'y' in `class:x={y}`, or the `x` in `class:x` */
|
|
|
|
expression: Expression;
|
|
|
|
expression: Expression;
|
|
|
|
metadata: {
|
|
|
|
metadata: {
|
|
|
|
dynamic: false;
|
|
|
|
expression: ExpressionMetadata;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@ -1664,8 +1668,7 @@ declare module 'svelte/compiler' {
|
|
|
|
expression: null | Expression;
|
|
|
|
expression: null | Expression;
|
|
|
|
modifiers: string[]; // TODO specify
|
|
|
|
modifiers: string[]; // TODO specify
|
|
|
|
metadata: {
|
|
|
|
metadata: {
|
|
|
|
contains_call_expression: boolean;
|
|
|
|
expression: ExpressionMetadata;
|
|
|
|
dynamic: boolean;
|
|
|
|
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@ -1685,7 +1688,7 @@ declare module 'svelte/compiler' {
|
|
|
|
value: true | ExpressionTag | Array<ExpressionTag | Text>;
|
|
|
|
value: true | ExpressionTag | Array<ExpressionTag | Text>;
|
|
|
|
modifiers: Array<'important'>;
|
|
|
|
modifiers: Array<'important'>;
|
|
|
|
metadata: {
|
|
|
|
metadata: {
|
|
|
|
dynamic: boolean;
|
|
|
|
expression: ExpressionMetadata;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@ -1906,7 +1909,7 @@ declare module 'svelte/compiler' {
|
|
|
|
name: string;
|
|
|
|
name: string;
|
|
|
|
value: true | ExpressionTag | Array<Text | ExpressionTag>;
|
|
|
|
value: true | ExpressionTag | Array<Text | ExpressionTag>;
|
|
|
|
metadata: {
|
|
|
|
metadata: {
|
|
|
|
dynamic: boolean;
|
|
|
|
expression: ExpressionMetadata;
|
|
|
|
/** May be set if this is an event attribute */
|
|
|
|
/** May be set if this is an event attribute */
|
|
|
|
delegated: null | DelegatedEvent;
|
|
|
|
delegated: null | DelegatedEvent;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
@ -1916,8 +1919,7 @@ declare module 'svelte/compiler' {
|
|
|
|
type: 'SpreadAttribute';
|
|
|
|
type: 'SpreadAttribute';
|
|
|
|
expression: Expression;
|
|
|
|
expression: Expression;
|
|
|
|
metadata: {
|
|
|
|
metadata: {
|
|
|
|
contains_call_expression: boolean;
|
|
|
|
expression: ExpressionMetadata;
|
|
|
|
dynamic: boolean;
|
|
|
|
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|