Package org.sonar.python.tree
Class LambdaExpressionImpl
java.lang.Object
org.sonar.python.tree.PyTree
org.sonar.python.tree.LambdaExpressionImpl
- All Implemented Interfaces:
Expression,FunctionLike,LambdaExpression,Tree
-
Nested Class Summary
-
Field Summary
Fields inherited from class org.sonar.python.tree.PyTree
firstToken, lastToken -
Constructor Summary
ConstructorsConstructorDescriptionLambdaExpressionImpl(Token lambdaKeyword, Token colonToken, Expression body, ParameterList parameterList) -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(TreeVisitor visitor) voidaddLocalVariableSymbol(Symbol symbol) getKind()booleanMethods inherited from class org.sonar.python.tree.PyTree
children, firstToken, is, lastToken, parent, setParentMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.sonar.plugins.python.api.tree.Expression
type, typeV2
-
Constructor Details
-
LambdaExpressionImpl
public LambdaExpressionImpl(Token lambdaKeyword, Token colonToken, Expression body, @Nullable ParameterList parameterList)
-
-
Method Details
-
lambdaKeyword
- Specified by:
lambdaKeywordin interfaceLambdaExpression
-
colonToken
- Specified by:
colonTokenin interfaceLambdaExpression
-
expression
- Specified by:
expressionin interfaceLambdaExpression
-
parameters
- Specified by:
parametersin interfaceFunctionLike
-
localVariables
- Specified by:
localVariablesin interfaceFunctionLike- Returns:
- symbols of local variables and parameters
-
isMethodDefinition
public boolean isMethodDefinition()- Specified by:
isMethodDefinitionin interfaceFunctionLike
-
addLocalVariableSymbol
-
getKind
-
accept
-
computeChildren
-