Namespace Lucene.Net.Cli.SourceCode
Classes
ConsolePager
Interactively pages or scrolls through the list of files provided in the constructor.
Commands:
Keys | Description |
---|---|
n or Space | Pages to the next full screen of text. |
q or x | Exits the application. |
Enter | Moves to the next line of text. Hold down the Enter key to scroll. |
SourceCodeExporter
Exports source code files from embedded resources and includes or excludes any sections that are marked by comment tokens. See SourceCodeSectionReader for for the supported tokens.
SourceCodeParserTest
SourceCodeSectionParser
Idenitifies sections of code based on tokens to transform the output code to either contain extra code sections or remove unwanted code sections.
There are 5 different types of tokens considered:
// <comment> | Beginning of commented block. This line and all lines until the end of a comment block are ignored. |
// <\comment> | End of a commented block. This line is ignored, but any lines following will be included. |
// <include> | Beginning of an include block. This line is ignored, but all lines following will have the //// comment marker removed from the beginning of the line. Effectively, it uncomments lines of code that were previously commented and ignored by the compiler. All normal C# comments (// and ///) are ignored and left in place. |
// <\include> | End of an include block. This line is ignored and following lines will be treated normally again. In other words, the //// comment will no longer be removed from following lines. |
//// | A double comment. This comment is removed in include blocks to uncomment code that was previously commented and ignored by the compiler. This allows adding using directives, alternate type names, etc. to be output in the demo even if they don't exist in the compiled application. |
SourceCodeSectionReader
A