Class PrimitiveExpression
- Namespace
- ICSharpCode.Decompiler.CSharp.Syntax
- Assembly
- ICSharpCode.Decompiler.dll
Represents a literal value.
public class PrimitiveExpression : Expression, IAnnotatable, IFreezable, INode, ICloneable
- Inheritance
-
PrimitiveExpression
- Implements
- Inherited Members
- Extension Methods
Constructors
PrimitiveExpression(object)
public PrimitiveExpression(object value)
Parameters
value
object
PrimitiveExpression(object, LiteralFormat)
public PrimitiveExpression(object value, LiteralFormat format)
Parameters
value
objectformat
LiteralFormat
Fields
AnyValue
public static readonly object AnyValue
Field Value
Properties
EndLocation
public override TextLocation EndLocation { get; }
Property Value
Format
public LiteralFormat Format { get; set; }
Property Value
StartLocation
public override TextLocation StartLocation { get; }
Property Value
Value
public object Value { get; set; }
Property Value
Methods
AcceptVisitor(IAstVisitor)
public override void AcceptVisitor(IAstVisitor visitor)
Parameters
visitor
IAstVisitor
AcceptVisitor<T>(IAstVisitor<T>)
public override T AcceptVisitor<T>(IAstVisitor<T> visitor)
Parameters
visitor
IAstVisitor<T>
Returns
- T
Type Parameters
T
AcceptVisitor<T, S>(IAstVisitor<T, S>, T)
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
Parameters
visitor
IAstVisitor<T, S>data
T
Returns
- S
Type Parameters
T
S
DoMatch(AstNode, Match)
protected override bool DoMatch(AstNode other, Match match)