C# Class Rosetta.AST.Helpers.BaseTypeReference

Helper for accessing base type references in AST.
Inheritance: Helper
显示文件 Open project: andry-tino/Rosetta Class Usage Examples

Public Methods

Method Description
BaseTypeReference ( BaseTypeSyntax baseTypeSyntaxNode ) : System

Initializes a new instance of the BaseTypeReference class.

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

BaseTypeReference ( BaseTypeSyntax baseTypeSyntaxNode, Microsoft kind ) : System

Initializes a new instance of the TypeReference class.

Type kind will be stored statically.

BaseTypeReference ( BaseTypeSyntax baseTypeSyntaxNode, Microsoft.CodeAnalysis.SemanticModel semanticModel ) : System

Initializes a new instance of the BaseTypeReference class.

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

BaseTypeReference ( BaseTypeSyntax baseTypeSyntaxNode, Microsoft.CodeAnalysis.SemanticModel semanticModel, Microsoft kind ) : System

Initializes a new instance of the TypeReference class.

Type kind will be stored statically.

Private Methods

Method Description
GetTypeSymbolFullName ( BaseTypeSyntax node, Microsoft.CodeAnalysis.SemanticModel semanticModel ) : string

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

TryGetTypeSymbolFullName ( BaseTypeSyntax node, Microsoft.CodeAnalysis.SemanticModel semanticModel ) : string

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

Method Details

BaseTypeReference() public method

Initializes a new instance of the BaseTypeReference class.
This is a minimal constructor, some properties might be unavailable.
public BaseTypeReference ( BaseTypeSyntax baseTypeSyntaxNode ) : System
baseTypeSyntaxNode BaseTypeSyntax
return System

BaseTypeReference() public method

Initializes a new instance of the TypeReference class.
Type kind will be stored statically.
public BaseTypeReference ( BaseTypeSyntax baseTypeSyntaxNode, Microsoft kind ) : System
baseTypeSyntaxNode BaseTypeSyntax
kind Microsoft
return System

BaseTypeReference() public method

Initializes a new instance of the BaseTypeReference class.
When providing the semantic model, some properites will be devised from that.
public BaseTypeReference ( BaseTypeSyntax baseTypeSyntaxNode, Microsoft.CodeAnalysis.SemanticModel semanticModel ) : System
baseTypeSyntaxNode BaseTypeSyntax
semanticModel Microsoft.CodeAnalysis.SemanticModel
return System

BaseTypeReference() public method

Initializes a new instance of the TypeReference class.
Type kind will be stored statically.
public BaseTypeReference ( BaseTypeSyntax baseTypeSyntaxNode, Microsoft.CodeAnalysis.SemanticModel semanticModel, Microsoft kind ) : System
baseTypeSyntaxNode BaseTypeSyntax
semanticModel Microsoft.CodeAnalysis.SemanticModel
kind Microsoft
return System