1 implementation of XmlNamespaces
Microsoft.CodeAnalysis (1)
Compilation\IImportScope.cs (1)
149public ImmutableArray<ImportedXmlNamespace> XmlNamespaces { get; }
64 references to XmlNamespaces
Microsoft.CodeAnalysis (1)
Compilation\IImportScope.cs (1)
15/// or <see cref="XmlNamespaces"/> the location is found through <see
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (1)
InteractiveSessionTests.cs (1)
1187Assert.Empty(scope.XmlNamespaces);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (19)
Compilation\GetImportScopesTests.cs (19)
59Assert.Empty(scopes.Single().XmlNamespaces); 75Assert.Empty(scopes.Single().XmlNamespaces); 106Assert.Empty(scopes.Single().XmlNamespaces); 134Assert.Empty(scopes.Single().XmlNamespaces); 153Assert.Empty(scopes.Single().XmlNamespaces); 248Assert.Empty(scopes.Single().XmlNamespaces); 264Assert.Empty(scopes.Single().XmlNamespaces); 295Assert.Empty(scopes.Single().XmlNamespaces); 323Assert.Empty(scopes.Single().XmlNamespaces); 342Assert.Empty(scopes.Single().XmlNamespaces); 422Assert.Empty(scopes.Single().XmlNamespaces); 441Assert.Empty(scopes.Single().XmlNamespaces); 463Assert.Empty(scopes.Single().XmlNamespaces); 484Assert.Empty(scopes.Single().XmlNamespaces); 520Assert.Empty(scopes.Single().XmlNamespaces); 542Assert.Empty(scopes.Single().XmlNamespaces); 620Assert.Empty(scopes.Single().XmlNamespaces); 656Assert.Empty(scopes.Single().XmlNamespaces); 694Assert.Empty(scopes.Single().XmlNamespaces);
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (43)
Compilation\GetImportScopesTests.vb (43)
78Assert.Empty(scopes.Single().XmlNamespaces) 95Assert.Empty(scopes.Single().XmlNamespaces) 131Assert.Empty(scopes.Single().XmlNamespaces) 157Assert.Empty(scopes.Single().XmlNamespaces) 180Assert.Empty(scopes.Single().XmlNamespaces) 205Assert.Empty(scopes.Single().XmlNamespaces) 225Assert.Empty(scopes.Single().XmlNamespaces) 242Assert.Empty(scopes.Single().XmlNamespaces) 262Assert.Empty(scopes.Single().XmlNamespaces) 283Assert.Empty(scopes.Single().XmlNamespaces) 307Assert.Empty(scopes.Single().XmlNamespaces) 331Assert.Empty(scopes.Single().XmlNamespaces) 348Assert.Single(scopes.Single().XmlNamespaces) 349Assert.Equal("http://roslyn", scopes.Single().XmlNamespaces.Single().XmlNamespace) 350Assert.True(TypeOf scopes.Single().XmlNamespaces.Single().DeclaringSyntaxReference.GetSyntax() Is XmlNamespaceImportsClauseSyntax) 351Assert.Equal("<xmlns:r1=""http://roslyn"">", scopes.Single().XmlNamespaces.Single().DeclaringSyntaxReference.GetSyntax().ToString()) 366Assert.Single(scopes.Single().XmlNamespaces) 367Assert.Equal("http://roslyn", scopes.Single().XmlNamespaces.Single().XmlNamespace) 368Assert.True(TypeOf scopes.Single().XmlNamespaces.Single().DeclaringSyntaxReference.GetSyntax() Is XmlNamespaceImportsClauseSyntax) 369Assert.Equal("<xmlns:r1=""http://roslyn"">", scopes.Single().XmlNamespaces.Single().DeclaringSyntaxReference.GetSyntax().ToString()) 388Assert.Single(scopes.Single().XmlNamespaces) 389Assert.Equal("http://roslyn", scopes.Single().XmlNamespaces.Single().XmlNamespace) 390Assert.True(TypeOf scopes.Single().XmlNamespaces.Single().DeclaringSyntaxReference.GetSyntax() Is XmlNamespaceImportsClauseSyntax) 391Assert.Equal("<xmlns:r1=""http://roslyn"">", scopes.Single().XmlNamespaces.Single().DeclaringSyntaxReference.GetSyntax().ToString()) 407Assert.Equal(2, scopes.Single().XmlNamespaces.Length) 409Assert.True(scopes.Single().XmlNamespaces.Any(Function(x) x.XmlNamespace = "http://roslyn")) 410Assert.True(TypeOf scopes.Single().XmlNamespaces.First().DeclaringSyntaxReference.GetSyntax() Is XmlNamespaceImportsClauseSyntax) 411Assert.True(scopes.Single().XmlNamespaces.Any(Function(x) x.DeclaringSyntaxReference.GetSyntax().ToString() = "<xmlns:r1=""http://roslyn"">")) 413Assert.True(scopes.Single().XmlNamespaces.Any(Function(X) X.XmlNamespace = "http://roslyn2")) 414Assert.True(TypeOf scopes.Single().XmlNamespaces.Last().DeclaringSyntaxReference.GetSyntax() Is XmlNamespaceImportsClauseSyntax) 415Assert.True(scopes.Single().XmlNamespaces.Any(Function(x) x.DeclaringSyntaxReference.GetSyntax().ToString() = "<xmlns:r2=""http://roslyn2"">")) 439Assert.Single(scopes.Single().XmlNamespaces) 440Assert.Equal("http://roslyn", scopes.Single().XmlNamespaces.Single().XmlNamespace) 441Assert.True(TypeOf scopes.Single().XmlNamespaces.Single().DeclaringSyntaxReference.GetSyntax() Is XmlNamespaceImportsClauseSyntax) 442Assert.Equal("<xmlns:r1=""http://roslyn"">", scopes.Single().XmlNamespaces.Single().DeclaringSyntaxReference.GetSyntax().ToString()) 463Assert.Single(scopes.Single().XmlNamespaces) 464Assert.Equal("http://roslyn", scopes.Single().XmlNamespaces.Single().XmlNamespace) 465Assert.True(TypeOf scopes.Single().XmlNamespaces.Single().DeclaringSyntaxReference.GetSyntax() Is XmlNamespaceImportsClauseSyntax) 466Assert.Equal("<xmlns:r1=""http://roslyn"">", scopes.Single().XmlNamespaces.Single().DeclaringSyntaxReference.GetSyntax().ToString()) 489Assert.Single(scopes.Single().XmlNamespaces) 490Assert.Equal("http://roslyn", scopes.Single().XmlNamespaces.Single().XmlNamespace) 491Assert.True(TypeOf scopes.Single().XmlNamespaces.Single().DeclaringSyntaxReference.GetSyntax() Is XmlNamespaceImportsClauseSyntax) 492Assert.Equal("<xmlns:r1=""http://roslyn"">", scopes.Single().XmlNamespaces.Single().DeclaringSyntaxReference.GetSyntax().ToString())