43 references to WithGlobalImports
Microsoft.CodeAnalysis.Rebuild.UnitTests (1)
BasicDeterministicKeyBuilderTests.cs (1)
114
.
WithGlobalImports
(new[]
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.UnitTests (2)
RemoveUnnecessaryImportsTests.vb (2)
34
compilationOptions:=TestOptions.ReleaseExe.
WithGlobalImports
({GlobalImport.Parse("System")}))
1324
compilationOptions:=TestOptions.ReleaseExe.
WithGlobalImports
({GlobalImport.Parse("System"), GlobalImport.Parse("Goo"), GlobalImport.Parse("Bar")}))
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures.UnitTests (6)
Diagnostics\GenerateMethod\GenerateMethodTests.vb (4)
1587
compilationOptions:=New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).
WithGlobalImports
(GlobalImport.Parse("System"), GlobalImport.Parse("System.Collections.Generic")))
1609
compilationOptions:=New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).
WithGlobalImports
(GlobalImport.Parse("System"), GlobalImport.Parse("System.Collections.Generic")))
1635
compilationOptions:=New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).
WithGlobalImports
(GlobalImport.Parse("System")))
1657
compilationOptions:=New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).
WithGlobalImports
(GlobalImport.Parse("System")))
RemoveUnnecessaryImportsTests.vb (2)
34
compilationOptions:=TestOptions.ReleaseExe.
WithGlobalImports
({GlobalImport.Parse("System")}))
1324
compilationOptions:=TestOptions.ReleaseExe.
WithGlobalImports
({GlobalImport.Parse("System"), GlobalImport.Parse("Goo"), GlobalImport.Parse("Bar")}))
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (3)
PDB\PDBUsingTests.vb (3)
378
options:=TestOptions.ReleaseDll.
WithGlobalImports
(GlobalImport.Parse("System.Data.DataColumn")))
416
options:=TestOptions.ReleaseDll.
WithGlobalImports
(GlobalImport.Parse("E.F"), GlobalImport.Parse("Q = G.H")))
450
options:=TestOptions.ReleaseDll.
WithGlobalImports
(GlobalImport.Parse("X=N.A"), GlobalImport.Parse("System")))
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (20)
Compilation\VisualBasicCompilationOptionsTests.vb (3)
166
Assert.Equal(0, New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).
WithGlobalImports
(GlobalImport.Parse("Goo.Bar")).WithGlobalImports(DirectCast(Nothing, IEnumerable(Of GlobalImport))).GlobalImports.Count)
167
Assert.Equal(0, New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).
WithGlobalImports
(GlobalImport.Parse("Goo.Bar")).
WithGlobalImports
(DirectCast(Nothing, GlobalImport())).GlobalImports.Count)
SourceGeneration\GeneratorDriverTests_Attributes_SimpleName.vb (17)
788
options:=TestOptions.DebugDll.
WithGlobalImports
(GlobalImport.Parse("A = XAttribute")),
816
options:=TestOptions.DebugDll.
WithGlobalImports
(GlobalImport.Parse("AAttribute = XAttribute")), parseOptions:=parseOptions)
845
options:=TestOptions.DebugDll.
WithGlobalImports
(GlobalImport.Parse("AAttribute = XAttribute")), parseOptions:=parseOptions)
874
options:=TestOptions.DebugDll.
WithGlobalImports
(GlobalImport.Parse("AAttribute = XAttribute")), parseOptions:=parseOptions)
902
options:=TestOptions.DebugDll.
WithGlobalImports
(GlobalImport.Parse("A = XAttribute")),
929
options:=TestOptions.DebugDll.
WithGlobalImports
(GlobalImport.Parse("AAttribute = XAttribute")), parseOptions:=parseOptions)
1012
options:=TestOptions.DebugDll.
WithGlobalImports
(GlobalImport.Parse("AAttribute = XAttribute")), parseOptions:=parseOptions)
1039
options:=TestOptions.DebugDll.
WithGlobalImports
(GlobalImport.Parse("AAttribute = XAttribute")), parseOptions:=parseOptions)
1150
options:=TestOptions.DebugDll.
WithGlobalImports
(
1190
options:=TestOptions.DebugDll.
WithGlobalImports
(
1232
options:=TestOptions.DebugDll.
WithGlobalImports
(
1278
options:=TestOptions.DebugDll.
WithGlobalImports
(
1295
driver = driver.RunGenerators(compilation.WithOptions(compilation.Options.
WithGlobalImports
(
1317
options:=TestOptions.DebugDll.
WithGlobalImports
(GlobalImport.Parse("BAttribute = AAttribute")), parseOptions:=parseOptions)
1396
options:=TestOptions.DebugDll.
WithGlobalImports
(
1438
options:=TestOptions.DebugDll.
WithGlobalImports
(
1490
options:=TestOptions.DebugDll.
WithGlobalImports
(
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (10)
SymbolsTests\Source\MethodTests.vb (1)
1592
</compilation>, references:={TestMetadata.Net40.SystemCore, TestMetadata.Net40.System}, options:=TestOptions.ReleaseDll.
WithGlobalImports
(GlobalImport.Parse("AnExt=System.Runtime.CompilerServices.ExtensionAttribute")))
SymbolsTests\Source\NamedTypeTests.vb (6)
129
}, options:=TestOptions.ReleaseDll.
WithGlobalImports
(New GlobalImport(
144
}, options:=TestOptions.ReleaseDll.
WithGlobalImports
(New GlobalImport(
159
}, options:=TestOptions.ReleaseDll.
WithGlobalImports
(New GlobalImport(
178
}, options:=TestOptions.ReleaseDll.
WithGlobalImports
(New GlobalImport(
200
}, options:=TestOptions.ReleaseDll.
WithGlobalImports
(New GlobalImport(
222
}, options:=TestOptions.ReleaseDll.
WithGlobalImports
(New GlobalImport(
SymbolsTests\Source\TypeTests.vb (3)
3588
</compilation>, options:=TestOptions.DebugDll.
WithGlobalImports
(GlobalImport.Parse("alias1=System.Runtime.InteropServices.typeIdentifierattribute")))
3614
</compilation>, options:=TestOptions.DebugDll.
WithGlobalImports
(GlobalImport.Parse("alias1=System.Runtime.InteropServices.typeIdentifierattribute")))
3632
</compilation>, options:=TestOptions.DebugDll.
WithGlobalImports
(GlobalImport.Parse("alias1=System.Runtime.InteropServices.typeIdentifierattribute")))
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (1)
Parser\ParseXml.vb (1)
4502
CreateCompilationWithMscorlib40({""}, options:=TestOptions.ReleaseDll.
WithGlobalImports
(GlobalImport.Parse(import))).VerifyDiagnostics()