5 instantiations of ConditionalState
Microsoft.CodeAnalysis.VisualBasic (5)
Scanner\Directives.vb (5)
412Return WithConditionals(_conditionals.Push(New ConditionalState(takeThisBranch, False, DirectCast(statement, IfDirectiveTriviaSyntax)))) 422condition = New ConditionalState(ConditionalState.BranchTakenState.NotTaken, False, Nothing) 454condition = New ConditionalState(takeThisBranch, condition.ElseSeen, DirectCast(statement, IfDirectiveTriviaSyntax)) 466Return WithConditionals(conditionals.Push(New ConditionalState(ConditionalState.BranchTakenState.Taken, True, Nothing))) 486condition = New ConditionalState(takeThisBranch, True, condition.IfDirective)
21 references to ConditionalState
Microsoft.CodeAnalysis.VisualBasic (21)
Scanner\Blender.vb (1)
502nextPreprocessorState.ConditionalStack.Peek.BranchTaken = ConditionalState.BranchTakenState.Taken,
Scanner\Directives.vb (20)
89Not conditionals.Peek.BranchTaken = ConditionalState.BranchTakenState.Taken Then 179Not conditionalsStack.Peek.BranchTaken = ConditionalState.BranchTakenState.Taken Then 270Private ReadOnly _conditionals As ImmutableStack(Of ConditionalState) 277_conditionals = ImmutableStack.Create(Of ConditionalState)() 282conditionals As ImmutableStack(Of ConditionalState), 306Friend ReadOnly Property ConditionalStack As ImmutableStack(Of ConditionalState) 312Private Function WithConditionals(conditionals As ImmutableStack(Of ConditionalState)) As PreprocessorState 409ConditionalState.BranchTakenState.Taken, 410ConditionalState.BranchTakenState.NotTaken) 417Dim condition As ConditionalState 422condition = New ConditionalState(ConditionalState.BranchTakenState.NotTaken, False, Nothing) 446If takeThisBranch = ConditionalState.BranchTakenState.Taken Then 447takeThisBranch = ConditionalState.BranchTakenState.AlreadyTaken 449ElseIf takeThisBranch = ConditionalState.BranchTakenState.NotTaken AndAlso Not value.IsBad AndAlso value.IsBooleanTrue Then 450takeThisBranch = ConditionalState.BranchTakenState.Taken 466Return WithConditionals(conditionals.Push(New ConditionalState(ConditionalState.BranchTakenState.Taken, True, Nothing))) 478If takeThisBranch = ConditionalState.BranchTakenState.Taken Then 479takeThisBranch = ConditionalState.BranchTakenState.AlreadyTaken 481ElseIf takeThisBranch = ConditionalState.BranchTakenState.NotTaken Then 482takeThisBranch = ConditionalState.BranchTakenState.Taken