accessor fields reported through the parser's manifest

goodbye-acorn
Nic 1 day ago
parent 052ee6325f
commit ebe8f5e827

@ -148,6 +148,7 @@ const UNSUPPORTED = {
TSModuleDeclaration: 'namespaces with non-type nodes', TSModuleDeclaration: 'namespaces with non-type nodes',
TSParameterProperty: 'accessibility modifiers on constructor parameters', TSParameterProperty: 'accessibility modifiers on constructor parameters',
Decorator: 'decorators (related TSC proposal is not stage 4 yet)', Decorator: 'decorators (related TSC proposal is not stage 4 yet)',
AccessorProperty: 'accessor fields (related TSC proposal is not stage 4 yet)',
TSExportAssignment: 'export assignments', TSExportAssignment: 'export assignments',
TSImportEqualsDeclaration: 'import assignments' TSImportEqualsDeclaration: 'import assignments'
}; };

@ -8,10 +8,6 @@ import { get_name } from '../../nodes.js';
* @param {Context} context * @param {Context} context
*/ */
export function PropertyDefinition(node, context) { export function PropertyDefinition(node, context) {
if (/** @type {any} */ (node).accessor) {
e.typescript_invalid_feature(node, 'accessor fields (related TSC proposal is not stage 4 yet)');
}
const name = get_name(node.key); const name = get_name(node.key);
const field = name && context.state.state_fields.get(name); const field = name && context.state.state_fields.get(name);

Loading…
Cancel
Save