Skip to content

ReturnStmt Statement

ReturnStmt Entity

ReturnStmt is a statement that returns a value from a method.

Example

class MyClass {
...
public int myMethod()
{
return 1; // ReturnStmt
}
....
}

Attributes

MethodDescription
GetAPrimaryQlClass() stringReturns the primary CodeQL class name for this entity
GetHalsteadID() intReturns the Halstead complexity metric identifier
GetPP() stringReturns the pretty-printed representation of the statement
ToString() stringReturns a string representation of the return statement
GetResult() *ExprReturns the expression being returned by this statement