forked from antonpup/Aurora
-
-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
first implementation for Non-rendered layers
- Loading branch information
Aytackydln
committed
Oct 31, 2024
1 parent
4f31502
commit b2ce80d
Showing
87 changed files
with
1,845 additions
and
1,109 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
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
32 changes: 32 additions & 0 deletions
32
Project-Aurora/AuroraSourceGenerator/AuroraSourceGenerator/ClassUtils.cs
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,32 @@ | ||
using System.Collections.Generic; | ||
using Microsoft.CodeAnalysis; | ||
|
||
namespace AuroraSourceGenerator; | ||
|
||
public static class ClassUtils | ||
{ | ||
public static IEnumerable<INamedTypeSymbol> GetBaseTypes(INamedTypeSymbol type) | ||
{ | ||
var currentType = type; | ||
while (currentType != null) | ||
{ | ||
yield return currentType; | ||
currentType = currentType.BaseType; | ||
} | ||
} | ||
|
||
public static IEnumerable<ITypeSymbol> GetBaseTypes(ITypeSymbol type) | ||
{ | ||
var currentType = type; | ||
while (currentType != null) | ||
{ | ||
yield return currentType; | ||
currentType = currentType.BaseType; | ||
} | ||
} | ||
|
||
public static IEnumerable<ITypeSymbol> GetAllInterfaces(ITypeSymbol type) | ||
{ | ||
return type.AllInterfaces; | ||
} | ||
} |
3 changes: 3 additions & 0 deletions
3
Project-Aurora/AuroraSourceGenerator/AuroraSourceGenerator/IsExternalInit.cs
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,3 @@ | ||
namespace System.Runtime.CompilerServices; | ||
|
||
public class IsExternalInit; |
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
Oops, something went wrong.