You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
WI #2046 Find various NullReferenceException (#2049)
* WI #2046 Find various NullReferenceException
* WI #2046 Change Review
* WI #2046 use cup preprocessor.
* WI #2046 Refactor Cup vs ANTLR preprocessor choice
Co-authored-by: fm-117 <milletfl@e-i.com>
fileCompiler.CompileOnce(lsrOptions.ExecutionStep(fileCompiler.CompilerOptions.ExecToStep.Value),fileCompiler.CompilerOptions.HaltOnMissingCopy,fileCompiler.CompilerOptions.UseAntlrProgramParsing);//Let's parse file for the first time after opening.
256
+
fileCompiler.CompileOnce(lsrOptions.ExecutionStep(fileCompiler.CompilerOptions.ExecToStep.Value),fileCompiler.CompilerOptions.HaltOnMissingCopy);//Let's parse file for the first time after opening.
257
257
}
258
258
259
259
returnfileCompiler;
@@ -317,7 +317,7 @@ public void UpdateSourceFile(Uri fileUri, TextChangedEvent textChangedEvent)
317
317
//further it's for semantic, which is handle by NodeRefresh method
LoadingIssueEvent(null,newLoadingIssueEvent(){Message="An error occured while trying to load Intrinsics or Dependencies files."});//Send notification to client
725
+
if(LoadingIssueEvent!=null)
726
+
LoadingIssueEvent(null,newLoadingIssueEvent(){Message="An error occured while trying to load Intrinsics or Dependencies files."});//Send notification to client
LoadingIssueEvent(null,newLoadingIssueEvent(){Message="An error occured while trying to load Intrinsics or Dependencies files."});//Send notification to client
735
+
if(LoadingIssueEvent!=null)
736
+
LoadingIssueEvent(null,newLoadingIssueEvent(){Message="An error occured while trying to load Intrinsics or Dependencies files."});//Send notification to client
DiagnosticUtils.AddError(dataDefinition,$"{dataDefinition.Name} is part of a declaration using Sync clause in Strict Type definition {dataDefinition.ParentTypeDefinition?.Name}.");
646
+
}
647
+
639
648
}
640
-
//Variable inside Typedef => check if parent typedef is marked Strict
//Check if variable of user defined Strict Type is declared or has a parent declared with Sync clause (flag is inherited so no need to iterate through parents)
DiagnosticUtils.AddError(dataDefinition,$"{dataDefinition.Name}is part of a declaration using Sync clause in Strict Type definition {dataDefinition.ParentTypeDefinition?.Name}.");
654
+
DiagnosticUtils.AddError(dataDefinition,$"{dataDefinition.Name}cannot be declared or have a parent declared with Sync clause because its Type definition {dataDefinition.DataType.Name} is Strict.");
644
655
}
645
-
646
-
}
647
-
//Check if variable of user defined Strict Type is declared or has a parent declared with Sync clause (flag is inherited so no need to iterate through parents)
DiagnosticUtils.AddError(dataDefinition,$"{dataDefinition.Name} cannot be declared or have a parent declared with Sync clause because its Type definition {dataDefinition.DataType.Name} is Strict.");
0 commit comments