34 references to WhenTrue
Microsoft.CodeAnalysis.VisualBasic (13)
Binding\Binder_Expressions.vb (2)
1910Dim boundWhenTrueArg = BindValue(node.WhenTrue, diagnostics) 1942boundWhenTrueArg = Me.ApplyImplicitConversion(node.WhenTrue, dominantType, boundWhenTrueArg, diagnostics)
Generated\Syntax.xml.Main.Generated.vb (2)
4202Dim newWhenTrue = DirectCast(Visit(node.WhenTrue), ExpressionSyntax) 4203If node.WhenTrue IsNot newWhenTrue Then anyChanges = True
Generated\Syntax.xml.Syntax.Generated.vb (9)
25668return Update(ifKeyword, Me.OpenParenToken, Me.Condition, Me.FirstCommaToken, Me.WhenTrue, Me.SecondCommaToken, Me.WhenFalse, Me.CloseParenToken) 25686return Update(Me.IfKeyword, openParenToken, Me.Condition, Me.FirstCommaToken, Me.WhenTrue, Me.SecondCommaToken, Me.WhenFalse, Me.CloseParenToken) 25704return Update(Me.IfKeyword, Me.OpenParenToken, condition, Me.FirstCommaToken, Me.WhenTrue, Me.SecondCommaToken, Me.WhenFalse, Me.CloseParenToken) 25722return Update(Me.IfKeyword, Me.OpenParenToken, Me.Condition, firstCommaToken, Me.WhenTrue, Me.SecondCommaToken, Me.WhenFalse, Me.CloseParenToken) 25758return Update(Me.IfKeyword, Me.OpenParenToken, Me.Condition, Me.FirstCommaToken, Me.WhenTrue, secondCommaToken, Me.WhenFalse, Me.CloseParenToken) 25776return Update(Me.IfKeyword, Me.OpenParenToken, Me.Condition, Me.FirstCommaToken, Me.WhenTrue, Me.SecondCommaToken, whenFalse, Me.CloseParenToken) 25794return Update(Me.IfKeyword, Me.OpenParenToken, Me.Condition, Me.FirstCommaToken, Me.WhenTrue, Me.SecondCommaToken, Me.WhenFalse, closeParenToken) 25815Return Me.WhenTrue 25861If ifKeyword <> Me.IfKeyword OrElse openParenToken <> Me.OpenParenToken OrElse condition IsNot Me.Condition OrElse firstCommaToken <> Me.FirstCommaToken OrElse whenTrue IsNot Me.WhenTrue OrElse secondCommaToken <> Me.SecondCommaToken OrElse whenFalse IsNot Me.WhenFalse OrElse closeParenToken <> Me.CloseParenToken Then
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (3)
CastAnalyzer.vb (2)
109Dim otherExpression = If(parentTernaryConditional.WhenTrue Is expression, 111parentTernaryConditional.WhenTrue)
VisualBasicSyntaxFacts.vb (1)
1808whenTrue = conditionalExpression.WhenTrue
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (5)
MultiLineConditionalExpressionFormattingRule.vb (2)
65baseToken, conditional.WhenTrue.GetFirstToken(), conditional.WhenTrue.GetLastToken(),
VisualBasicTypeInferenceService.TypeInferrer.vb (3)
817Return GetTypes(conditional.WhenTrue) 825Return If(conditional.WhenTrue Is expressionOpt, GetTypes(conditional.WhenFalse), GetTypes(conditional.WhenTrue))
Microsoft.CodeAnalysis.VisualBasic.Features (2)
MultiLineConditionalExpressionFormattingRule.vb (2)
65baseToken, conditional.WhenTrue.GetFirstToken(), conditional.WhenTrue.GetLastToken(),
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (3)
Semantics\ConditionalExpressionsTests.vb (1)
372Assert.Equal(expectedType, CompilationUtils.GetSemanticInfoSummary(model, ifOp.WhenTrue).ConvertedType.ToTestDisplayString())
Semantics\IFOperatorTest.vb (2)
1121Dim whenTrueExpression = ternaryExpression.WhenTrue 1206Dim whenTrueExpression = ternaryExpression.WhenTrue
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (2)
Generated\Syntax.Test.xml.Generated.vb (2)
20962Assert.NotNull(objectUnderTest.whenTrue) 20966Dim withObj = objectUnderTest.WithIfKeyword(objectUnderTest.IfKeyword).WithOpenParenToken(objectUnderTest.OpenParenToken).WithCondition(objectUnderTest.Condition).WithFirstCommaToken(objectUnderTest.FirstCommaToken).WithWhenTrue(objectUnderTest.WhenTrue).WithSecondCommaToken(objectUnderTest.SecondCommaToken).WithWhenFalse(objectUnderTest.WhenFalse).WithCloseParenToken(objectUnderTest.CloseParenToken)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (6)
CastAnalyzer.vb (2)
109Dim otherExpression = If(parentTernaryConditional.WhenTrue Is expression, 111parentTernaryConditional.WhenTrue)
VisualBasicSyntaxFacts.vb (1)
1808whenTrue = conditionalExpression.WhenTrue
VisualBasicTypeInferenceService.TypeInferrer.vb (3)
817Return GetTypes(conditional.WhenTrue) 825Return If(conditional.WhenTrue Is expressionOpt, GetTypes(conditional.WhenFalse), GetTypes(conditional.WhenTrue))