-
Notifications
You must be signed in to change notification settings - Fork 219
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c7dcfd9
commit 785ee54
Showing
4 changed files
with
36 additions
and
15 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
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,22 @@ | ||
namespace ICSharpCode.CodeConverter.CSharp; | ||
|
||
internal class KnownNamedTypes | ||
{ | ||
public KnownNamedTypes(SemanticModel semanticModel) | ||
{ | ||
Boolean = semanticModel.Compilation.GetTypeByMetadataName("System.Boolean"); | ||
String = semanticModel.Compilation.GetTypeByMetadataName("System.String"); | ||
DefaultParameterValueAttribute = semanticModel.Compilation.GetTypeByMetadataName("System.Runtime.InteropServices.DefaultParameterValueAttribute"); | ||
OptionalAttribute = semanticModel.Compilation.GetTypeByMetadataName("System.Runtime.InteropServices.OptionalAttribute"); | ||
System_Linq_Expressions_Expression_T = semanticModel.Compilation.GetTypeByMetadataName("System.Linq.Expressions.Expression`1"); | ||
VbCompilerStringType = semanticModel.Compilation.GetTypeByMetadataName("Microsoft.VisualBasic.CompilerServices.StringType"); | ||
} | ||
|
||
public INamedTypeSymbol System_Linq_Expressions_Expression_T { get; set; } | ||
|
||
public INamedTypeSymbol Boolean { get; } | ||
public INamedTypeSymbol String { get; } | ||
public INamedTypeSymbol DefaultParameterValueAttribute { get; } | ||
public INamedTypeSymbol OptionalAttribute { get; } | ||
public INamedTypeSymbol VbCompilerStringType { get; } | ||
} |
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