bug fix #951
This commit is contained in:
parent
c0275c4d7f
commit
b353f7da05
|
|
@ -3274,20 +3274,23 @@ namespace PascalABCCompiler
|
|||
if (InternalDebug.SemanticAnalysis)
|
||||
#endif
|
||||
{
|
||||
OnChangeCompilerState(this, CompilerState.CompileInterface, UnitName);
|
||||
PascalABCCompiler.TreeConverter.SemanticRules.SymbolTableCaseSensitive = CurrentUnit.CaseSensitive;
|
||||
CurrentUnit.SemanticTree = SyntaxTreeToSemanticTreeConverter.CompileInterface(
|
||||
CurrentUnit.SyntaxTree,
|
||||
CurrentUnit.InterfaceUsedUnits,
|
||||
ErrorsList, Warnings,
|
||||
CurrentUnit.syntax_error,
|
||||
BadNodesInSyntaxTree,
|
||||
CurrentUnit.InterfaceUsingNamespaceList,
|
||||
docs,
|
||||
CompilerOptions.Debug,
|
||||
CompilerOptions.ForDebugging
|
||||
);
|
||||
CheckErrors();
|
||||
if (CurrentUnit.State != UnitState.InterfaceCompiled)
|
||||
{
|
||||
OnChangeCompilerState(this, CompilerState.CompileInterface, UnitName);
|
||||
PascalABCCompiler.TreeConverter.SemanticRules.SymbolTableCaseSensitive = CurrentUnit.CaseSensitive;
|
||||
CurrentUnit.SemanticTree = SyntaxTreeToSemanticTreeConverter.CompileInterface(
|
||||
CurrentUnit.SyntaxTree,
|
||||
CurrentUnit.InterfaceUsedUnits,
|
||||
ErrorsList, Warnings,
|
||||
CurrentUnit.syntax_error,
|
||||
BadNodesInSyntaxTree,
|
||||
CurrentUnit.InterfaceUsingNamespaceList,
|
||||
docs,
|
||||
CompilerOptions.Debug,
|
||||
CompilerOptions.ForDebugging
|
||||
);
|
||||
CheckErrors();
|
||||
}
|
||||
}
|
||||
TreeRealization.common_unit_node cun = CurrentUnit.SemanticTree as TreeRealization.common_unit_node;
|
||||
/*if (cun != null)
|
||||
|
|
|
|||
Loading…
Reference in a new issue