Class PyxlTag
A Tag in Pyxl (which gets converted to a call in Python).
Import path
import semmle.python.templates.PyxlTags
Direct supertypes
Known direct subtypes
Predicates
getEnclosedNode |
Gets the pyxl or Python node that is enclosed by this one in the pyxl source |
getEnclosedPythonCode |
Gets the Python code (if any) that is contained in this pyxl node |
getPyxlTagName |
Inherited predicates
contains |
Whether this contains |
from AstNode |
containsInScope |
Whether this contains |
from AstNode |
defines |
Whether this expression defines variable |
from Expr |
getAChildNode |
Gets a child node of this node in the AST. This predicate exists to aid exploration of the AST and other experiments. The child-parent relation may not be meaningful. For a more meaningful relation in terms of dependency use Expr.getASubExpression(), Stmt.getASubStatement(), Stmt.getASubExpression() or Scope.getAStmt(). |
from Call |
getAFlowNode |
Gets a flow node corresponding directly to this node. NOTE: For some statements and other purely syntactic elements, there may not be a |
from Call |
getAKeyword |
Gets a keyword argument of this call expression, provided it is not preceded by a double-starred argument. This exists primarily for backwards compatibility. You are recommended to use Call.getANamedArg() instead. |
from Call |
getANamedArg |
Gets a named argument of this call expression. |
from Call_ |
getANamedArgumentName |
Gets the name of a named argument, including those passed in dict literals. |
from Call |
getAPositionalArg |
Gets a positional argument of this call expression. |
from Call_ |
getASubExpression |
Gets an immediate (non-nested) sub-expression of this expression |
from Call |
getAnArg |
Gets a positional argument, provided it is not preceded by a starred argument. This exists primarily for backwards compatibility. You are recommended to use Call.getAPositionalArg() instead. |
from Call |
getArg |
Gets the positional argument at |
from Call |
getEnclosingModule |
Gets the module in which this expression occurs |
from Expr |
getFunc |
Gets the callable of this call expression. |
from Call_ |
getKeyword |
Gets the nth keyword argument of this call expression, provided it is not preceded by a double-starred argument. This exists primarily for backwards compatibility. You are recommended to use Call.getNamedArg(index) instead. |
from Call |
getKwargs |
Gets a dictionary (**) argument of this call. |
from Call |
getLocation | from Expr | |
getNamedArg |
Gets the nth named argument of this call expression. |
from Call_ |
getNamedArgs |
Gets the named arguments of this call expression. |
from Call_ |
getParent |
Gets a parent of this expression |
from Expr_ |
getParentNode |
Gets the parent node of this node in the AST. This predicate exists to aid exploration of the AST and other experiments. The child-parent relation may not be meaningful. For a more meaningful relation in terms of dependency use Expr.getASubExpression(), Stmt.getASubStatement(), Stmt.getASubExpression() or Scope.getAStmt() applied to the parent. |
from AstNode |
getPositionalArg |
Gets the nth positional argument of this call expression. |
from Call_ |
getPositionalArgs |
Gets the positional arguments of this call expression. |
from Call_ |
getPositionalArgumentCount |
Gets the positional argument count of this call, provided there is no more than one tuple (*) argument. |
from Call |
getScope |
Gets the scope of this expression |
from Expr |
getStarArg |
Gets the first tuple (*) argument of this call, if any. |
from Call |
getStarargs |
Gets a tuple (*) argument of this call. |
from Call |
hasSideEffects |
Whether this expression may have a side effect (as determined purely from its syntax) |
from Call |
isArtificial |
Whether this syntactic element is artificial, that is it is generated by the compiler and is not present in the source |
from AstNode |
isConstant |
Whether this expression is a constant |
from Expr |
isParenthesised |
Whether the parenthesised property of this expression is true. |
from Expr_ |
isParenthesized |
Whether the parenthesized property of this expression is true. |
from Expr |
pointsTo |
Holds if this expression might “point-to” to |
from Expr |
pointsTo |
Holds if this expression might “point-to” to |
from Expr |
pointsTo |
Holds if this expression might “point-to” to |
from Expr |
pointsTo |
Gets a value that this expression might “point-to”. |
from Expr |
refersTo |
NOTE: |
from Expr |
refersTo |
NOTE: |
from Expr |
refersTo |
NOTE: |
from Expr |
refersTo |
NOTE: |
from Expr |
toString |
Gets a textual representation of this element. |
from Call |