C# Class Rosetta.AST.Helpers.TypeReference

Helper for accessing type references in AST.
Inheritance: Helper
Show file Open project: andry-tino/Rosetta

Public Methods

Method Description
TypeReference ( Microsoft.CodeAnalysis.CSharp.Syntax.TypeSyntax typeSyntaxNode ) : System

Initializes a new instance of the TypeReference class.

This is a minimal constructor, some properties might be unavailable.

TypeReference ( Microsoft.CodeAnalysis.CSharp.Syntax.TypeSyntax typeSyntaxNode, Microsoft.CodeAnalysis.SemanticModel semanticModel ) : System

Initializes a new instance of the TypeReference class.

When providing the semantic model, some properites will be devised from that.

Private Methods

Method Description
GetTypeSymbolFullName ( ITypeSymbol typeSymbol ) : string

Tries all possible ways to retrieve the full name using the semantic model.

GetTypeSymbolFullName ( Microsoft.CodeAnalysis.CSharp.Syntax.TypeSyntax node, Microsoft.CodeAnalysis.SemanticModel semanticModel ) : string

Tries all possible ways to retrieve the full name using the semantic model.

TryGetTypeSymbolFullName ( Microsoft.CodeAnalysis.CSharp.Syntax.TypeSyntax node, Microsoft.CodeAnalysis.SemanticModel semanticModel ) : string

Tries all possible ways to retrieve the full name using the semantic model.

Method Details

TypeReference() public method

Initializes a new instance of the TypeReference class.
This is a minimal constructor, some properties might be unavailable.
public TypeReference ( Microsoft.CodeAnalysis.CSharp.Syntax.TypeSyntax typeSyntaxNode ) : System
typeSyntaxNode Microsoft.CodeAnalysis.CSharp.Syntax.TypeSyntax
return System

TypeReference() public method

Initializes a new instance of the TypeReference class.
When providing the semantic model, some properites will be devised from that.
public TypeReference ( Microsoft.CodeAnalysis.CSharp.Syntax.TypeSyntax typeSyntaxNode, Microsoft.CodeAnalysis.SemanticModel semanticModel ) : System
typeSyntaxNode Microsoft.CodeAnalysis.CSharp.Syntax.TypeSyntax
semanticModel Microsoft.CodeAnalysis.SemanticModel
return System