Class SourceCodeSectionReader
A
Inheritance
System.Object
SourceCodeSectionReader
Assembly: lucene-cli.dll
Syntax
public class SourceCodeSectionReader : TextReader
Remarks
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. |
Constructors
Name | Description |
---|---|
SourceCodeSectionReader(TextReader) |
Fields
Name | Description |
---|---|
COMMENT_END | |
COMMENT_START | |
INCLUDE_END | |
INCLUDE_START | |
TO_UNCOMMENT |
Methods
Name | Description |
---|---|
Dispose(Boolean) | |
ReadLine() |