C# 클래스 Rosetta.Tests.Utils.NodeLocator

Locates nodes in an AST.
파일 보기 프로젝트 열기: andry-tino/Rosetta 1 사용 예제들

공개 메소드들

메소드 설명
LocateAll ( Type nodeType ) : IEnumerable

Gets all occurrances of a node type in the AST.

LocateFirst ( Type nodeType ) : Microsoft.CodeAnalysis.SyntaxNode

Gets the first occurrance of a node type in the AST.

LocateLast ( Type nodeType ) : Microsoft.CodeAnalysis.SyntaxNode

Gets the last occurrance of a node type in the AST.

NodeLocator ( Microsoft.CodeAnalysis.SyntaxNode syntaxNode ) : System

Initializes a new instance of the NodeLocator class.

NodeLocator ( Microsoft.CodeAnalysis.SyntaxTree syntaxTree ) : System

Initializes a new instance of the NodeLocator class.

비공개 메소드들

메소드 설명
ValidateInputType ( Type type ) : void

메소드 상세

LocateAll() 공개 메소드

Gets all occurrances of a node type in the AST.
public LocateAll ( Type nodeType ) : IEnumerable
nodeType System.Type The node type to look for.
리턴 IEnumerable

LocateFirst() 공개 메소드

Gets the first occurrance of a node type in the AST.
public LocateFirst ( Type nodeType ) : Microsoft.CodeAnalysis.SyntaxNode
nodeType System.Type The node type to look for.
리턴 Microsoft.CodeAnalysis.SyntaxNode

LocateLast() 공개 메소드

Gets the last occurrance of a node type in the AST.
public LocateLast ( Type nodeType ) : Microsoft.CodeAnalysis.SyntaxNode
nodeType System.Type The node type to look for.
리턴 Microsoft.CodeAnalysis.SyntaxNode

NodeLocator() 공개 메소드

Initializes a new instance of the NodeLocator class.
public NodeLocator ( Microsoft.CodeAnalysis.SyntaxNode syntaxNode ) : System
syntaxNode Microsoft.CodeAnalysis.SyntaxNode
리턴 System

NodeLocator() 공개 메소드

Initializes a new instance of the NodeLocator class.
public NodeLocator ( Microsoft.CodeAnalysis.SyntaxTree syntaxTree ) : System
syntaxTree Microsoft.CodeAnalysis.SyntaxTree
리턴 System