@@ -2,7 +2,7 @@ import { ShaderRange } from "../common";
2
2
import { ASTNode , TreeNode } from "./AST" ;
3
3
import { GSErrorName } from "../GSError" ;
4
4
import { ShaderData } from "./ShaderInfo" ;
5
- import { ESymbolType , SymbolInfo , SymbolTable } from "../parser/symbolTable" ;
5
+ import { ESymbolType , SymbolInfo , TargetSymbolTable } from "../parser/symbolTable" ;
6
6
import { NodeChild } from "./types" ;
7
7
import { SymbolTableStack } from "../common/BaseSymbolTable" ;
8
8
import { ShaderLab } from "../ShaderLab" ;
@@ -24,7 +24,7 @@ export type TranslationRule<T = any> = (sa: SematicAnalyzer, ...tokens: NodeChil
24
24
export default class SematicAnalyzer {
25
25
semanticStack : TreeNode [ ] = [ ] ;
26
26
acceptRule ?: TranslationRule = undefined ;
27
- symbolTableStack : SymbolTableStack < SymbolInfo , SymbolTable > = new SymbolTableStack ( ) ;
27
+ symbolTableStack : SymbolTableStack < SymbolInfo , TargetSymbolTable > = new SymbolTableStack ( ) ;
28
28
curFunctionInfo : {
29
29
header ?: ASTNode . FunctionDeclarator ;
30
30
returnStatement ?: ASTNode . JumpStatement ;
@@ -55,7 +55,7 @@ export default class SematicAnalyzer {
55
55
}
56
56
57
57
newScope ( ) {
58
- const scope = new SymbolTable ( ) ;
58
+ const scope = new TargetSymbolTable ( ) ;
59
59
this . symbolTableStack . newScope ( scope ) ;
60
60
}
61
61
0 commit comments