IfStatementContext

Constructors

Link copied to clipboard
constructor(wrappedNode: IfStmt, typeSolver: TypeSolver)

Functions

Link copied to clipboard
open fun equals(o: Any): Boolean
Public methods
Link copied to clipboard
Link copied to clipboard
The following rules apply to a statement if (e) S: - A pattern variable is introduced by if (e) S iff (i) it is introduced by e when false and (ii) S cannot complete normally.
Link copied to clipboard
Link copied to clipboard
abstract fun <N : Node?> getWrappedNode(): N
open fun getWrappedNode(): N
Link copied to clipboard
open fun hashCode(): Int
Link copied to clipboard
open fun nodeContextIsChainedIfElseIf(parentContext: Context): Boolean

if() {
    // Does not match here (doesn't need to, as stuff inside of the if() is likely in context..)
} else if() {
    // Matches here
} else {
    // Matches here
}
Link copied to clipboard
Link copied to clipboard

if() {
    // Does not match here (doesn't need to, as stuff inside of the if() is likely in context..)
} else {
    // Does not match here, as the else block is a field inside of an ifstmt as opposed to child
}
Link copied to clipboard
open fun nodeContextIsThenOfIfStmt(parentContext: Context): Boolean

if() {
    // Does not match here (doesn't need to, as stuff inside of the if() is likely in context..)
} else {
    // Does not match here, as the else block is a field inside of an ifstmt as opposed to child
}
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun solveInBlockAsValue(name: String, typeSolver: TypeSolver, stmt: Statement): Optional<Value>
Link copied to clipboard
open fun solveMethod(name: String, argumentsTypes: List<ResolvedType>, staticOnly: Boolean, invocationContext: ResolvedReferenceTypeDeclaration): SymbolReference<ResolvedMethodDeclaration>
open fun solveMethod(name: String, argumentsTypes: List<ResolvedType>, staticOnly: Boolean, invocationContext: ResolvedReferenceTypeDeclaration): SymbolReference<ResolvedMethodDeclaration>
Link copied to clipboard
abstract fun solveMethodAsUsage(name: String, argumentsTypes: List<ResolvedType>, invocationContext: ResolvedReferenceTypeDeclaration): Optional<MethodUsage>

open fun solveMethodAsUsage(name: String, argumentsTypes: List<ResolvedType>, invocationContext: ResolvedReferenceTypeDeclaration): Optional<MethodUsage>
Similar to solveMethod but we return a MethodUsage.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Static methods
Link copied to clipboard
Link copied to clipboard
When looking for a variable declaration in a pattern expression, there are 2 cases: 1.
Link copied to clipboard
The following rules apply to a statement if (e) S: - A pattern variable introduced by e when true is definitely matched at S.