Searched refs:withNewState (Results 1 – 1 of 1) sorted by relevance
135 fun withNewState(state: State, block: () -> Unit): State { in withNewState() method146 fun withNewState(suspendCallSearch: SearchState, block: () -> Unit): State { in withNewState() method147 return withNewState(State(currentState.checkUIAccess, suspendCallSearch), block) in withNewState()150 fun withNewState(checkUIAccess: Boolean, block: () -> Unit): State { in withNewState() method in androidx.lifecycle.lint.LifecycleWhenVisitor151 return withNewState(State(checkUIAccess, currentState.suspendCallSearch), block) in withNewState()155 val stateAfterTry = withNewState(SEARCH) { node.tryClause.accept(this) } in visitTryExpression()158 withNewState(checkView) { node.finallyClause?.accept(this) } in visitTryExpression()200 withNewState(checkUIAccess = false) { node.thenExpression?.accept(this) } in visitClass()213 withNewState(checkUIAccess = false) { in visitSwitchClauseExpression()