Module Expr
Provides all expression classes.
All expressions have the common base class Expr
.
Import path
import semmle.code.csharp.exprs.Expr
Imports
Access | Provides all access expression classes. |
ArithmeticOperation | Provides all arithmetic operation classes. |
Assignment | Provides all assignment classes. |
BitwiseOperation | Provides all bitwise operation classes. |
Call | Provides all call classes. |
ComparisonOperation | Provides all comparison operation classes. |
ControlFlowElement | Provides the class |
Creation | Provides expression classes for creating various types of object. |
Dynamic | Provides all |
Literal | Provides all literal classes. |
Location | Provides the |
LogicalOperation | Provides all logical operation classes. |
Stmt | Provides all statement classes. |
Type | Provides classes for types. |
Classes
AddressOfExpr | An address-of expression, for example |
AndPatternExpr | A binary |
AsExpr | An |
AwaitExpr | An |
BinaryOperation | A binary operation. Either a binary arithmetic operation ( |
BinaryPatternExpr | A binary pattern. For example, |
BindingPatternExpr | A pattern that may bind a variable, for example |
Case | A |
Cast | A cast. Either an |
CastExpr | A cast expression, for example |
CheckedExpr | A checked expression, for example |
CollectionExpression | A collection expression, for example |
ConstantPatternExpr | A constant pattern, for example |
DefaultValueExpr | A |
DefineSymbolExpr | A preprocessor symbol inside an expression, such as DEBUG in line 2 |
DiscardExpr | A discard expression, for example |
DiscardPatternExpr | A discard pattern, for example |
ExplicitCast | An explicit cast. For example, the explicit cast from |
Expr | An expression. Either an access ( |
GEPattern | A greater-than or equals pattern, for example |
GTPattern | A greater-than pattern, for example |
ImplicitCast | An implicit cast. For example, the implicit cast from |
IndexExpr | An index expression, for example |
InterpolatedStringExpr | An interpolated string, for example |
IsExpr | An |
LEPattern | A less-than or equals pattern, for example |
LTPattern | A less-than pattern, for example |
LabeledPatternExpr | A labeled pattern in a property pattern, for example |
LateBindableExpr | An expression whose target may be late bound when using |
ListPatternExpr | A list pattern. For example |
LocalConstantDeclExpr | A local constant declaration, for example |
LocalVariableDeclExpr | A local variable declaration, for example |
NameOfExpr | A |
NotPatternExpr | A not pattern. For example, |
Operation | An operation. Either an assignment ( |
OrPatternExpr | A binary |
ParenthesizedExpr | A parenthesized expression, for example |
PatternExpr | A pattern expression, for example |
PatternMatch | An expression or statement that matches the value of an expression against a pattern. Either an |
PointerIndirectionExpr | A pointer indirection operation, for example |
PositionalPatternExpr | A positional pattern. For example, |
PropertyPatternExpr | A property pattern. For example, |
QualifiableExpr | An expression that may have a qualifier. Either a member access ( |
RangeExpr | A range expression, used to create a |
RecursivePatternExpr | A recursive pattern expression, for example |
RefExpr | A reference expression, for example |
RelationalPatternExpr | A relational pattern, for example |
SizeofExpr | A |
SlicePatternExpr | A slice pattern. For example |
SpreadElementExpr | A spread element expression, for example |
SuppressNullableWarningExpr | A nullable warning suppression expression, for example |
Switch | A |
SwitchCaseExpr | An arm of a switch expression, for example |
SwitchExpr | A |
TernaryOperation | A ternary operation, that is, a ternary conditional operation ( |
ThrowElement | A |
ThrowExpr | A |
TupleExpr | An expression representing a tuple, for example |
TypeAccessPatternExpr | A type access pattern, for example |
TypePatternExpr | A type pattern, for example |
TypeofExpr | A |
UnaryOperation | A unary operation. Either a unary arithmetic operation ( |
UnaryPatternExpr | A unary pattern. For example, |
UncheckedExpr | An unchecked expression, for example |
VariablePatternExpr | A variable declaration pattern, for example |
WithExpr | A |