public interface ICPPASTLambdaExpression extends ICPPASTExpression, IASTImplicitNameOwner
Modifier and Type | Interface and Description |
---|---|
static class |
ICPPASTLambdaExpression.CaptureDefault
The capture default can be by copy, by reference or unspecified.
|
IASTExpression.ValueCategory
IASTNode.CopyStyle
Modifier and Type | Field and Description |
---|---|
static ASTNodeProperty |
BODY |
static ASTNodeProperty |
CAPTURE |
static ASTNodeProperty |
DECLARATOR |
EMPTY_EXPRESSION_ARRAY
EMPTY_NODE_ARRAY
IMPLICIT_DESTRUCTOR_NAME
IMPLICIT_NAME
Modifier and Type | Method and Description |
---|---|
void |
addCapture(ICPPASTCapture capture)
Not allowed on frozen AST.
|
IASTCompoundStatement |
getBody()
Returns the compound statement of this lambda expression.
|
ICPPASTLambdaExpression.CaptureDefault |
getCaptureDefault()
Returns the capture default for this lambda expression.
|
ICPPASTCapture[] |
getCaptures()
Returns the array of captures for this lambda expression.
|
IASTImplicitName |
getClosureTypeName()
Returns an implicit name that represents the closure type.
|
ICPPASTFunctionDeclarator |
getDeclarator()
Returns the lambda declarator for this lambda expression, or
null
in case it was not specified. |
IASTImplicitName |
getFunctionCallOperatorName()
Returns an implicit name that represents the implicit function call operator of
the closure.
|
void |
setBody(IASTCompoundStatement body)
Not allowed on frozen AST.
|
void |
setCaptureDefault(ICPPASTLambdaExpression.CaptureDefault value)
Not allowed on frozen AST.
|
void |
setDeclarator(ICPPASTFunctionDeclarator dtor)
Not allowed on frozen AST.
|
copy, copy, getExpressionType, getValueCategory, isLValue
getEvaluation
accept, contains, getChildren, getContainingFilename, getFileLocation, getLeadingSyntax, getNodeLocations, getOriginalNode, getParent, getPropertyInParent, getRawSignature, getSyntax, getTrailingSyntax, getTranslationUnit, isActive, isFrozen, isPartOfTranslationUnitFile, setParent, setPropertyInParent
getImplicitDestructorNames
getImplicitNames
static final ASTNodeProperty CAPTURE
static final ASTNodeProperty DECLARATOR
static final ASTNodeProperty BODY
ICPPASTLambdaExpression.CaptureDefault getCaptureDefault()
ICPPASTCapture[] getCaptures()
IASTImplicitName getClosureTypeName()
ICPPASTFunctionDeclarator getDeclarator()
null
in case it was not specified.IASTImplicitName getFunctionCallOperatorName()
IASTCompoundStatement getBody()
null
when creating AST for content assist.void setCaptureDefault(ICPPASTLambdaExpression.CaptureDefault value)
getCaptureDefault()
void addCapture(ICPPASTCapture capture)
getCaptures()
void setDeclarator(ICPPASTFunctionDeclarator dtor)
getDeclarator()
void setBody(IASTCompoundStatement body)
getBody()