|
|
|
@ -4,7 +4,6 @@ import compiler_errors from '../compiler_errors.js';
|
|
|
|
|
|
|
|
|
|
|
|
/** @extends Node */
|
|
|
|
/** @extends Node */
|
|
|
|
export default class Animation extends Node {
|
|
|
|
export default class Animation extends Node {
|
|
|
|
|
|
|
|
|
|
|
|
/** @type {'Animation'} */
|
|
|
|
/** @type {'Animation'} */
|
|
|
|
type;
|
|
|
|
type;
|
|
|
|
|
|
|
|
|
|
|
|
@ -39,13 +38,9 @@ export default class Animation extends Node {
|
|
|
|
component.error(this, compiler_errors.invalid_animation_key);
|
|
|
|
component.error(this, compiler_errors.invalid_animation_key);
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
( /** @type {import('./EachBlock.js').default} */(block)).has_animation = true;
|
|
|
|
/** @type {import('./EachBlock.js').default} */ (block).has_animation = true;
|
|
|
|
this.expression = info.expression
|
|
|
|
this.expression = info.expression
|
|
|
|
? new Expression(component, this, scope, info.expression, true)
|
|
|
|
? new Expression(component, this, scope, info.expression, true)
|
|
|
|
: null;
|
|
|
|
: null;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|