26 references to Diagnostic
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (4)
ErrorHandling.vb (4)
446
compilation.VerifyDiagnostics(
Diagnostic
(ERRID.ERR_TryAndOnErrorDoNotMix, ExpectedOutput),
449
Diagnostic
(ERRID.ERR_TryAndOnErrorDoNotMix, ExpectedOutput2)
477
compilation.VerifyEmitDiagnostics(
Diagnostic
(ERRID.ERR_PlatformDoesntSupport, ExpectedOutput).WithArguments("Unstructured exception handling").WithLocation(2, 9))
533
compilation.VerifyEmitDiagnostics(
Diagnostic
(ERRID.ERR_PlatformDoesntSupport, ExpectedOutput).WithArguments("Like operator").WithLocation(5, 21))
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (19)
Diagnostics\DiagnosticAnalyzerTests.vb (18)
297
comp.VerifyAnalyzerDiagnostics({analyzer}, Nothing, Nothing,
Diagnostic
("XX001", <![CDATA[Public Module ThisModule]]>))
342
compilation.VerifyAnalyzerDiagnostics({analyzer}, Nothing, Nothing,
Diagnostic
("XX001", <![CDATA[C]]>))
392
Diagnostic
("XX001", <![CDATA[N]]>),
393
Diagnostic
("XX001", <![CDATA[C]]>))
458
compilation.VerifyAnalyzerDiagnostics({analyzer}, Nothing, Nothing,
Diagnostic
("CodeBlockDiagnostic", <![CDATA[Public Sub Method()]]>))
534
Diagnostic
("FieldSymbolDiagnostic", <![CDATA[X]]>))
556
Diagnostic
("FieldSymbolDiagnostic", <![CDATA[Field]]>))
602
Diagnostic
("FieldDeclarationDiagnostic", <![CDATA[Dim x, y As Integer]]>),
603
Diagnostic
("FieldDeclarationDiagnostic", <![CDATA[Dim z As Integer]]>),
604
Diagnostic
("FieldDeclarationDiagnostic", <![CDATA[Dim x2 = 0, y2 = 0]]>),
605
Diagnostic
("FieldDeclarationDiagnostic", <![CDATA[Dim z2 = 0]]>))
626
Diagnostic
(VisualBasicNamespaceDeclarationAnalyzer.DiagnosticId, <![CDATA[Namespace Goo.Bar.GooBar]]>))
659
Diagnostic
(VisualBasicCodeBlockObjectCreationAnalyzer.DiagnosticDescriptor.Id, <![CDATA[New C1()]]>),
660
Diagnostic
(VisualBasicCodeBlockObjectCreationAnalyzer.DiagnosticDescriptor.Id, <![CDATA[New C2()]]>),
661
Diagnostic
(VisualBasicCodeBlockObjectCreationAnalyzer.DiagnosticDescriptor.Id, <![CDATA[New C3()]]>))
727
Diagnostic
(CodeBlockActionAnalyzer.CodeBlockTopLevelRule.Id, <![CDATA[M]]>).WithArguments("M"),
728
Diagnostic
(CodeBlockActionAnalyzer.CodeBlockPerCompilationRule.Id, <![CDATA[M]]>).WithArguments("M"))
749
Diagnostic
(CodeBlockActionAnalyzer.CodeBlockTopLevelRule.Id, <![CDATA[M]]>).WithArguments("M"))
Diagnostics\OperationAnalyzerTests.vb (1)
1326
Diagnostic
(NoneOperationTestAnalyzer.NoneOperationDescriptor.Id, <![CDATA[Public Sub Barney
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (3)
Parser\ParseDeclarationTests.vb (1)
690
Diagnostic
(ERRID.ERR_AutoPropertyCantHaveParams, <![CDATA[(
Parser\ParseXml.vb (2)
1999
Diagnostic
(ERRID.ERR_MissingXmlEndTag, <![CDATA[<<%= x +
2015
Diagnostic
(ERRID.ERR_MissingXmlEndTag, <![CDATA[<<%= x +