메소드 | 설명 | |
---|---|---|
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.
|
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 |