Output c pane

This commit is contained in:
nub31
2025-10-23 18:10:53 +02:00
parent 08ae39b5ed
commit db5d444cf2
2 changed files with 119 additions and 5 deletions

View File

@@ -54,12 +54,12 @@ public class WorkspaceManager(DiagnosticsPublisher diagnosticsPublisher, ILangua
{
var modules = Module.Collect(_syntaxTrees.Select(x => x.Value).ToList());
foreach (var (documentUri, syntaxTree) in _syntaxTrees)
foreach (var (fsPath, syntaxTree) in _syntaxTrees)
{
var typeChecker = new TypeChecker(syntaxTree, modules);
var result = typeChecker.Check();
diagnosticsPublisher.Publish(documentUri, typeChecker.Diagnostics);
_compilationUnits[documentUri] = result;
diagnosticsPublisher.Publish(fsPath, typeChecker.Diagnostics);
_compilationUnits[fsPath] = result;
var generator = new Generator(result);
var c = generator.Emit();
@@ -67,7 +67,7 @@ public class WorkspaceManager(DiagnosticsPublisher diagnosticsPublisher, ILangua
server.SendNotification("nub/output", new
{
content = c,
uri = documentUri
path = fsPath
});
}
}