51 references to HasDiagnostic
Microsoft.CodeAnalysis.VisualBasic (21)
Binding\Binder_Attributes.vb (1)
542If result.HasDiagnostic Then
Binding\Binder_Expressions.vb (3)
3064If lookupResult.HasDiagnostic AndAlso 3355If lookupResult.HasDiagnostic Then 3558If result.HasDiagnostic Then
Binding\Binder_Invocation.vb (1)
528Debug.Assert(result.HasSymbol OrElse Not result.HasDiagnostic)
Binding\Binder_Lookup.vb (4)
1000If result.HasDiagnostic Then 1029If result.HasDiagnostic Then 1049Debug.Assert(Not result.HasDiagnostic) 1059If tmpResult.HasDiagnostic OrElse Not result.HasSymbol Then
Binding\Binder_Statements.vb (1)
4287Debug.Assert(result.HasDiagnostic)
Binding\Binder_Symbols.vb (5)
263If lookupResult.HasDiagnostic Then 523If lookupResult.HasDiagnostic Then 956ElseIf lookupResult.HasDiagnostic AndAlso Not reportedAnError Then 1002Debug.Assert(lookupResult.HasDiagnostic) 1047ElseIf lookupResult.HasDiagnostic AndAlso Not reportedAnError Then
Binding\Binder_XmlLiterals.vb (1)
1004If(result.HasDiagnostic,
Compilation\SemanticModel.vb (1)
1971If result.HasDiagnostic Then
Lowering\AsyncRewriter\AsyncRewriter.vb (2)
565Me.Diagnostics.Add(If(result.HasDiagnostic, 623Me.Diagnostics.Add(If(result.HasDiagnostic,
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter.vb (1)
849Diagnostics.Add(If(result.HasDiagnostic,
Symbols\Source\OverloadingHelper.vb (1)
163If result.Kind = LookupResultKind.Ambiguous AndAlso result.HasDiagnostic AndAlso TypeOf result.Diagnostic Is AmbiguousSymbolDiagnostic Then
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (30)
Binding\LookupTests.vb (30)
45Assert.False(r1.HasDiagnostic) 54Assert.False(_r2.HasDiagnostic) 62Assert.True(r3.HasDiagnostic) 74Assert.True(r4.HasDiagnostic) 85Assert.True(r5.HasDiagnostic) 95Assert.False(r6.HasDiagnostic) 104Assert.False(r7.HasDiagnostic) 114Assert.False(r9.HasDiagnostic) 123Assert.True(r10.HasDiagnostic) 138Assert.True(r11.HasDiagnostic) 150Assert.False(r12.HasDiagnostic) 159Assert.True(r13.HasDiagnostic) 171Assert.True(r14.HasDiagnostic) 184Assert.True(r15.HasDiagnostic) 202Assert.False(r19.HasDiagnostic) 206Assert.False(r19.HasDiagnostic) 213Assert.False(r19.HasDiagnostic) 218Assert.True(r19.HasDiagnostic) 329Assert.False(lr.HasDiagnostic) 337Assert.False(lr.HasDiagnostic) 345Assert.False(lr.HasDiagnostic) 353Assert.False(lr.HasDiagnostic) 361Assert.True(lr.HasDiagnostic) 372Assert.False(lr.HasDiagnostic) 383Assert.False(lr.HasDiagnostic) 1507Assert.False(lr.HasDiagnostic) 1512Assert.True(lr.HasDiagnostic) 'error BC30469: Reference to a non-shared member requires an object reference. 1518Assert.False(lr.HasDiagnostic) 1523Assert.False(lr.HasDiagnostic) 1532Assert.False(lr.HasDiagnostic)