Skip to content

Commit

Permalink
clup
Browse files Browse the repository at this point in the history
  • Loading branch information
PTKu committed May 7, 2024
1 parent 4353225 commit e11c645
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 147 deletions.
2 changes: 1 addition & 1 deletion GitVersion.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
mode: ContinuousDeployment
next-version: 0.19.2
next-version: 0.19.0
branches:
main:
regex: ^master$|^main$
Expand Down
10 changes: 5 additions & 5 deletions src/AXSharp.compiler/src/AXSharp.Compiler/AXSharpProject.cs
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ public void Generate()

var toCompile = refParseTrees.Concat(projectSources.Select(p => p.parseTree));

var compilation = Compilation.Create(toCompile, new List<ISemanticAnalyzer>(), Compilation.Settings.Default).Result;

var compilationResult = Compilation.Create(toCompile, new List<ISemanticAnalyzer>(), Compilation.Settings.Default).Result;
this.CleanOutput(this.OutputFolder);

foreach (var origin in projectSources)
Expand All @@ -103,7 +103,7 @@ public void Generate()

foreach (var sourceBuilderType in BuilderTypes)
{
var builder = Activator.CreateInstance(sourceBuilderType, this, compilation.Compilation);
var builder = Activator.CreateInstance(sourceBuilderType, this, compilationResult.Compilation);
var treeWalker = builder as ICombinedThreeVisitor;
var sourceBuilder = builder as ISourceBuilder;

Expand All @@ -116,7 +116,7 @@ public void Generate()
$"Could not create {sourceBuilderType.Name} as ISourceBuilder");


origin.parseTree.GetRoot().Visit(new IxNodeVisitor(compilation.Compilation), treeWalker);
origin.parseTree.GetRoot().Visit(new IxNodeVisitor(compilationResult.Compilation), treeWalker);



Expand All @@ -136,7 +136,7 @@ public void Generate()
}

TargetProject.ProvisionProjectStructure();
GenerateMetadata(compilation.Compilation);
GenerateMetadata(compilationResult.Compilation);
TargetProject.GenerateResources();
TargetProject.GenerateCompanionData();
Log.Logger.Information($"Compilation of project '{AxProject.SrcFolder}' done.");
Expand Down
Loading

0 comments on commit e11c645

Please sign in to comment.