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

Extractor in charge of browsing source directories. load file content and extract requested member.
상속: DefaultSnippetExtractor
파일 보기 프로젝트 열기: FransBouma/DocNet 1 사용 예제들

공개 메소드들

메소드 설명
Extract ( string fullFilename, string memberPattern ) : string

Extracts a snippet from a given rule pattern.

비공개 메소드들

메소드 설명
BuildSnippet ( Microsoft.CodeAnalysis.SyntaxNode nodes, CSharpExtractionMode extractionMode ) : string

Builds a snippet from extracted syntax nodes.

DetermineContentPosition ( Microsoft.CodeAnalysis.SyntaxNode node ) : int

Determines the content's block position depending on the node type.

WriteAndCleanupSnippet ( StringBuilder stringBuilder, string lines, CSharpExtractionMode extractionMode, int contentPosition ) : void

Writes and cleanup line snippets. Snippets are moved out of their context, for this reason we need to trim lines aroung and remove a part of the indentation.

메소드 상세

Extract() 공개 메소드

Extracts a snippet from a given rule pattern.
public Extract ( string fullFilename, string memberPattern ) : string
fullFilename string The full filename (with path) to load and to extract the snippet from.
memberPattern string The member pattern to extract.
리턴 string