C# 클래스 Projbook.Extension.CSharpExtractor.CSharpSyntaxMatchingNode

Represents a syntax matching node. Thie node is used to build a Trie representing possible matching. Each node contians children and matching syntax nodes.
파일 보기 프로젝트 열기: FransBouma/DocNet 1 사용 예제들

공개 메소드들

메소드 설명
AddSyntaxNode ( Microsoft.CodeAnalysis.SyntaxNode node ) : void

Adds a syntax node as matching node.

CopyTo ( CSharpSyntaxMatchingNode targetNode, string name ) : void

Copies to a given node.

EnsureNode ( string name ) : CSharpSyntaxMatchingNode

Lookup a node from children and return it. if the node doesn't exist, a new one will be created and added to the children.

Match ( string chunks ) : CSharpSyntaxMatchingNode

Finds a node from syntax chunk.

ToString ( ) : string

Overrides ToString to renger the internal Trie to a string.

비공개 메소드들

메소드 설명
Write ( StringBuilder stringBuilder, string name, int level ) : void

Writes a node to a string builder and recurse to the children.

메소드 상세

AddSyntaxNode() 공개 메소드

Adds a syntax node as matching node.
public AddSyntaxNode ( Microsoft.CodeAnalysis.SyntaxNode node ) : void
node Microsoft.CodeAnalysis.SyntaxNode
리턴 void

CopyTo() 공개 메소드

Copies to a given node.
public CopyTo ( CSharpSyntaxMatchingNode targetNode, string name ) : void
targetNode CSharpSyntaxMatchingNode The node wherer to copy.
name string The node name.
리턴 void

EnsureNode() 공개 메소드

Lookup a node from children and return it. if the node doesn't exist, a new one will be created and added to the children.
public EnsureNode ( string name ) : CSharpSyntaxMatchingNode
name string The node name.
리턴 CSharpSyntaxMatchingNode

Match() 공개 메소드

Finds a node from syntax chunk.
public Match ( string chunks ) : CSharpSyntaxMatchingNode
chunks string The chunks to match.
리턴 CSharpSyntaxMatchingNode

ToString() 공개 메소드

Overrides ToString to renger the internal Trie to a string.
public ToString ( ) : string
리턴 string