Skip to content

Add directives field to TSModuleDeclaration? #3564

@overlookmotel

Description

@overlookmotel

From #3532, it seems like this is legal syntax and 'use strict'; should be interpreted as a Directive:

namespace Foo {
    'use strict';
    export const bar = 123;
}

Should we add a directives: Vec<'a, Directive<'a>> field to TSModuleDeclaration and fill it in the parser, using same logic as for functions?

Metadata

Metadata

Assignees

Labels

Type

No type

Priority

None yet

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions