Port MissingAllowUnsafeBlocksCompilationOptionAnalyzer to ComputeSharp

このコミットが含まれているのは:
Sergio Pedri committed 2023-10-10 23:27:33 +02:00
1 親 0804b66ca2
コミット 6fc3c0d971
5ファイル変更
+63 -2

検索条件に一致するファイルはありません

+5 -1
ファイルの表示
@@ -1804,7 +1804,11 @@ public class DiagnosticsTests
let reference = MetadataReference.CreateFromFile(assembly.Location)
select reference;
CSharpCompilation compilation = CSharpCompilation.Create("original", new SyntaxTree[] { syntaxTree }, references, new CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary));
CSharpCompilation compilation = CSharpCompilation.Create(
"original",
new SyntaxTree[] { syntaxTree },
references,
new CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary, allowUnsafe: true));
IIncrementalGenerator generator = new TGenerator();