CodeUnit Class |
Namespace: Nova.CodeDOM
public class CodeUnit : NamespaceDecl, INamedCodeObject, IFile, IComparable
The CodeUnit type exposes the following members.
Name | Description | |
---|---|---|
CodeUnit(String, Project, String) |
Create a new CodeUnit with the specified file name and parent Project.
| |
CodeUnit(String, String, Project, String) |
Create a new CodeUnit with the specified file name (or text source) and parent Project.
|
Name | Description | |
---|---|---|
_AsString |
This property is just to make debugging easier.
(Inherited from CodeObject.) | |
Annotations |
Annotations (comments, attributes, directives, messages) associated with the current code object.
(Inherited from CodeObject.) | |
Body |
The Block body.
(Inherited from BlockStatement.) | |
Category |
The descriptive category of the code object.
| |
Code |
The associated text source code if no file is being used.
| |
ColumnNumber |
The column number of a CodeUnit is normally 0, but may be set to a non-zero value to indicate
the base offset of a code fragment being parsed within a larger code fragment or file. If the column is set
to a non-zero value, NewLines will be automatically set to 0, and the first parsed token will have IsNewLine
set to false.
(Overrides CodeObjectColumnNumber.) | |
Comment |
The comment for the code object (if any).
(Inherited from CodeObject.) | |
DocComment |
The documentation comment for the code object (if any).
(Inherited from CodeObject.) | |
EOLComment |
The End-Of-Line comment for the code object (if any).
(Inherited from CodeObject.) | |
Expression |
The namespace Expression.
(Inherited from NamespaceDecl.) | |
FileEncoding |
The encoding of the file (normally UTF8).
| |
FileExists |
True if the associated file exists.
| |
FileHasUTF8BOM |
True if the file has a UTF8 byte-order-mark.
| |
FileName |
The associated file name of the CodeUnit.
| |
FileUsingTabs |
True if the associated file is formatted using tabs, otherwise false (using spaces).
| |
GlobalAlias |
The implied global extern alias to the global RootNamespace.
| |
HasAnnotations |
True if the code object has any annotations.
(Inherited from CodeObject.) | |
HasArgument |
True if the Statement has an argument.
(Overrides NamespaceDeclHasArgument.) | |
HasArgumentParens |
True if the Statement has parens around its argument.
(Inherited from NamespaceDecl.) | |
HasAttributes |
True if the code object has any attributes.
(Inherited from CodeObject.) | |
HasBraces |
True if the BlockStatement has braces.
(Inherited from BlockStatement.) | |
HasBracesAlways |
True if the BlockStatement always requires braces.
(Overrides BlockStatementHasBracesAlways.) | |
HasComments |
True if the code object has any comments of any kind.
(Inherited from CodeObject.) | |
HasCompilerDirectives |
True if the code object has any compiler directive annotations.
(Inherited from CodeObject.) | |
HasDocComments |
True if the code object has any documentation comments.
(Inherited from CodeObject.) | |
HasEOLComments |
True if the code object has any EOL comments.
(Inherited from CodeObject.) | |
HasEOLOrPostAnnotations |
True if the code object has any EOL or Postfix annotations.
(Inherited from CodeObject.) | |
HasErrors |
True if the code object has any error messages.
(Inherited from CodeObject.) | |
HasFirstOnLineAnnotations |
True if the code object has any annotations on separate lines.
(Inherited from CodeObject.) | |
HasHeader | (Overrides BlockStatementHasHeader.) | |
HasInfixComments |
True if the code object has any Infix comments.
(Inherited from CodeObject.) | |
HasMessages |
True if the code object has any generated messages.
(Inherited from CodeObject.) | |
HasNoIndentation |
Determines if the code object has no indentation.
(Inherited from CodeObject.) | |
HasNonEOLComments |
True if the code object has any regular (non-doc) preceding (non-EOL, non-Infix, non-Postfix) comments.
(Inherited from CodeObject.) | |
HasPostAnnotations |
True if the code object has any postfix annotations.
(Inherited from CodeObject.) | |
HasTerminator |
Determines if the code object has a terminator character.
(Inherited from CodeObject.) | |
HasTerminatorDefault |
True if the Statement has a terminator character by default.
(Overrides BlockStatementHasTerminatorDefault.) | |
HiddenRef |
Any hidden reference to another CodeObject.
(Inherited from CodeObject.) | |
InfixComment |
The infix comment for the code object (if any).
(Inherited from CodeObject.) | |
IsCompactIfEmptyDefault |
True if the BlockStatement has compact empty braces by default.
(Inherited from BlockStatement.) | |
IsCSharp |
True if the CodeUnit contains C# code.
| |
IsEndFirstOnLine |
True if the closing paren or bracket is on a new line.
(Inherited from Statement.) | |
IsFile |
True if the CodeUnit is associated with a file (as opposed to being only in memory).
| |
IsFirstOnLine |
Determines if the code object appears as the first item on a line.
(Inherited from CodeObject.) | |
IsFirstOnLineDefault |
True if the code object defaults to starting on a new line.
(Inherited from CodeObject.) | |
IsGenerated |
Determines if the code object is generated.
(Inherited from CodeObject.) | |
IsGroupingSet |
Determines if the 'grouping' (has parens or braces) status has been set.
(Inherited from CodeObject.) | |
IsMethodBodyLevel |
True if a BlockStatement is at a method body level (contains general code statements).
For example, anything at a MethodDeclBase level or lower in the code tree. Specifically, NOT
a NamespaceDecl, TypeDecl, or PropertyDeclBase.
(Inherited from NamespaceDecl.) | |
IsMultiPart |
True for multi-part statements, such as try/catch/finally or if/else.
(Inherited from BlockStatement.) | |
IsNew |
True if the CodeUnit is newly created and hasn't been saved yet.
| |
IsNewLinesSet |
Determines if the newline count has been set on the code object.
(Inherited from CodeObject.) | |
IsRenderable |
True if the CodeObject is renderable.
(Overrides CodeObjectIsRenderable.) | |
IsSingleLine |
Determines if the code object only requires a single line for display.
(Inherited from NamespaceDecl.) | |
IsSingleLineDefault |
True if the code object only requires a single line for display by default.
(Inherited from BlockStatement.) | |
IsTopLevel |
True if a BlockStatement is at the top level (those that have no header and no indent).
For example, a CodeUnit, a BlockDecl with no parent or a DocComment
or Project parent.
(Overrides BlockStatementIsTopLevel.) | |
IsWorkflowCodeBesideFile |
True if this is a workflow code-beside file.
| |
Keyword |
The keyword associated with the Statement.
(Inherited from NamespaceDecl.) | |
LineNumber |
The line number of a CodeUnit is normally 0, but may be set to a non-zero value to indicate
the base offset of a code fragment being parsed within a larger code fragment or file.
(Overrides CodeObjectLineNumber.) | |
ListedAnnotations | ||
Name |
The name of the CodeUnit. If associated with a file, this is the file name and extension.
| |
Namespace |
The associated Namespace.
(Inherited from NamespaceDecl.) | |
NewLines |
The number of newlines preceding the object (0 to N).
(Inherited from Statement.) | |
Parent |
The parent CodeObject.
(Inherited from NamespaceDecl.) | |
PostfixComment |
The postfix comment for the code object (if any).
(Inherited from CodeObject.) | |
Project |
The parent Project.
| |
RequiresEmptyStatement |
True if the BlockStatement requires an empty statement if it has an empty block with no braces.
(Overrides BlockStatementRequiresEmptyStatement.) | |
SLOC |
"Source Lines Of Code" in the source (when first parsed).
| |
Terminator |
The terminator character for the Statement.
(Inherited from Statement.) | |
TotalLines |
Total number of text lines in the source (when first parsed).
|
Name | Description | |
---|---|---|
Accept |
Accept the specified visitor object for the current code object and it's children.
(Overrides NamespaceDeclAccept(IVisitor).) | |
AcceptAnnotations(IVisitor) |
Accept the specified visitor object for all regular (non-EOL, non-Infix, non-Postfix) annotations (comments, attributes, compiler directives).
(Inherited from CodeObject.) | |
AcceptAnnotations(IVisitor, AnnotationFlags) |
Accept the specified visitor object for all specified Infix or Postfix annotations (comments, compiler directives).
(Inherited from CodeObject.) | |
AcceptEOLComments |
Accept the specified visitor object for all EOL comments.
(Inherited from CodeObject.) | |
AcceptInfixComments |
Accept the specified visitor object for all Infix comments.
(Inherited from CodeObject.) | |
AcceptInfixEOLComments |
Accept the specified visitor object for all Infix EOL comments.
(Inherited from CodeObject.) | |
Add(CodeObject) |
Add multiple CodeObjects to the BlockStatement body.
(Inherited from BlockStatement.) | |
Add(CodeObject) |
Add a CodeObject to the NamespaceDecl body.
(Inherited from NamespaceDecl.) | |
AddRange |
Add a collection of CodeObjects to the BlockStatement body.
(Inherited from BlockStatement.) | |
AddToDictionary |
Add the CodeObject to the specified dictionary.
| |
AssociateCommentWhenParsing |
Determine if the specified comment should be associated with the current code object during parsing.
(Inherited from Statement.) | |
AsString |
Render the entire code object as a string, using LFs for newlines.
(Inherited from CodeObject.) | |
AsText |
Convert the code object to text with a trailing newline, and using CR/LF pairs for newlines (file format).
(Inherited from CodeObject.) | |
AsText(CodeWriter, CodeObjectRenderFlags) | (Overrides StatementAsText(CodeWriter, CodeObjectRenderFlags).) | |
AsText(CodeObjectRenderFlags, Boolean, StackCodeWriterAlignmentState) |
Convert the code object to text using the specified flags and format (file or string).
(Inherited from CodeObject.) | |
AsTextAfter | (Overrides BlockStatementAsTextAfter(CodeWriter, CodeObjectRenderFlags).) | |
AsTextAnnotations(CodeWriter, CodeObjectRenderFlags) |
Render all regular (non-EOL, non-Infix, non-Postfix, non-Message) annotations (comments, attributes, compiler directives).
(Inherited from CodeObject.) | |
AsTextAnnotations(CodeWriter, AnnotationFlags, CodeObjectRenderFlags) |
Render all specified Infix or Postfix annotations (comments, compiler directives).
(Inherited from CodeObject.) | |
AsTextArgument | (Inherited from NamespaceDecl.) | |
AsTextArgumentPrefix | (Inherited from Statement.) | |
AsTextBefore | (Inherited from CodeObject.) | |
AsTextEOLComments |
Render all EOL comments.
(Inherited from CodeObject.) | |
AsTextEvaluatedType | (Inherited from CodeObject.) | |
AsTextInfixComments |
Render all Infix comments with the specified mask.
(Inherited from CodeObject.) | |
AsTextInfixEOLComments |
Render all Infix EOL comments.
(Inherited from CodeObject.) | |
AsTextLeftMostAnnotations |
Render all regular annotations on the current object, or the left most binary operator.
(Inherited from CodeObject.) | |
AsTextLength |
Determine the length of the code object if converted to a string using the specified flags.
(Inherited from CodeObject.) | |
AsTextPrefix | (Inherited from Statement.) | |
AsTextStatement | (Overrides StatementAsTextStatement(CodeWriter, CodeObjectRenderFlags).) | |
AsTextSuffix | (Inherited from Statement.) | |
AsTextTerminator | (Inherited from Statement.) | |
AttachAnnotation(Annotation, Boolean) |
Attach an Annotation (Comment, DocComment, Attribute,
CompilerDirective, or Message) to the CodeObject.
(Inherited from CodeObject.) | |
AttachAnnotation(Annotation, AnnotationFlags, Boolean) |
Attach an Annotation to the CodeObject at the specified position.
(Inherited from CodeObject.) | |
AttachComment |
Create a comment object and attach it to the code object.
(Inherited from CodeObject.) | |
AttachEOLComment |
Create an EOL comment object and attach it to the code object.
(Inherited from CodeObject.) | |
AttachMessage |
Create a message and attach it to the code object.
(Inherited from CodeObject.) | |
CalculateMetrics |
Calculate metrics for this code object and its children.
(Inherited from CodeObject.) | |
CheckForAlignment |
Check for alignment of any EOL comments.
(Inherited from CodeObject.) | |
Clone |
Deep-clone the code object.
(Inherited from NamespaceDecl.) | |
CloneField(Object, Object) |
Clone a field of a code object, including setting the parent.
(Inherited from CodeObject.) | |
CloneFieldT(T, T) |
Clone a field of a code object, including setting the parent.
(Inherited from CodeObject.) | |
CompareTo |
Compare one CodeUnit to another.
| |
Contains |
Check if the BlockStatement contains the specified CodeObject.
(Inherited from BlockStatement.) | |
CopyFormatting |
Copy formatting from another code object.
(Inherited from CodeObject.) | |
CreateAnnotations |
Create the list of child Annotations, or return the existing one.
(Inherited from CodeObject.) | |
CreateBody |
Create a body if one doesn't exist yet.
(Inherited from BlockStatement.) | |
CreateDummyProject |
Create a dummy parent Project for when a code unit or fragment is loaded directly without a project.
| |
CreateRef |
Create a reference to the CodeObject.
(Inherited from CodeObject.) | |
DefaultFormat |
Default format the code object.
(Inherited from BlockStatement.) | |
DefaultFormatField | (Inherited from Statement.) | |
DefaultNewLines |
Determine a default of 1 or 2 newlines when adding items to a Block.
(Inherited from NamespaceDecl.) | |
DefineCompilerDirectiveSymbol |
Define the specified compiler directive symbol.
| |
Dispose |
Dispose the CodeObject.
(Inherited from CodeObject.) | |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
EvaluateTypeOrNamespace |
Evaluate the type or namespace associated with the code object.
(Inherited from CodeObject.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
Find(String) |
Enumerate all children with the specified name.
(Inherited from BlockStatement.) | |
FindT |
Enumerate all children of type T.
(Inherited from BlockStatement.) | |
FindFirstT |
Find the first child object of type T.
(Inherited from BlockStatement.) | |
FindFirstT(String) |
Find the first child object with the specified name and type.
(Inherited from BlockStatement.) | |
FindIndexOf |
Find the index of the specified CodeObject in the BlockStatement.
(Inherited from BlockStatement.) | |
FindParentT |
Find the parent object of the specified type.
(Inherited from CodeObject.) | |
FindParentMethod |
Find the parent method (or anonymous method or lambda) of the current code object.
(Inherited from CodeObject.) | |
FindParentMethodOrType |
Find the parent method (or anonymous method or lambda) or type of the current code object.
(Inherited from CodeObject.) | |
GetAllChildrenT |
Get an enumerator for all children objects of type T in
the CodeObject and in any child CodeObjects (recursively).
(Inherited from CodeObject.) | |
GetAttribute |
Returns the first attribute expression (Call or ConstructorRef) with the specified name on the CodeObject.
(Inherited from CodeObject.) | |
GetComment |
Get the comment that satisfies the specified predicate.
(Inherited from CodeObject.) | |
GetDescription |
Get a short text description of the CodeObject.
This is generally the shortest text representation that uniquely identifies objects, even if
they have the same name, for example: type or return type, name, type parameters, parameters.
(Inherited from CodeObject.) | |
GetDocSummary |
Returns the DocSummary documentation comment, or null if none exists.
(Inherited from CodeObject.) | |
GetFullName |
Get the full name of the INamedCodeObject, including any namespace name.
| |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetIndentLevel |
Get the indent level of this object.
(Overrides CodeObjectGetIndentLevel.) | |
GetIndentSpaceCount |
Get the current indent in spaces.
(Inherited from CodeObject.) | |
GetInferredType |
Determine the type of an inferred ('var') type.
(Inherited from CodeObject.) | |
GetMessageCounts |
Calculate message counts.
| |
GetNamespace |
Get the Namespace for this CodeObject.
(Inherited from CodeObject.) | |
GetSaveFileName |
Get the name of the save file.
| |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
GetTypeDecls |
Get all TypeDecls declared in the NamespaceDecl, or
in any nested NamespaceDecls (recursively).
(Inherited from NamespaceDecl.) | |
GetTypeRef |
Get a TypeRef for the type with the specified full name, with caching (generally used for System types).
(Inherited from CodeObject.) | |
GetWorstMessageType |
Get the type of the worst attached message.
(Inherited from CodeObject.) | |
HasAnnotationT | (Inherited from CodeObject.) | |
HasAttribute |
Returns true if the attribute with the specified name exists on the object, otherwise false.
(Inherited from CodeObject.) | |
HasUnresolvedRef |
Returns true if the code object is an UnresolvedRef or has any UnresolvedRef children.
(Inherited from NamespaceDecl.) | |
Insert |
Insert a CodeObject at the specified index in the BlockStatement body.
(Inherited from BlockStatement.) | |
IsChildIndented |
Returns true if the specified child object is indented from the parent.
(Overrides CodeObjectIsChildIndented(CodeObject).) | |
IsChildPrefix |
Returns true if the specified child object is prefixed to the current object.
(Inherited from CodeObject.) | |
IsCompilerDirectiveSymbolDefined |
Determine if the specified compiler directive symbol exists.
| |
Load | ||
LoadFragment |
Load a fragment of code from the specified string.
| |
LogAndAttachException |
Log the specified exception and message and also attach it as an annotation.
| |
LogAndAttachMessage |
Log the specified text message and also attach it as an annotation.
| |
LogException |
Log the specified exception and message.
| |
LogMessage |
Log the specified text message with the specified severity level.
| |
LogMessageCounts |
Log message counts, and optionally errors and warnings (or all messages if detail logging is on).
| |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
MoveAllComments |
Move all (regular or EOL) comments from the specified token to the current code object, converting any
EOL comments to regular comments (which will be rendered inline if necessary).
(Inherited from CodeObject.) | |
MoveAnnotations |
Move any annotations from the specified location to the specified destination location.
(Inherited from CodeObject.) | |
MoveComments(Token) |
Move any non-EOL comments from the specified token to the current code object.
(Inherited from CodeObject.) | |
MoveComments(Token, Boolean) |
Move any non-EOL comments from the specified token to the current code object.
(Inherited from CodeObject.) | |
MoveCommentsAsPost |
Move any non-EOL comments from the specified token to the current code object as Post comments.
(Inherited from CodeObject.) | |
MoveEOLAndPostAnnotations |
Move any EOL or Postfix annotations from the specified code object to the current code object.
(Inherited from CodeObject.) | |
MoveEOLComment(CodeObject) |
Move any EOL comment from the specified code object to the current code object.
(Inherited from CodeObject.) | |
MoveEOLComment(Token) |
Move any EOL comment from the specified token to the current code object.
(Inherited from CodeObject.) | |
MoveEOLComment(Token, Boolean, Boolean) |
Move any EOL comment from the specified token to the current code object.
(Inherited from CodeObject.) | |
MoveEOLCommentAsInfix |
Move any EOL comment from the specified token to the current code object as an Infix EOL comment.
(Inherited from CodeObject.) | |
MoveFormatting(CodeObject) |
Move formatting from the specified code object to the current object.
(Inherited from CodeObject.) | |
MoveFormatting(Token) |
Move formatting from the specified token to the current object.
(Inherited from CodeObject.) | |
MovePrefixAnnotationsAs |
Move any prefix annotations on the specified code object to the current code object as the specified type of annotation.
(Inherited from CodeObject.) | |
NotifyListedAnnotationAdded |
Add the listed annotation and propagate to the parent Project and above.
(Overrides CodeObjectNotifyListedAnnotationAdded(Annotation).) | |
NotifyListedAnnotationRemoved |
Remove the listed annotation and propagate to the parent Project and above.
(Overrides CodeObjectNotifyListedAnnotationRemoved(Annotation).) | |
Parse |
Parse the CodeUnit from its file.
| |
ParseAnnotations(Parser, CodeObject) |
Parse annotations - specifically, compiler directives around things such as TypeParameters or ParameterDecls.
(Inherited from CodeObject.) | |
ParseAnnotations(Parser, CodeObject, Boolean, Boolean) |
Parse any comments, attributes, compiler directives.
(Inherited from CodeObject.) | |
ParseExpectedToken |
Parse the specified expected token, attaching a parse error to the current object if it doesn't exist.
(Inherited from CodeObject.) | |
ParseKeywordAndArgument | (Inherited from Statement.) | |
ParseKeywordArgumentBody | (Inherited from BlockStatement.) | |
ParseResolveLog |
Parse and optionally resolve the CodeUnit (or fragment), and log statistics if requested.
| |
ParseTerminator |
Parse the terminator at the end of a Statement.
(Inherited from Statement.) | |
ParseTerminatorOrBody | (Inherited from BlockStatement.) | |
ParseUnusedAnnotations |
Parse annotations from the Unused list.
(Inherited from CodeObject.) | |
ParseUnusedType |
This method is used when we must parse backwards through the Unused list to get a type.
(Inherited from Statement.) | |
ReformatBlock |
Reformat the Block body.
(Inherited from BlockStatement.) | |
Remove |
Remove a CodeObject from the NamespaceDecl body.
(Inherited from NamespaceDecl.) | |
RemoveAll |
Remove all CodeObjects from the BlockStatement body.
(Inherited from BlockStatement.) | |
RemoveAllAnnotationsT |
Remove all annotations of the specified type from this object.
(Inherited from CodeObject.) | |
RemoveAllAnnotationsWhereT |
Remove all annotations from this object where the specified predicate is true.
(Inherited from CodeObject.) | |
RemoveAllMessages |
Remove all messages from this object, or optionally only from the specified source.
(Inherited from CodeObject.) | |
RemoveAt |
Remove the CodeObject at the specified index from the BlockStatement.
(Inherited from BlockStatement.) | |
RemoveAttribute |
Remove the attribute expression with the specified name.
(Inherited from CodeObject.) | |
RemoveFromDictionary |
Remove the CodeObject from the specified dictionary.
| |
Replace |
Replace the specified CodeObject with a new one.
(Inherited from BlockStatement.) | |
Resolve(ResolveFlags) |
Resolve all child symbolic references in the CodeUnit, handling any exceptions.
(Overrides CodeObjectResolve(ResolveFlags).) | |
Resolve(ResolveCategory, ResolveFlags) |
Resolve all child symbolic references, using the specified ResolveCategory and ResolveFlags.
(Inherited from NamespaceDecl.) | |
ResolveAttributes |
Resolve any attached attributes.
(Inherited from CodeObject.) | |
ResolveDocComments |
Resolve any references in attached documentation comments.
(Inherited from CodeObject.) | |
ResolveExtensionMethod |
Resolve an extension method with the specified name.
(Inherited from NamespaceDecl.) | |
ResolveGotoTargetUp |
Resolve child code objects that match the specified name are valid goto targets, moving up the tree until a complete match is found.
(Inherited from BlockStatement.) | |
ResolveIndexerRef |
Resolve indexers.
(Inherited from BlockStatement.) | |
ResolveNamespaces | (Overrides NamespaceDeclResolveNamespaces.) | |
ResolveRef |
Resolve child code objects that match the specified name.
(Inherited from BlockStatement.) | |
ResolveRefUp |
Resolve child code objects that match the specified name, moving up the tree until a complete match is found.
(Overrides NamespaceDeclResolveRefUp(String, Resolver).) | |
ResolveRefUpSkipMethodBody |
Similar to ResolveRefUp(String, Resolver), but skips trying to resolve the symbol in the body or parameters of a
method (used for resolving parameter types).
(Inherited from CodeObject.) | |
Save |
Save the CodeUnit.
| |
SaveAs |
Save the CodeUnit to the specified file name.
| |
SetField(Object, Object, Boolean) |
Set a field of a code object, including setting the parent, and optional formatting.
(Inherited from CodeObject.) | |
SetFieldT(ChildListT, ChildListT) |
Set a ChildList collection field of a code object, including setting the parent.
(Inherited from CodeObject.) | |
SetFieldT(T, T, Boolean) |
Set a field of a code object, including setting the parent, and optional formatting.
(Inherited from CodeObject.) | |
SetFormatFlag | (Inherited from CodeObject.) | |
SetLineCol(CodeObject) |
Set the line and column numbers to those in the specified CodeObject.
(Inherited from CodeObject.) | |
SetLineCol(Token) |
Set the line and column numbers to those in the specified token.
(Inherited from CodeObject.) | |
SetNewLines |
Special method to set the newline count without setting the NewLinesSet flag.
(Inherited from CodeObject.) | |
SetStartLineCol |
Set the starting line and column numbers to those in the specified token (used by
some code objects with prefixes such as modifiers).
(Inherited from CodeObject.) | |
ShouldHaveBraces |
Determines if the body of the BlockStatement should be formatted with braces.
(Overrides BlockStatementShouldHaveBraces.) | |
ToString |
Render the type of the code object and its description as a string.
(Inherited from CodeObject.) | |
UndefineCompilerDirectiveSymbol |
Undefine the specified compiler directive symbol.
| |
UpdateAllDeclExpressions |
Recursively update the dictionary of names in the specified Block by either adding or removing
(as specified by the 2nd parameter) all appropriate nested INamedCodeObjects expressions in the
current CodeObject tree (specifically implemented for LocalDeclExpr expression objects).
(Inherited from CodeObject.) | |
UpdateAllLineColInfo |
Update the LineNumber and ColumnNumber properties of all child CodeObjects of the CodeUnit.
| |
UpdateLineCol | (Overrides CodeObjectUpdateLineCol(CodeWriter, CodeObjectRenderFlags).) |
Name | Description | |
---|---|---|
_annotations |
Any Annotations (Comments, DocComments, Attributes,
or Messages) associated with the CodeObject (null if none).
(Inherited from CodeObject.) | |
_body |
The body is always a Block, which in turn may contain zero or more other code objects,
and it can also be null in special cases (such as for method signatures with no body,
delegate declarations, or a While with the semi-colon on the same line).
(Inherited from BlockStatement.) | |
_code | ||
_columnNumber |
The starting column number associated with the CodeObject if parsed from or written to text form.
(Inherited from CodeObject.) | |
_compilerDirectiveSymbols |
Compiler directive symbols defined in the current file.
| |
_expression |
The expression should evaluate to a NamespaceRef (whether pre-existing or created by this statement).
(Inherited from NamespaceDecl.) | |
_fileName | ||
_formatFlags |
Formatting flags - for line feeds, braces, etc.
(Inherited from CodeObject.) | |
_globalAlias |
Generated 'extern alias global' statement.
| |
_isNew | ||
_isWorkflowCodeBesideFile | ||
_lineNumber |
The starting line number associated with the CodeObject if parsed from or written to text form.
(Inherited from CodeObject.) | |
_listedAnnotations | ||
_name | ||
_parent |
The parent CodeObject.
(Inherited from CodeObject.) | |
_SLOC | ||
_totalLines | ||
DefaultEncoding |
Determines the default source file encoding for files without a BOM prefix or a valid UTF8 sequence (defaults to Windows-1252).
Use "UTF8" for UTF8. Use "ISO-8859-1" for Latin1 / extended ASCII.
| |
ListWorkflowFileErrors |
Determines if messages in workflow code-beside files (".xoml.cs") are listed.
| |
SaveChangesToSeparateFile |
Determines if changes are saved to a separate ".Nova.cs" file instead of the original.
|