@dbml/parse 7.0.0 → 7.1.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dbml-parse.js +16 -16
- package/dist/dbml-parse.mjs +5539 -5355
- package/dist/src/compiler/index.d.ts +21 -21
- package/dist/src/compiler/queries/container/element.d.ts +1 -1
- package/dist/src/compiler/queries/container/index.d.ts +5 -5
- package/dist/src/compiler/queries/container/scope.d.ts +1 -1
- package/dist/src/compiler/queries/container/stack.d.ts +1 -1
- package/dist/src/compiler/queries/container/token.d.ts +1 -1
- package/dist/src/compiler/queries/{parse.d.ts → legacy/parse.d.ts} +6 -6
- package/dist/src/compiler/queries/{symbol.d.ts → legacy/symbol.d.ts} +4 -4
- package/dist/src/compiler/queries/{token.d.ts → legacy/token.d.ts} +2 -2
- package/dist/src/compiler/queries/transform/index.d.ts +4 -4
- package/dist/src/compiler/queries/transform/utils.d.ts +2 -2
- package/dist/src/constants.d.ts +4 -0
- package/dist/src/core/analyzer/analyzer.d.ts +3 -3
- package/dist/src/core/analyzer/binder/binder.d.ts +3 -3
- package/dist/src/core/analyzer/binder/elementBinder/checks.d.ts +2 -2
- package/dist/src/core/analyzer/binder/elementBinder/custom.d.ts +4 -4
- package/dist/src/core/analyzer/binder/elementBinder/diagramView.d.ts +4 -4
- package/dist/src/core/analyzer/binder/elementBinder/enum.d.ts +4 -4
- package/dist/src/core/analyzer/binder/elementBinder/indexes.d.ts +4 -4
- package/dist/src/core/analyzer/binder/elementBinder/note.d.ts +4 -4
- package/dist/src/core/analyzer/binder/elementBinder/project.d.ts +4 -4
- package/dist/src/core/analyzer/binder/elementBinder/records.d.ts +4 -4
- package/dist/src/core/analyzer/binder/elementBinder/ref.d.ts +4 -4
- package/dist/src/core/analyzer/binder/elementBinder/table.d.ts +4 -4
- package/dist/src/core/analyzer/binder/elementBinder/tableGroup.d.ts +4 -4
- package/dist/src/core/analyzer/binder/elementBinder/tablePartial.d.ts +4 -4
- package/dist/src/core/analyzer/binder/types.d.ts +1 -1
- package/dist/src/core/analyzer/binder/utils.d.ts +5 -5
- package/dist/src/core/analyzer/utils.d.ts +15 -18
- package/dist/src/core/analyzer/validator/elementValidators/checks.d.ts +5 -5
- package/dist/src/core/analyzer/validator/elementValidators/custom.d.ts +5 -5
- package/dist/src/core/analyzer/validator/elementValidators/diagramView.d.ts +5 -5
- package/dist/src/core/analyzer/validator/elementValidators/enum.d.ts +5 -5
- package/dist/src/core/analyzer/validator/elementValidators/indexes.d.ts +5 -5
- package/dist/src/core/analyzer/validator/elementValidators/note.d.ts +5 -5
- package/dist/src/core/analyzer/validator/elementValidators/project.d.ts +5 -5
- package/dist/src/core/analyzer/validator/elementValidators/records.d.ts +5 -5
- package/dist/src/core/analyzer/validator/elementValidators/ref.d.ts +5 -5
- package/dist/src/core/analyzer/validator/elementValidators/table.d.ts +5 -5
- package/dist/src/core/analyzer/validator/elementValidators/tableGroup.d.ts +5 -5
- package/dist/src/core/analyzer/validator/elementValidators/tablePartial.d.ts +5 -5
- package/dist/src/core/analyzer/validator/types.d.ts +1 -1
- package/dist/src/core/analyzer/validator/utils.d.ts +9 -10
- package/dist/src/core/analyzer/validator/validator.d.ts +3 -3
- package/dist/src/core/interpreter/elementInterpreter/diagramView.d.ts +2 -2
- package/dist/src/core/interpreter/elementInterpreter/enum.d.ts +2 -2
- package/dist/src/core/interpreter/elementInterpreter/project.d.ts +2 -2
- package/dist/src/core/interpreter/elementInterpreter/ref.d.ts +2 -2
- package/dist/src/core/interpreter/elementInterpreter/sticky_note.d.ts +2 -2
- package/dist/src/core/interpreter/elementInterpreter/table.d.ts +2 -2
- package/dist/src/core/interpreter/elementInterpreter/tableGroup.d.ts +2 -2
- package/dist/src/core/interpreter/elementInterpreter/tablePartial.d.ts +2 -2
- package/dist/src/core/interpreter/interpreter.d.ts +4 -3
- package/dist/src/core/interpreter/records/index.d.ts +2 -2
- package/dist/src/core/interpreter/records/utils/constraints/fk.d.ts +1 -1
- package/dist/src/core/interpreter/records/utils/constraints/helper.d.ts +3 -2
- package/dist/src/core/interpreter/records/utils/constraints/pk.d.ts +1 -1
- package/dist/src/core/interpreter/records/utils/constraints/unique.d.ts +1 -1
- package/dist/src/core/interpreter/records/utils/data/sqlTypes.d.ts +1 -1
- package/dist/src/core/interpreter/records/utils/data/values.d.ts +2 -2
- package/dist/src/core/interpreter/types.d.ts +6 -228
- package/dist/src/core/interpreter/utils.d.ts +6 -5
- package/dist/src/core/lexer/lexer.d.ts +5 -3
- package/dist/src/core/lexer/utils.d.ts +1 -1
- package/dist/src/core/parser/contextStack.d.ts +1 -1
- package/dist/src/core/parser/factory.d.ts +5 -3
- package/dist/src/core/parser/parser.d.ts +5 -4
- package/dist/src/core/parser/utils.d.ts +6 -7
- package/dist/src/core/{errors.d.ts → types/errors.d.ts} +5 -2
- package/dist/src/core/types/filepath.d.ts +26 -0
- package/dist/src/core/types/index.d.ts +7 -0
- package/dist/src/core/types/internable.d.ts +20 -0
- package/dist/src/core/types/module.d.ts +9 -0
- package/dist/src/core/{parser → types}/nodes.d.ts +49 -38
- package/dist/src/core/types/report.d.ts +18 -0
- package/dist/src/core/types/schemaJson.d.ts +243 -0
- package/dist/src/core/{analyzer → types}/symbol/factory.d.ts +1 -1
- package/dist/src/core/types/symbol/index.d.ts +5 -0
- package/dist/src/core/{analyzer → types}/symbol/symbolIndex.d.ts +3 -4
- package/dist/src/core/types/symbol/symbols.d.ts +122 -0
- package/dist/src/core/{analyzer → types}/symbol/utils.d.ts +1 -1
- package/dist/src/core/{lexer → types}/tokens.d.ts +5 -3
- package/dist/src/core/utils/array.d.ts +1 -0
- package/dist/src/core/utils/chars.d.ts +4 -0
- package/dist/src/core/utils/enum.d.ts +1 -0
- package/dist/src/core/utils/numbers.d.ts +3 -0
- package/dist/src/core/utils/span.d.ts +6 -0
- package/dist/src/index.d.ts +9 -9
- package/dist/src/services/definition/provider.d.ts +1 -1
- package/dist/src/services/index.d.ts +3 -3
- package/dist/src/services/monarch.d.ts +1 -1
- package/dist/src/services/references/provider.d.ts +1 -1
- package/dist/src/services/suggestions/provider.d.ts +1 -1
- package/dist/src/services/suggestions/recordRowSnippet.d.ts +1 -1
- package/dist/src/services/suggestions/utils.d.ts +5 -5
- package/dist/src/services/types.d.ts +1 -1
- package/dist/src/services/utils.d.ts +1 -1
- package/package.json +2 -2
- package/dist/__tests__/examples/binder/binder.test.d.ts +0 -1
- package/dist/__tests__/examples/binder/records.test.d.ts +0 -1
- package/dist/__tests__/examples/compiler/applyTextEdits.test.d.ts +0 -1
- package/dist/__tests__/examples/compiler/identifierUtils.test.d.ts +0 -1
- package/dist/__tests__/examples/compiler/renameTable.test.d.ts +0 -1
- package/dist/__tests__/examples/compiler/splitQualifiedIdentifier.test.d.ts +0 -1
- package/dist/__tests__/examples/compiler/stringUtils.test.d.ts +0 -1
- package/dist/__tests__/examples/compiler/syncDiagramView.test.d.ts +0 -1
- package/dist/__tests__/examples/interpreter/interpreter.test.d.ts +0 -1
- package/dist/__tests__/examples/interpreter/record/data.test.d.ts +0 -1
- package/dist/__tests__/examples/interpreter/record/fk.test.d.ts +0 -1
- package/dist/__tests__/examples/interpreter/record/increment.test.d.ts +0 -1
- package/dist/__tests__/examples/interpreter/record/multi_records.test.d.ts +0 -1
- package/dist/__tests__/examples/interpreter/record/pk.test.d.ts +0 -1
- package/dist/__tests__/examples/interpreter/record/table_partial.test.d.ts +0 -1
- package/dist/__tests__/examples/interpreter/record/type_compatibility.test.d.ts +0 -1
- package/dist/__tests__/examples/interpreter/record/unique.test.d.ts +0 -1
- package/dist/__tests__/examples/lexer/lexer.test.d.ts +0 -1
- package/dist/__tests__/examples/lexer/scientific-notation.test.d.ts +0 -1
- package/dist/__tests__/examples/parser/parser.test.d.ts +0 -1
- package/dist/__tests__/examples/services/definition/general.test.d.ts +0 -1
- package/dist/__tests__/examples/services/definition/records.test.d.ts +0 -1
- package/dist/__tests__/examples/services/references/general.test.d.ts +0 -1
- package/dist/__tests__/examples/services/references/records.test.d.ts +0 -1
- package/dist/__tests__/examples/services/service_utils.test.d.ts +0 -1
- package/dist/__tests__/examples/services/suggestions/general.test.d.ts +0 -1
- package/dist/__tests__/examples/services/suggestions/suggestions_diagramview.test.d.ts +0 -1
- package/dist/__tests__/examples/services/suggestions/suggestions_records.test.d.ts +0 -1
- package/dist/__tests__/examples/validator/records.test.d.ts +0 -1
- package/dist/__tests__/examples/validator/validator.test.d.ts +0 -1
- package/dist/__tests__/examples/wildcard/wildcard.test.d.ts +0 -1
- package/dist/__tests__/fuzz/interpreter.test.d.ts +0 -1
- package/dist/__tests__/fuzz/parser.test.d.ts +0 -1
- package/dist/__tests__/fuzz/services.test.d.ts +0 -1
- package/dist/__tests__/properties/lexer.test.d.ts +0 -1
- package/dist/__tests__/properties/parser.test.d.ts +0 -1
- package/dist/__tests__/snapshots/binder/binder.test.d.ts +0 -1
- package/dist/__tests__/snapshots/interpreter/interpreter.test.d.ts +0 -1
- package/dist/__tests__/snapshots/lexer/lexer.test.d.ts +0 -1
- package/dist/__tests__/snapshots/nan/nan.test.d.ts +0 -1
- package/dist/__tests__/snapshots/parser/parser.test.d.ts +0 -1
- package/dist/__tests__/snapshots/validator/validator.test.d.ts +0 -1
- package/dist/__tests__/utils/arbitraries/grammars.d.ts +0 -100
- package/dist/__tests__/utils/arbitraries/index.d.ts +0 -3
- package/dist/__tests__/utils/arbitraries/tokens.d.ts +0 -20
- package/dist/__tests__/utils/arbitraries/utils.d.ts +0 -59
- package/dist/__tests__/utils/compiler.d.ts +0 -13
- package/dist/__tests__/utils/index.d.ts +0 -3
- package/dist/__tests__/utils/mocks.d.ts +0 -17
- package/dist/__tests__/utils/testHelpers.d.ts +0 -16
- package/dist/src/core/analyzer/symbol/symbols.d.ts +0 -132
- package/dist/src/core/option.d.ts +0 -18
- package/dist/src/core/report.d.ts +0 -12
- package/dist/src/core/utils.d.ts +0 -13
- /package/dist/src/core/{types.d.ts → types/position.d.ts} +0 -0
- /package/dist/src/core/{analyzer → types}/symbol/symbolTable.d.ts +0 -0
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { ProgramNode } from '../core/
|
|
2
|
-
import {
|
|
3
|
-
import { Database } from '../core/
|
|
4
|
-
import {
|
|
5
|
-
import { DBMLCompletionItemProvider, DBMLDefinitionProvider,
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
export { ScopeKind } from './types';
|
|
9
|
-
export type { TextEdit, TableNameInput, DiagramViewSyncOperation, DiagramViewBlock };
|
|
10
|
-
export { splitQualifiedIdentifier, unescapeString, escapeString, formatRecordValue, isValidIdentifier, addDoubleQuoteIfNeeded };
|
|
1
|
+
import { ProgramNode } from '../core/types/nodes';
|
|
2
|
+
import { default as Report } from '../core/types/report';
|
|
3
|
+
import { Database } from '../core/types/schemaJson';
|
|
4
|
+
import { SyntaxToken } from '../core/types/tokens';
|
|
5
|
+
import { DBMLCompletionItemProvider, DBMLDefinitionProvider, DBMLDiagnosticsProvider, DBMLReferencesProvider } from '../services/index';
|
|
6
|
+
import { DiagramViewBlock, DiagramViewSyncOperation, TableNameInput, TextEdit } from './queries/transform';
|
|
7
|
+
import { addDoubleQuoteIfNeeded, escapeString, formatRecordValue, isValidIdentifier, splitQualifiedIdentifier, unescapeString } from './queries/utils';
|
|
8
|
+
export { ScopeKind, } from './types';
|
|
9
|
+
export type { TextEdit, TableNameInput, DiagramViewSyncOperation, DiagramViewBlock, };
|
|
10
|
+
export { splitQualifiedIdentifier, unescapeString, escapeString, formatRecordValue, isValidIdentifier, addDoubleQuoteIfNeeded, };
|
|
11
11
|
export default class Compiler {
|
|
12
12
|
private source;
|
|
13
13
|
private cache;
|
|
@@ -36,13 +36,13 @@ export default class Compiler {
|
|
|
36
36
|
}>;
|
|
37
37
|
ast: () => Readonly<ProgramNode>;
|
|
38
38
|
errors: () => readonly Readonly<import('..').CompileError>[];
|
|
39
|
-
warnings: () => readonly Readonly<import('../core/
|
|
39
|
+
warnings: () => readonly Readonly<import('../core/types').CompileWarning>[];
|
|
40
40
|
tokens: () => Readonly<SyntaxToken>[];
|
|
41
41
|
rawDb: () => Readonly<Database> | undefined;
|
|
42
|
-
publicSymbolTable: () => Readonly<import('../core/
|
|
42
|
+
publicSymbolTable: () => Readonly<import('../core/types/symbol/symbolTable').default>;
|
|
43
43
|
};
|
|
44
44
|
readonly container: {
|
|
45
|
-
stack: (offset: number) => readonly Readonly<import('../core/
|
|
45
|
+
stack: (offset: number) => readonly Readonly<import('../core/types/nodes').SyntaxNode>[];
|
|
46
46
|
token: (offset: number) => {
|
|
47
47
|
token: SyntaxToken;
|
|
48
48
|
index: number;
|
|
@@ -50,20 +50,20 @@ export default class Compiler {
|
|
|
50
50
|
token: undefined;
|
|
51
51
|
index: undefined;
|
|
52
52
|
};
|
|
53
|
-
element: (offset: number) => Readonly<ProgramNode | import('../core/
|
|
54
|
-
scope: (offset: number) => Readonly<import('../core/
|
|
53
|
+
element: (offset: number) => Readonly<ProgramNode | import('../core/types/nodes').ElementDeclarationNode>;
|
|
54
|
+
scope: (offset: number) => Readonly<import('../core/types/symbol/symbolTable').default> | undefined;
|
|
55
55
|
scopeKind: (offset: number) => import('./types').ScopeKind;
|
|
56
56
|
};
|
|
57
57
|
readonly symbol: {
|
|
58
|
-
ofName: (nameStack: string[], owner: ProgramNode | import('../core/
|
|
59
|
-
symbol: import('../core/
|
|
60
|
-
kind: import('../core/
|
|
58
|
+
ofName: (nameStack: string[], owner: ProgramNode | import('../core/types/nodes').ElementDeclarationNode) => {
|
|
59
|
+
symbol: import('../core/types/symbol/symbols').NodeSymbol;
|
|
60
|
+
kind: import('../core/types').SymbolKind;
|
|
61
61
|
name: string;
|
|
62
62
|
}[];
|
|
63
|
-
members: (ownerSymbol: import('../core/
|
|
64
|
-
symbol: import('../core/
|
|
63
|
+
members: (ownerSymbol: import('../core/types/symbol/symbols').NodeSymbol) => {
|
|
64
|
+
symbol: import('../core/types/symbol/symbols').NodeSymbol;
|
|
65
65
|
name: string;
|
|
66
|
-
kind: import('../core/
|
|
66
|
+
kind: import('../core/types').SymbolKind;
|
|
67
67
|
}[];
|
|
68
68
|
};
|
|
69
69
|
initMonacoServices(): {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
+
import { ElementDeclarationNode, ProgramNode } from '../../../core/types/nodes';
|
|
1
2
|
import { default as Compiler } from '../../index';
|
|
2
|
-
import { ElementDeclarationNode, ProgramNode } from '../../../core/parser/nodes';
|
|
3
3
|
export declare function containerElement(this: Compiler, offset: number): Readonly<ElementDeclarationNode | ProgramNode>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { containerStack } from './stack';
|
|
2
|
-
export { containerToken } from './token';
|
|
3
|
-
export { containerElement } from './element';
|
|
4
|
-
export { containerScope } from './scope';
|
|
5
|
-
export { containerScopeKind } from './scopeKind';
|
|
1
|
+
export { containerStack, } from './stack';
|
|
2
|
+
export { containerToken, } from './token';
|
|
3
|
+
export { containerElement, } from './element';
|
|
4
|
+
export { containerScope, } from './scope';
|
|
5
|
+
export { containerScopeKind, } from './scopeKind';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
+
import { default as SymbolTable } from '../../../core/types/symbol/symbolTable';
|
|
1
2
|
import { default as Compiler } from '../../index';
|
|
2
|
-
import { default as SymbolTable } from '../../../core/analyzer/symbol/symbolTable';
|
|
3
3
|
export declare function containerScope(this: Compiler, offset: number): Readonly<SymbolTable> | undefined;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
+
import { SyntaxNode } from '../../../core/types/nodes';
|
|
1
2
|
import { default as Compiler } from '../../index';
|
|
2
|
-
import { SyntaxNode } from '../../../core/parser/nodes';
|
|
3
3
|
export declare function containerStack(this: Compiler, offset: number): readonly Readonly<SyntaxNode>[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { SyntaxToken } from '../../../core/types/tokens';
|
|
1
2
|
import { default as Compiler } from '../../index';
|
|
2
|
-
import { SyntaxToken } from '../../../core/lexer/tokens';
|
|
3
3
|
export declare function containerToken(this: Compiler, offset: number): {
|
|
4
4
|
token: SyntaxToken;
|
|
5
5
|
index: number;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ProgramNode } from '
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { default as
|
|
1
|
+
import { CompileError, CompileWarning } from '../../../core/types/errors';
|
|
2
|
+
import { ProgramNode } from '../../../core/types/nodes';
|
|
3
|
+
import { Database } from '../../../core/types/schemaJson';
|
|
4
|
+
import { default as SymbolTable } from '../../../core/types/symbol/symbolTable';
|
|
5
|
+
import { SyntaxToken } from '../../../core/types/tokens';
|
|
6
|
+
import { default as Compiler } from '../../index';
|
|
7
7
|
export declare function ast(this: Compiler): Readonly<ProgramNode>;
|
|
8
8
|
export declare function errors(this: Compiler): readonly Readonly<CompileError>[];
|
|
9
9
|
export declare function warnings(this: Compiler): readonly Readonly<CompileWarning>[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { NodeSymbol } from '
|
|
4
|
-
import {
|
|
1
|
+
import { ElementDeclarationNode, ProgramNode } from '../../../core/types/nodes';
|
|
2
|
+
import { SymbolKind } from '../../../core/types/symbol';
|
|
3
|
+
import { NodeSymbol } from '../../../core/types/symbol/symbols';
|
|
4
|
+
import { default as Compiler } from '../../index';
|
|
5
5
|
export declare function symbolMembers(this: Compiler, ownerSymbol: NodeSymbol): {
|
|
6
6
|
symbol: NodeSymbol;
|
|
7
7
|
name: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { SyntaxToken } from '../../../core/types/tokens';
|
|
2
|
+
import { default as Compiler } from '../../index';
|
|
3
3
|
export declare function flatStream(this: Compiler): readonly SyntaxToken[];
|
|
4
4
|
export declare function invalidStream(this: Compiler): readonly SyntaxToken[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { renameTable } from './renameTable';
|
|
2
|
-
export { applyTextEdits, type TextEdit } from './applyTextEdits';
|
|
3
|
-
export { type TableNameInput } from './utils';
|
|
4
|
-
export { syncDiagramView, findDiagramViewBlocks, type DiagramViewSyncOperation, type DiagramViewBlock } from './syncDiagramView';
|
|
1
|
+
export { renameTable, } from './renameTable';
|
|
2
|
+
export { applyTextEdits, type TextEdit, } from './applyTextEdits';
|
|
3
|
+
export { type TableNameInput, } from './utils';
|
|
4
|
+
export { syncDiagramView, findDiagramViewBlocks, type DiagramViewSyncOperation, type DiagramViewBlock, } from './syncDiagramView';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { default as SymbolTable } from '../../../core/
|
|
2
|
-
import { TableSymbol } from '../../../core/
|
|
1
|
+
import { default as SymbolTable } from '../../../core/types/symbol/symbolTable';
|
|
2
|
+
import { TableSymbol } from '../../../core/types/symbol/symbols';
|
|
3
3
|
export type TableNameInput = string | {
|
|
4
4
|
schema?: string;
|
|
5
5
|
table: string;
|
package/dist/src/constants.d.ts
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import { Filepath } from './core/types/filepath';
|
|
1
2
|
export declare const KEYWORDS_OF_DEFAULT_SETTING: readonly string[];
|
|
3
|
+
export declare const DBML_EXT = ".dbml";
|
|
2
4
|
export declare const NUMERIC_LITERAL_PREFIX: readonly string[];
|
|
3
5
|
export declare const DEFAULT_SCHEMA_NAME = "public";
|
|
6
|
+
export declare const DEFAULT_ENTRY: Filepath;
|
|
7
|
+
export declare const ROOT: Filepath;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ProgramNode } from '../
|
|
2
|
-
import { default as Report } from '../report';
|
|
3
|
-
import { NodeSymbolIdGenerator } from '
|
|
1
|
+
import { ProgramNode } from '../types/nodes';
|
|
2
|
+
import { default as Report } from '../types/report';
|
|
3
|
+
import { NodeSymbolIdGenerator } from '../types/symbol/symbols';
|
|
4
4
|
export default class Analyzer {
|
|
5
5
|
private ast;
|
|
6
6
|
private symbolFactory;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ProgramNode } from '../../
|
|
2
|
-
import { default as Report } from '../../report';
|
|
3
|
-
import { default as SymbolFactory } from '
|
|
1
|
+
import { ProgramNode } from '../../types/nodes';
|
|
2
|
+
import { default as Report } from '../../types/report';
|
|
3
|
+
import { default as SymbolFactory } from '../../types/symbol/factory';
|
|
4
4
|
export default class Binder {
|
|
5
5
|
private ast;
|
|
6
6
|
private symbolFactory;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { CompileError } from '../../../types/errors';
|
|
2
|
+
import { default as SymbolFactory } from '../../../types/symbol/factory';
|
|
1
3
|
import { ElementDeclarationNode, ProgramNode, SyntaxToken } from '../../../..';
|
|
2
|
-
import { CompileError } from '../../../errors';
|
|
3
|
-
import { default as SymbolFactory } from '../../symbol/factory';
|
|
4
4
|
import { ElementBinder } from '../types';
|
|
5
5
|
export default class ChecksBinder implements ElementBinder {
|
|
6
6
|
private symbolFactory;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { CompileError } from '../../../errors';
|
|
1
|
+
import { CompileError } from '../../../types/errors';
|
|
2
|
+
import { default as SymbolFactory } from '../../../types/symbol/factory';
|
|
3
|
+
import { ElementDeclarationNode, ProgramNode } from '../../../types/nodes';
|
|
4
|
+
import { SyntaxToken } from '../../../types/tokens';
|
|
2
5
|
import { ElementBinder } from '../types';
|
|
3
|
-
import { ElementDeclarationNode, ProgramNode } from '../../../parser/nodes';
|
|
4
|
-
import { SyntaxToken } from '../../../lexer/tokens';
|
|
5
|
-
import { default as SymbolFactory } from '../../symbol/factory';
|
|
6
6
|
export default class CustomBinder implements ElementBinder {
|
|
7
7
|
private symbolFactory;
|
|
8
8
|
private declarationNode;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CompileError } from '../../../types/errors';
|
|
2
|
+
import { default as SymbolFactory } from '../../../types/symbol/factory';
|
|
3
|
+
import { ElementDeclarationNode, ProgramNode } from '../../../types/nodes';
|
|
4
|
+
import { SyntaxToken } from '../../../types/tokens';
|
|
2
5
|
import { ElementBinder } from '../types';
|
|
3
|
-
import { SyntaxToken } from '../../../lexer/tokens';
|
|
4
|
-
import { CompileError } from '../../../errors';
|
|
5
|
-
import { default as SymbolFactory } from '../../symbol/factory';
|
|
6
6
|
export default class DiagramViewBinder implements ElementBinder {
|
|
7
7
|
private symbolFactory;
|
|
8
8
|
private declarationNode;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { CompileError } from '../../../errors';
|
|
1
|
+
import { CompileError } from '../../../types/errors';
|
|
2
|
+
import { default as SymbolFactory } from '../../../types/symbol/factory';
|
|
3
|
+
import { ElementDeclarationNode, ProgramNode } from '../../../types/nodes';
|
|
4
|
+
import { SyntaxToken } from '../../../types/tokens';
|
|
2
5
|
import { ElementBinder } from '../types';
|
|
3
|
-
import { ElementDeclarationNode, ProgramNode } from '../../../parser/nodes';
|
|
4
|
-
import { SyntaxToken } from '../../../lexer/tokens';
|
|
5
|
-
import { default as SymbolFactory } from '../../symbol/factory';
|
|
6
6
|
export default class EnumBinder implements ElementBinder {
|
|
7
7
|
private symbolFactory;
|
|
8
8
|
private declarationNode;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CompileError } from '../../../types/errors';
|
|
2
|
+
import { default as SymbolFactory } from '../../../types/symbol/factory';
|
|
3
|
+
import { ElementDeclarationNode, ProgramNode } from '../../../types/nodes';
|
|
4
|
+
import { SyntaxToken } from '../../../types/tokens';
|
|
2
5
|
import { ElementBinder } from '../types';
|
|
3
|
-
import { SyntaxToken } from '../../../lexer/tokens';
|
|
4
|
-
import { CompileError } from '../../../errors';
|
|
5
|
-
import { default as SymbolFactory } from '../../symbol/factory';
|
|
6
6
|
export default class IndexesBinder implements ElementBinder {
|
|
7
7
|
private symbolFactory;
|
|
8
8
|
private declarationNode;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { CompileError } from '../../../errors';
|
|
1
|
+
import { CompileError } from '../../../types/errors';
|
|
2
|
+
import { default as SymbolFactory } from '../../../types/symbol/factory';
|
|
3
|
+
import { ElementDeclarationNode, ProgramNode } from '../../../types/nodes';
|
|
4
|
+
import { SyntaxToken } from '../../../types/tokens';
|
|
2
5
|
import { ElementBinder } from '../types';
|
|
3
|
-
import { ElementDeclarationNode, ProgramNode } from '../../../parser/nodes';
|
|
4
|
-
import { SyntaxToken } from '../../../lexer/tokens';
|
|
5
|
-
import { default as SymbolFactory } from '../../symbol/factory';
|
|
6
6
|
export default class NoteBinder implements ElementBinder {
|
|
7
7
|
private symbolFactory;
|
|
8
8
|
private declarationNode;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CompileError } from '../../../types/errors';
|
|
2
|
+
import { default as SymbolFactory } from '../../../types/symbol/factory';
|
|
3
|
+
import { ElementDeclarationNode, ProgramNode } from '../../../types/nodes';
|
|
4
|
+
import { SyntaxToken } from '../../../types/tokens';
|
|
2
5
|
import { ElementBinder } from '../types';
|
|
3
|
-
import { ElementDeclarationNode, ProgramNode } from '../../../parser/nodes';
|
|
4
|
-
import { CompileError } from '../../../errors';
|
|
5
|
-
import { default as SymbolFactory } from '../../symbol/factory';
|
|
6
6
|
export default class ProjectBinder implements ElementBinder {
|
|
7
7
|
private symbolFactory;
|
|
8
8
|
private declarationNode;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CompileError } from '../../../types/errors';
|
|
2
|
+
import { default as SymbolFactory } from '../../../types/symbol/factory';
|
|
3
|
+
import { ElementDeclarationNode, ProgramNode } from '../../../types/nodes';
|
|
4
|
+
import { SyntaxToken } from '../../../types/tokens';
|
|
2
5
|
import { ElementBinder } from '../types';
|
|
3
|
-
import { ElementDeclarationNode, ProgramNode } from '../../../parser/nodes';
|
|
4
|
-
import { CompileError } from '../../../errors';
|
|
5
|
-
import { default as SymbolFactory } from '../../symbol/factory';
|
|
6
6
|
export default class RecordsBinder implements ElementBinder {
|
|
7
7
|
private symbolFactory;
|
|
8
8
|
private declarationNode;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CompileError } from '../../../types/errors';
|
|
2
|
+
import { default as SymbolFactory } from '../../../types/symbol/factory';
|
|
3
|
+
import { ElementDeclarationNode, ProgramNode } from '../../../types/nodes';
|
|
4
|
+
import { SyntaxToken } from '../../../types/tokens';
|
|
2
5
|
import { ElementBinder } from '../types';
|
|
3
|
-
import { SyntaxToken } from '../../../lexer/tokens';
|
|
4
|
-
import { CompileError } from '../../../errors';
|
|
5
|
-
import { default as SymbolFactory } from '../../symbol/factory';
|
|
6
6
|
export default class RefBinder implements ElementBinder {
|
|
7
7
|
private symbolFactory;
|
|
8
8
|
private declarationNode;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CompileError } from '../../../types/errors';
|
|
2
|
+
import { default as SymbolFactory } from '../../../types/symbol/factory';
|
|
3
|
+
import { ElementDeclarationNode, ProgramNode } from '../../../types/nodes';
|
|
4
|
+
import { SyntaxToken } from '../../../types/tokens';
|
|
2
5
|
import { ElementBinder } from '../types';
|
|
3
|
-
import { SyntaxToken } from '../../../lexer/tokens';
|
|
4
|
-
import { CompileError } from '../../../errors';
|
|
5
|
-
import { default as SymbolFactory } from '../../symbol/factory';
|
|
6
6
|
export default class TableBinder implements ElementBinder {
|
|
7
7
|
private symbolFactory;
|
|
8
8
|
private declarationNode;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CompileError } from '../../../types/errors';
|
|
2
|
+
import { default as SymbolFactory } from '../../../types/symbol/factory';
|
|
3
|
+
import { ElementDeclarationNode, ProgramNode } from '../../../types/nodes';
|
|
4
|
+
import { SyntaxToken } from '../../../types/tokens';
|
|
2
5
|
import { ElementBinder } from '../types';
|
|
3
|
-
import { SyntaxToken } from '../../../lexer/tokens';
|
|
4
|
-
import { CompileError } from '../../../errors';
|
|
5
|
-
import { default as SymbolFactory } from '../../symbol/factory';
|
|
6
6
|
export default class TableGroupBinder implements ElementBinder {
|
|
7
7
|
private symbolFactory;
|
|
8
8
|
private declarationNode;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { CompileError } from '../../../types/errors';
|
|
2
|
+
import { default as SymbolFactory } from '../../../types/symbol/factory';
|
|
3
|
+
import { ElementDeclarationNode, ProgramNode } from '../../../types/nodes';
|
|
4
|
+
import { SyntaxToken } from '../../../types/tokens';
|
|
3
5
|
import { ElementBinder } from '../types';
|
|
4
|
-
import { CompileError } from '../../../errors';
|
|
5
|
-
import { default as SymbolFactory } from '../../symbol/factory';
|
|
6
6
|
export default class TablePartialBinder implements ElementBinder {
|
|
7
7
|
private symbolFactory;
|
|
8
8
|
private declarationNode;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ElementDeclarationNode, PrimaryExpressionNode, ProgramNode, SyntaxNode, VariableNode } from '../../
|
|
1
|
+
import { CompileError } from '../../types/errors';
|
|
2
|
+
import { ElementDeclarationNode, PrimaryExpressionNode, ProgramNode, SyntaxNode, VariableNode } from '../../types/nodes';
|
|
3
|
+
import { SymbolKind } from '../../types/symbol';
|
|
4
|
+
import { SyntaxToken } from '../../types/tokens';
|
|
3
5
|
import { default as ChecksBinder } from './elementBinder/checks';
|
|
4
6
|
import { default as CustomBinder } from './elementBinder/custom';
|
|
5
7
|
import { default as DiagramViewBinder } from './elementBinder/diagramView';
|
|
@@ -7,13 +9,11 @@ import { default as EnumBinder } from './elementBinder/enum';
|
|
|
7
9
|
import { default as IndexesBinder } from './elementBinder/indexes';
|
|
8
10
|
import { default as NoteBinder } from './elementBinder/note';
|
|
9
11
|
import { default as ProjectBinder } from './elementBinder/project';
|
|
12
|
+
import { default as RecordsBinder } from './elementBinder/records';
|
|
10
13
|
import { default as RefBinder } from './elementBinder/ref';
|
|
11
14
|
import { default as TableBinder } from './elementBinder/table';
|
|
12
15
|
import { default as TableGroupBinder } from './elementBinder/tableGroup';
|
|
13
16
|
import { default as TablePartialBinder } from './elementBinder/tablePartial';
|
|
14
|
-
import { SymbolKind } from '../symbol/symbolIndex';
|
|
15
|
-
import { CompileError } from '../../errors';
|
|
16
|
-
import { default as RecordsBinder } from './elementBinder/records';
|
|
17
17
|
export declare function pickBinder(element: ElementDeclarationNode & {
|
|
18
18
|
type: SyntaxToken;
|
|
19
19
|
}): typeof ChecksBinder | typeof CustomBinder | typeof EnumBinder | typeof TableBinder | typeof TableGroupBinder | typeof ProjectBinder | typeof RefBinder | typeof NoteBinder | typeof IndexesBinder | typeof TablePartialBinder | typeof RecordsBinder | typeof DiagramViewBinder;
|
|
@@ -1,31 +1,28 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
export declare function
|
|
8
|
-
export declare function destructureMemberAccessExpression(node?: SyntaxNode): Option<SyntaxNode[]>;
|
|
9
|
-
export declare function destructureComplexVariable(node?: SyntaxNode): Option<string[]>;
|
|
10
|
-
export declare function destructureComplexVariableTuple(node?: SyntaxNode): Option<{
|
|
1
|
+
import { ElementDeclarationNode, FunctionExpressionNode, InfixExpressionNode, PrimaryExpressionNode, SyntaxNode, VariableNode } from '../types/nodes';
|
|
2
|
+
import { NodeSymbolIndex } from '../types/symbol';
|
|
3
|
+
import { NodeSymbol } from '../types/symbol/symbols';
|
|
4
|
+
import { SyntaxToken } from '../types/tokens';
|
|
5
|
+
export declare function destructureMemberAccessExpression(node?: SyntaxNode): SyntaxNode[] | undefined;
|
|
6
|
+
export declare function destructureComplexVariable(node?: SyntaxNode): string[] | undefined;
|
|
7
|
+
export declare function destructureComplexVariableTuple(node?: SyntaxNode): {
|
|
11
8
|
variables: (PrimaryExpressionNode & {
|
|
12
9
|
expression: VariableNode;
|
|
13
10
|
})[];
|
|
14
11
|
tupleElements: (PrimaryExpressionNode & {
|
|
15
12
|
expression: VariableNode;
|
|
16
13
|
})[];
|
|
17
|
-
}
|
|
18
|
-
export declare function extractVariableFromExpression(node?: SyntaxNode):
|
|
19
|
-
export declare function destructureIndexNode(node?: SyntaxNode):
|
|
14
|
+
} | undefined;
|
|
15
|
+
export declare function extractVariableFromExpression(node?: SyntaxNode): string | undefined;
|
|
16
|
+
export declare function destructureIndexNode(node?: SyntaxNode): {
|
|
20
17
|
functional: FunctionExpressionNode[];
|
|
21
18
|
nonFunctional: (PrimaryExpressionNode & {
|
|
22
19
|
expression: VariableNode;
|
|
23
20
|
})[];
|
|
24
|
-
}
|
|
21
|
+
} | undefined;
|
|
25
22
|
export declare function extractVarNameFromPrimaryVariable(node?: PrimaryExpressionNode & {
|
|
26
23
|
expression: VariableNode;
|
|
27
|
-
}):
|
|
28
|
-
export declare function extractQuotedStringToken(value?: SyntaxNode):
|
|
24
|
+
}): string | undefined;
|
|
25
|
+
export declare function extractQuotedStringToken(value?: SyntaxNode): string | undefined;
|
|
29
26
|
export declare function extractNumericLiteral(node?: SyntaxNode): number | null;
|
|
30
27
|
export declare function extractReferee(node?: SyntaxNode): NodeSymbol | undefined;
|
|
31
28
|
export declare function isBinaryRelationship(value?: SyntaxNode): value is InfixExpressionNode;
|
|
@@ -40,12 +37,12 @@ export declare function extractIndexName(value: (PrimaryExpressionNode & {
|
|
|
40
37
|
}) | (FunctionExpressionNode & {
|
|
41
38
|
value: SyntaxToken;
|
|
42
39
|
})): string;
|
|
43
|
-
export declare function destructureCallExpression(node?: SyntaxNode):
|
|
40
|
+
export declare function destructureCallExpression(node?: SyntaxNode): {
|
|
44
41
|
variables: (PrimaryExpressionNode & {
|
|
45
42
|
expression: VariableNode;
|
|
46
43
|
})[];
|
|
47
44
|
args: (PrimaryExpressionNode & {
|
|
48
45
|
expression: VariableNode;
|
|
49
46
|
})[];
|
|
50
|
-
}
|
|
47
|
+
} | undefined;
|
|
51
48
|
export declare function findSymbol(id: NodeSymbolIndex, startElement: ElementDeclarationNode): NodeSymbol | undefined;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { default as SymbolFactory } from '../../symbol/factory';
|
|
2
|
-
import { CompileError, CompileWarning } from '../../../errors';
|
|
3
|
-
import { ElementDeclarationNode } from '../../../parser/nodes';
|
|
4
|
-
import { SyntaxToken } from '../../../lexer/tokens';
|
|
5
1
|
import { ElementValidator } from '../types';
|
|
6
|
-
import {
|
|
2
|
+
import { CompileError, CompileWarning } from '../../../types/errors';
|
|
3
|
+
import { ElementDeclarationNode } from '../../../types/nodes';
|
|
4
|
+
import { default as SymbolFactory } from '../../../types/symbol/factory';
|
|
5
|
+
import { default as SymbolTable } from '../../../types/symbol/symbolTable';
|
|
6
|
+
import { SyntaxToken } from '../../../types/tokens';
|
|
7
7
|
export default class ChecksValidator implements ElementValidator {
|
|
8
8
|
private declarationNode;
|
|
9
9
|
private publicSymbolTable;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { CompileError, CompileWarning } from '../../../errors';
|
|
2
|
-
import { BlockExpressionNode, ElementDeclarationNode, FunctionApplicationNode } from '../../../parser/nodes';
|
|
3
|
-
import { default as SymbolFactory } from '../../symbol/factory';
|
|
4
|
-
import { SyntaxToken } from '../../../lexer/tokens';
|
|
5
1
|
import { ElementValidator } from '../types';
|
|
6
|
-
import {
|
|
2
|
+
import { CompileError, CompileWarning } from '../../../types/errors';
|
|
3
|
+
import { BlockExpressionNode, ElementDeclarationNode, FunctionApplicationNode } from '../../../types/nodes';
|
|
4
|
+
import { default as SymbolFactory } from '../../../types/symbol/factory';
|
|
5
|
+
import { default as SymbolTable } from '../../../types/symbol/symbolTable';
|
|
6
|
+
import { SyntaxToken } from '../../../types/tokens';
|
|
7
7
|
export default class CustomValidator implements ElementValidator {
|
|
8
8
|
private declarationNode;
|
|
9
9
|
private publicSymbolTable;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { CompileError, CompileWarning } from '../../../errors';
|
|
2
1
|
import { ElementValidator } from '../types';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { default as
|
|
2
|
+
import { CompileError, CompileWarning } from '../../../types/errors';
|
|
3
|
+
import { BlockExpressionNode, ElementDeclarationNode, FunctionApplicationNode } from '../../../types/nodes';
|
|
4
|
+
import { default as SymbolFactory } from '../../../types/symbol/factory';
|
|
5
|
+
import { default as SymbolTable } from '../../../types/symbol/symbolTable';
|
|
6
|
+
import { SyntaxToken } from '../../../types/tokens';
|
|
7
7
|
export default class DiagramViewValidator implements ElementValidator {
|
|
8
8
|
private declarationNode;
|
|
9
9
|
private publicSymbolTable;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { default as SymbolFactory } from '../../symbol/factory';
|
|
2
|
-
import { CompileError, CompileWarning } from '../../../errors';
|
|
3
|
-
import { BlockExpressionNode, ElementDeclarationNode, FunctionApplicationNode, ListExpressionNode } from '../../../parser/nodes';
|
|
4
|
-
import { SyntaxToken } from '../../../lexer/tokens';
|
|
5
1
|
import { ElementValidator } from '../types';
|
|
6
|
-
import {
|
|
2
|
+
import { CompileError, CompileWarning } from '../../../types/errors';
|
|
3
|
+
import { BlockExpressionNode, ElementDeclarationNode, FunctionApplicationNode, ListExpressionNode } from '../../../types/nodes';
|
|
4
|
+
import { default as SymbolFactory } from '../../../types/symbol/factory';
|
|
5
|
+
import { default as SymbolTable } from '../../../types/symbol/symbolTable';
|
|
6
|
+
import { SyntaxToken } from '../../../types/tokens';
|
|
7
7
|
export default class EnumValidator implements ElementValidator {
|
|
8
8
|
private declarationNode;
|
|
9
9
|
private publicSymbolTable;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { default as SymbolFactory } from '../../symbol/factory';
|
|
2
|
-
import { CompileError, CompileWarning } from '../../../errors';
|
|
3
|
-
import { ElementDeclarationNode, SyntaxNode } from '../../../parser/nodes';
|
|
4
|
-
import { SyntaxToken } from '../../../lexer/tokens';
|
|
5
1
|
import { ElementValidator } from '../types';
|
|
6
|
-
import {
|
|
2
|
+
import { CompileError, CompileWarning } from '../../../types/errors';
|
|
3
|
+
import { ElementDeclarationNode, SyntaxNode } from '../../../types/nodes';
|
|
4
|
+
import { default as SymbolFactory } from '../../../types/symbol/factory';
|
|
5
|
+
import { default as SymbolTable } from '../../../types/symbol/symbolTable';
|
|
6
|
+
import { SyntaxToken } from '../../../types/tokens';
|
|
7
7
|
export default class IndexesValidator implements ElementValidator {
|
|
8
8
|
private declarationNode;
|
|
9
9
|
private publicSymbolTable;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { default as SymbolFactory } from '../../symbol/factory';
|
|
2
|
-
import { CompileError, CompileWarning } from '../../../errors';
|
|
3
|
-
import { BlockExpressionNode, ElementDeclarationNode, FunctionApplicationNode } from '../../../parser/nodes';
|
|
4
|
-
import { SyntaxToken } from '../../../lexer/tokens';
|
|
5
1
|
import { ElementValidator } from '../types';
|
|
6
|
-
import {
|
|
2
|
+
import { CompileError, CompileWarning } from '../../../types/errors';
|
|
3
|
+
import { BlockExpressionNode, ElementDeclarationNode, FunctionApplicationNode } from '../../../types/nodes';
|
|
4
|
+
import { default as SymbolFactory } from '../../../types/symbol/factory';
|
|
5
|
+
import { default as SymbolTable } from '../../../types/symbol/symbolTable';
|
|
6
|
+
import { SyntaxToken } from '../../../types/tokens';
|
|
7
7
|
export default class NoteValidator implements ElementValidator {
|
|
8
8
|
private declarationNode;
|
|
9
9
|
private publicSymbolTable;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { default as SymbolFactory } from '../../symbol/factory';
|
|
2
|
-
import { CompileError, CompileWarning } from '../../../errors';
|
|
3
|
-
import { BlockExpressionNode, ElementDeclarationNode, FunctionApplicationNode } from '../../../parser/nodes';
|
|
4
|
-
import { SyntaxToken } from '../../../lexer/tokens';
|
|
5
1
|
import { ElementValidator } from '../types';
|
|
6
|
-
import {
|
|
2
|
+
import { CompileError, CompileWarning } from '../../../types/errors';
|
|
3
|
+
import { BlockExpressionNode, ElementDeclarationNode, FunctionApplicationNode } from '../../../types/nodes';
|
|
4
|
+
import { default as SymbolFactory } from '../../../types/symbol/factory';
|
|
5
|
+
import { default as SymbolTable } from '../../../types/symbol/symbolTable';
|
|
6
|
+
import { SyntaxToken } from '../../../types/tokens';
|
|
7
7
|
export default class ProjectValidator implements ElementValidator {
|
|
8
8
|
private declarationNode;
|
|
9
9
|
private publicSymbolTable;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { default as SymbolFactory } from '../../symbol/factory';
|
|
2
|
-
import { CompileError, CompileWarning } from '../../../errors';
|
|
3
|
-
import { BlockExpressionNode, ElementDeclarationNode, FunctionApplicationNode } from '../../../parser/nodes';
|
|
4
|
-
import { SyntaxToken } from '../../../lexer/tokens';
|
|
5
1
|
import { ElementValidator } from '../types';
|
|
6
|
-
import {
|
|
2
|
+
import { CompileError, CompileWarning } from '../../../types/errors';
|
|
3
|
+
import { BlockExpressionNode, ElementDeclarationNode, FunctionApplicationNode } from '../../../types/nodes';
|
|
4
|
+
import { default as SymbolFactory } from '../../../types/symbol/factory';
|
|
5
|
+
import { default as SymbolTable } from '../../../types/symbol/symbolTable';
|
|
6
|
+
import { SyntaxToken } from '../../../types/tokens';
|
|
7
7
|
export default class RecordsValidator implements ElementValidator {
|
|
8
8
|
private declarationNode;
|
|
9
9
|
private publicSymbolTable;
|