-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add resolving SimpleTypeName in same namespace
- Loading branch information
Showing
9 changed files
with
84 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
using Flo; | ||
using MrKWatkins.Ast; | ||
using MrKWatkins.Ast.Listening; | ||
using MrKWatkins.Ast.Position; | ||
using Socordia.CodeAnalysis.AST; | ||
using Socordia.CodeAnalysis.Parsing; | ||
using Message = Socordia.CodeAnalysis.Parsing.Message; | ||
|
||
namespace SocordiaC.Stages; | ||
|
||
public sealed class PrintErrorsStage : IHandler<Driver, Driver> | ||
{ | ||
public static List<string> Errors = []; | ||
|
||
public async Task<Driver> HandleAsync(Driver context, Func<Driver, Task<Driver>> next) | ||
{ | ||
foreach(var tree in context.Trees) | ||
{ | ||
Errors.AddRange(MessageFormatter.FormatErrors(tree.Declarations, true)); | ||
} | ||
|
||
foreach (var error in Errors) | ||
{ | ||
Console.WriteLine(error); | ||
} | ||
|
||
return await next.Invoke(context); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,6 +19,11 @@ func external() -> System.Text.StringBuilder | |
|
||
} | ||
|
||
func internal_type() -> Hello | ||
{ | ||
|
||
} | ||
|
||
class MyClass | ||
{ | ||
|
||
|