this was weird

blocker-directives-fix
Simon Holthausen 20 hours ago
parent b3ed454edb
commit e3b1f59d76

@ -654,8 +654,7 @@ function read_attribute(parser) {
} }
} }
/** @type {AST.Directive} */ const directive = /** @type {AST.Directive} */ ({
const directive = {
start, start,
end, end,
type, type,
@ -664,7 +663,7 @@ function read_attribute(parser) {
metadata: { metadata: {
expression: new ExpressionMetadata() expression: new ExpressionMetadata()
} }
}; });
// @ts-expect-error we do this separately from the declaration to avoid upsetting typescript // @ts-expect-error we do this separately from the declaration to avoid upsetting typescript
directive.modifiers = modifiers; directive.modifiers = modifiers;

Loading…
Cancel
Save