74 references to Parse
Microsoft.CodeAnalysis.Rebuild (1)
VisualBasicCompilationFactory.cs (1)
68globalImports = GlobalImport.Parse(globalNamespacesString.Split(';'));
Microsoft.CodeAnalysis.VisualBasic (1)
GlobalImport.vb (1)
59Return Parse({importedNames})(0)
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (12)
CodeGen\CodeGenVBCore.vb (1)
2775Dim compilationOptions = TestOptions.ReleaseExe.WithGlobalImports(GlobalImport.Parse({"System", "Microsoft.VisualBasic"}))
PDB\PDBNamespaceScopes.vb (3)
93Dim globalImports = GlobalImport.Parse( 265Dim globalImports = GlobalImport.Parse( 459Dim globalImports = GlobalImport.Parse(
XmlLiteralTests.vb (8)
1134Dim options = TestOptions.ReleaseExe.WithGlobalImports(GlobalImport.Parse({"<xmlns=""default1"">", "<xmlns:p=""p1"">", "<xmlns:q=""q1"">"})) 1239Dim options = TestOptions.ReleaseExe.WithGlobalImports(GlobalImport.Parse({"<xmlns=""http://roslyn"">", "<xmlns:p=""http://roslyn/p"">"})) 2644Dim options = TestOptions.ReleaseDll.WithGlobalImports(GlobalImport.Parse({"<xmlns:p=<%= <p:x/>.@y %>>"})) 2868Assert.Throws(Of ArgumentException)(Sub() TestOptions.ReleaseDll.WithGlobalImports(GlobalImport.Parse({"<xmlns:p=""..."""}))) 2869Assert.Throws(Of ArgumentException)(Sub() TestOptions.ReleaseDll.WithGlobalImports(GlobalImport.Parse({"<xmlns:p=""..."">, <xmlns:q=""..."""}))) 4156Dim options = TestOptions.ReleaseDll.WithGlobalImports(GlobalImport.Parse({"<xmlns:p=""http://roslyn"">"})) 4336Dim options = TestOptions.ReleaseExe.WithGlobalImports(GlobalImport.Parse({"<xmlns:r=""http://roslyn/"">", "<xmlns:s=""http://roslyn/"">"})) 4531Dim [imports] = GlobalImport.Parse({String.Format("<xmlns:p=""{0}"">", identifier)})
Microsoft.CodeAnalysis.VisualBasic.ExpressionEvaluator.ExpressionCompiler.UnitTests (3)
ImportDebugInfoTests.vb (3)
142Dim options As VisualBasicCompilationOptions = TestOptions.ReleaseDll.WithRootNamespace("root").WithGlobalImports(GlobalImport.Parse( 386Dim options As VisualBasicCompilationOptions = TestOptions.ReleaseDll.WithRootNamespace("root").WithGlobalImports(GlobalImport.Parse( 545Dim options As VisualBasicCompilationOptions = TestOptions.ReleaseDll.WithRootNamespace("root").WithGlobalImports(GlobalImport.Parse(
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (18)
Binding\BindingErrorTests.vb (5)
3390Dim options = TestOptions.ReleaseDll.WithGlobalImports(GlobalImport.Parse({"<xmlns:p1=""..."">"})) 12657Dim options = TestOptions.ReleaseDll.WithGlobalImports(GlobalImport.Parse({"<xmlns:p=""http://roslyn/p"">"})) 12804Dim options = TestOptions.ReleaseDll.WithGlobalImports(GlobalImport.Parse({"<xmlns:p=<%= M1.F %>>"})) 12833Dim options = TestOptions.ReleaseDll.WithGlobalImports(GlobalImport.Parse({"<xmlns=""http://www.w3.org/XML/1998/namespace"">", "<xmlns:p1=""http://www.w3.org/2000/xmlns/"">"})) 12869Dim options = TestOptions.ReleaseDll.WithGlobalImports(GlobalImport.Parse({"<xmlns="""">", "<xmlns:p="""">"}))
Binding\GenericsTests.vb (1)
396compilationOptions:=New VisualBasicCompilationOptions(OutputKind.ConsoleApplication, globalImports:=GlobalImport.Parse({"System"})))
Compilation\CompilationAPITests.vb (1)
300Dim ops1 = TestOptions.ReleaseExe.WithGlobalImports(GlobalImport.Parse({"System", "Microsoft.VisualBasic"})).WithRootNamespace("")
Compilation\VisualBasicCompilationOptionsTests.vb (2)
348Dim opt = New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithGlobalImports(GlobalImport.Parse(importStrings)) 357Assert.Throws(Of ArgumentException)(Function() GlobalImport.Parse(importStrings))
ExtensionMethods\SemanticModelTests.vb (9)
400</compilation>, options:=TestOptions.ReleaseExe.WithGlobalImports(GlobalImport.Parse({"NS4.Module7", "NS4"}))) 527</compilation>, options:=TestOptions.ReleaseExe.WithGlobalImports(GlobalImport.Parse({"NS4.Module7", "NS4"}))) 648</compilation>, options:=TestOptions.ReleaseExe.WithGlobalImports(GlobalImport.Parse({"NS4.Module7", "NS4"}))) 771</compilation>, options:=TestOptions.ReleaseExe.WithGlobalImports(GlobalImport.Parse({"NS4.Module7", "NS4"}))) 900</compilation>, options:=TestOptions.ReleaseExe.WithGlobalImports(GlobalImport.Parse({"NS4.Module7", "NS4"}))) 1033</compilation>, options:=TestOptions.ReleaseExe.WithGlobalImports(GlobalImport.Parse({"NS4.Module7", "NS4"}))) 1159</compilation>, options:=TestOptions.ReleaseExe.WithGlobalImports(GlobalImport.Parse({"NS4.Module7", "NS4"}))) 1275</compilation>, options:=TestOptions.ReleaseExe.WithGlobalImports(GlobalImport.Parse({"NS4.Module7", "NS4"}))) 1463</compilation>, options:=TestOptions.ReleaseExe.WithGlobalImports(GlobalImport.Parse({"alias1 = System"})))
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (37)
SymbolsTests\ExtensionMethods\LookupAndInvocation.vb (9)
124options:=TestOptions.ReleaseExe.WithGlobalImports(GlobalImport.Parse({"NS4.Module7", "NS4"})), 235options:=TestOptions.ReleaseExe.WithGlobalImports(GlobalImport.Parse({"NS4.Module7", "NS4"})), 345options:=TestOptions.ReleaseExe.WithGlobalImports(GlobalImport.Parse({"NS4.Module7", "NS4"})), 454options:=TestOptions.ReleaseExe.WithGlobalImports(GlobalImport.Parse({"NS4.Module7", "NS4"})), 562options:=TestOptions.ReleaseExe.WithGlobalImports(GlobalImport.Parse({"NS4.Module7", "NS4"})), 669options:=TestOptions.ReleaseExe.WithGlobalImports(GlobalImport.Parse({"NS4.Module7", "NS4"})), 775options:=TestOptions.ReleaseExe.WithGlobalImports(GlobalImport.Parse({"NS4.Module7", "NS4"})), 880options:=TestOptions.ReleaseExe.WithGlobalImports(GlobalImport.Parse({"NS4.Module7", "NS4"})), 984TestOptions.ReleaseExe.WithGlobalImports(GlobalImport.Parse({"NS4.Module7", "NS4"})))
SymbolsTests\Source\TypeBindingTests.vb (4)
603Dim options = TestOptions.ReleaseDll.WithGlobalImports(GlobalImport.Parse( 721Dim options = TestOptions.ReleaseExe.WithGlobalImports(GlobalImport.Parse( 1045Dim options = TestOptions.ReleaseDll.WithGlobalImports(GlobalImport.Parse( 1133Dim options = TestOptions.ReleaseExe.WithGlobalImports(GlobalImport.Parse(
SymbolsTests\SymbolErrorTests.vb (8)
5997Dim options = TestOptions.ReleaseExe.WithGlobalImports(GlobalImport.Parse({"N1", "N2"})) 6027Dim options = TestOptions.ReleaseExe.WithGlobalImports(GlobalImport.Parse({"N1", "N2"})) 6107Dim options = TestOptions.ReleaseDll.WithGlobalImports(GlobalImport.Parse({"<xmlns=""default1"">", "<xmlns=""default2"">", "<xmlns:p=""p1"">", "<xmlns:q=""q"">", "<xmlns:p=""p2"">"})) 9480GlobalImport.Parse( 9503GlobalImport.Parse( 15217Dim options = TestOptions.ReleaseDll.WithGlobalImports(GlobalImport.Parse({"N.A(Of Object).B(Of String)", "C=N.A(Of N.B).B(Of Object)"})) 19706Dim globalImports = GlobalImport.Parse({"Alias2 = System", "N12 = Alias2"}) 23894Dim options = TestOptions.ReleaseDll.WithGlobalImports(GlobalImport.Parse({"GlobEnumsClass"}))
UsedAssembliesTests.vb (16)
1985GlobalImport.Parse({"N1"}), 1996GlobalImport.Parse({"N1.C1"}), 2007GlobalImport.Parse({"<xmlns:db=""http://example.org/database"">"})) 2015GlobalImport.Parse({"alias1 = N1.C1"}), 2026GlobalImport.Parse({"alias1 = N1"}), 3228GlobalImport.Parse({"C4(Of I3)"})) 3237GlobalImport.Parse({"alias1 = C3(Of I3)"})) 3663TestOptions.DebugDll.WithGlobalImports(GlobalImport.Parse({"C2.C1"})). 3675TestOptions.DebugDll.WithGlobalImports(GlobalImport.Parse({"alias1 = C2.C1"})). 4031options:=TestOptions.DebugDll.WithGlobalImports(GlobalImport.Parse({"N1.N2"}))), 4035options:=TestOptions.DebugDll.WithGlobalImports(GlobalImport.Parse({"N1.N2"}))), 4039options:=TestOptions.DebugDll.WithGlobalImports(GlobalImport.Parse({"N1"}))), 4043options:=TestOptions.DebugDll.WithGlobalImports(GlobalImport.Parse({"N1"}))), 4218options:=TestOptions.DebugDll.WithGlobalImports(GlobalImport.Parse({"N1.N2.E0"}))), 4222options:=TestOptions.DebugDll.WithGlobalImports(GlobalImport.Parse({"N1.N2.E0"}))), 4282Assert.Throws(Of System.ArgumentException)(Sub() GlobalImport.Parse({"global"})) ' System.ArgumentException : Error in project-level import 'global' at 'global' : 'Global' not allowed in this context; identifier expected.
Microsoft.CodeAnalysis.VisualBasic.Workspaces (1)
Serialization\VisualBasicOptionsSerializationService.vb (1)
89Dim globalImports = GlobalImport.Parse(reader.ReadArray(Of String)())
Microsoft.CodeAnalysis.VisualBasic.Workspaces.UnitTests (1)
CodeGeneration\AddImportsTests.vb (1)
42Dim gi = GlobalImport.Parse(globalImports)