提交 31478ab5 编写于 作者: N Neal Gafter

Update DiagnosticAnalyzerDriverAllInOne per syntax changes

上级 8fa387e8
......@@ -30,6 +30,10 @@ public async Task DiagnosticAnalyzerDriverAllInOne()
symbolKindsWithNoCodeBlocks.Add(SymbolKind.Property);
symbolKindsWithNoCodeBlocks.Add(SymbolKind.NamedType);
// PROTOTYPE(patterns2): Add examples of all the new pattern types once supported.
var syntaxKinds = new HashSet<SyntaxKind>();
syntaxKinds.Add(SyntaxKind.SubpatternElement);
syntaxKinds.Add(SyntaxKind.DeconstructionPattern);
var analyzer = new CSharpTrackingDiagnosticAnalyzer();
using (var workspace = TestWorkspace.CreateCSharp(source, TestOptions.Regular))
......@@ -39,7 +43,7 @@ public async Task DiagnosticAnalyzerDriverAllInOne()
await DiagnosticProviderTestUtilities.GetAllDiagnosticsAsync(analyzer, document, new Text.TextSpan(0, document.GetTextAsync().Result.Length));
analyzer.VerifyAllAnalyzerMembersWereCalled();
analyzer.VerifyAnalyzeSymbolCalledForAllSymbolKinds();
analyzer.VerifyAnalyzeNodeCalledForAllSyntaxKinds(new HashSet<SyntaxKind>());
analyzer.VerifyAnalyzeNodeCalledForAllSyntaxKinds(syntaxKinds);
analyzer.VerifyOnCodeBlockCalledForAllSymbolAndMethodKinds(symbolKindsWithNoCodeBlocks, true);
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册