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
| Method | Description |
|---|---|
| GetAPrimaryQlClass() string | Returns the primary CodeQL class name for this entity |
| GetHalsteadID() int | Returns the Halstead complexity metric identifier |
| GetPP() string | Returns the pretty-printed representation of the statement |
| ToString() string | Returns a string representation of the return statement |
| GetResult() *Expr | Returns the expression being returned by this statement |