Literal Properties |
The Literal type exposes the following members.
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.) |
![]() | ColumnNumber |
The column number associated with the CodeObject (if any, 0 if none).
(Inherited from CodeObject.) |
![]() | 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.) |
![]() | HasAnnotations |
True if the code object has any annotations.
(Inherited from CodeObject.) |
![]() | HasAttributes |
True if the code object has any attributes.
(Inherited from CodeObject.) |
![]() | 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.) |
![]() | 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.) |
![]() | HasParens |
True if the expression is surrounded by parens.
(Inherited from Expression.) |
![]() | HasParensDefault |
True if the expression should have parens by default.
(Inherited from Expression.) |
![]() | 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.) |
![]() | HiddenRef |
Any hidden reference to another CodeObject.
(Inherited from CodeObject.) |
![]() | InfixComment |
The infix comment for the code object (if any).
(Inherited from CodeObject.) |
![]() | IsBool |
True if the Literal is a bool.
|
![]() | IsChar |
True if the Literal is a char.
|
![]() | IsConst |
Always true for Literals.
(Overrides ExpressionIsConst.) |
![]() | IsDecimal |
True if the Literal is a decimal.
|
![]() | IsDelegateType |
True if the expression evaluates to a delegate type.
(Inherited from Expression.) |
![]() | IsDouble |
True if the Literal is a double.
|
![]() | IsEndFirstOnLine |
True if the closing paren or bracket is on a new line.
(Inherited from Expression.) |
![]() | 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 Expression.) |
![]() | IsFloat |
True if the Literal is a float.
|
![]() | 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.) |
![]() | IsInt |
True if the Literal is an int.
|
![]() | IsInterpolatedString |
True if the Literal is a valid interpolated string.
|
![]() | IsLong |
True if the Literal is a long.
|
![]() | IsNewLinesSet |
Determines if the newline count has been set on the code object.
(Inherited from CodeObject.) |
![]() | IsNull |
True if the Literal is null.
|
![]() | IsNumeric |
True if the Literal is a numeric type.
|
![]() | IsPossibleDelegateType |
True if the expression evaluates to a delegate, unresolved, or dynamic type or a TypeParameterRef.
(Inherited from Expression.) |
![]() | IsRenderable |
True if the CodeObject is renderable.
(Inherited from CodeObject.) |
![]() | IsSingleLine |
Determines if the code object only requires a single line for display.
(Inherited from Expression.) |
![]() | IsSingleLineDefault |
True if the code object only requires a single line for display by default.
(Inherited from CodeObject.) |
![]() | IsString |
True if the Literal is a string.
|
![]() | IsUInt |
True if the Literal is a uint.
|
![]() | IsULong |
True if the Literal is a ulong.
|
![]() | IsVerbatimString |
True if the Literal is a verbatim string.
|
![]() | LineNumber |
The line number associated with the CodeObject (if any, 0 if none).
(Inherited from CodeObject.) |
![]() | NewLines |
The number of newlines preceding the object (0 to N).
(Inherited from CodeObject.) |
![]() | Parent |
The parent CodeObject.
(Inherited from CodeObject.) |
![]() | PostfixComment |
The postfix comment for the code object (if any).
(Inherited from CodeObject.) |
![]() | Text |
The text content of the Literal.
|
![]() | Value |
The object that the literal string represents (string, int, bool, etc).
If the literal is an interpolated string, this will be a ChildListT.
|