Skip to content

Commit de4d244

Browse files
committed
add ExportableNodeTypes and StatementTypesWithBody
1 parent c6017f4 commit de4d244

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/dictionary/dictionary.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { Functionary, Rule, RuleType } from './index.js';
2+
import { NodeType } from '../types.js';
23

34
const rules: Rule[] = [
45
{
@@ -53,5 +54,7 @@ export namespace dictionary {
5354
export const PrimitiveTypes: string[] = ['int', 'decimal', 'boolean', 'string'];
5455
export const Keywords: string[] = ['export', 'rule', 'keyword', 'import', 'operator', 'function', 'global'];
5556
export const Functionaries: Functionary[] = func;
57+
export const ExportableNodeTypes: NodeType[] = [NodeType.Function,NodeType.Operator,NodeType.Keyword,NodeType.Rule];
58+
export const StatementTypesWithBody: NodeType[] = [NodeType.Operator,NodeType.Function,NodeType.Global];
5659

5760
}

0 commit comments

Comments
 (0)