203 references to QualifiedNameSyntax
Microsoft.CodeAnalysis.CSharp (43)
Binder\Binder.IdentifierUsedAsValueFinder.cs (2)
60case QualifiedNameSyntax qualifiedName: 230case QualifiedNameSyntax qualifiedName when qualifiedName.Left == id:
Binder\Binder_AnonymousTypes.cs (1)
158expr = ((QualifiedNameSyntax)expr).Right;
Binder\Binder_Expressions.cs (3)
730return BindQualifiedName((QualifiedNameSyntax)node, diagnostics); 1314private BoundExpression BindQualifiedName(QualifiedNameSyntax node, BindingDiagnosticBag diagnostics) 6369(left.Parent is QualifiedNameSyntax qualifiedName && qualifiedName.Left == left) ||
Binder\Binder_Invocation.cs (1)
1500return ((QualifiedNameSyntax)expression).Right.GetLocation();
Binder\Binder_Statements.cs (1)
1740return ((QualifiedNameSyntax)syntax).Right;
Binder\Binder_Symbols.cs (2)
427var node = (QualifiedNameSyntax)syntax;
Binder\BinderFactory.BinderFactoryVisitor.cs (2)
873if (name is QualifiedNameSyntax dotted) 877Debug.Assert(name is not QualifiedNameSyntax);
Binder\TypeofBinder.cs (1)
93public override void VisitQualifiedName(QualifiedNameSyntax node)
Binder\WithCrefTypeParametersBinder.cs (2)
88QualifiedNameSyntax qualifiedNameSyntax = (QualifiedNameSyntax)typeSyntax;
Binder\WithExternAndUsingAliasesBinder.cs (1)
215while (name is QualifiedNameSyntax dotted)
Compilation\CSharpSemanticModel.cs (2)
305var qualified = (QualifiedNameSyntax)expression;
Compilation\SyntaxTreeSemanticModel.cs (2)
1735var qn = (QualifiedNameSyntax)name;
Compiler\MethodCompiler.cs (2)
2113case QualifiedNameSyntax qualifiedName: 2170while (parent is QualifiedNameSyntax qualifiedName)
CSharpDeclarationComputer.cs (1)
93name = ((QualifiedNameSyntax)name).Left;
Declarations\DeclarationTreeBuilder.cs (5)
423while (name is QualifiedNameSyntax dotted) 549var qualifiedName = (QualifiedNameSyntax)name; 565var qualifiedName = (QualifiedNameSyntax)name;
Symbols\NamespaceSymbol.cs (2)
306var qn = (QualifiedNameSyntax)name;
Syntax\NameSyntax.cs (3)
26/// If called on an instance of <see cref="QualifiedNameSyntax"/> returns the value of the <see cref="QualifiedNameSyntax.Right"/> property. 49name = ((QualifiedNameSyntax)name).Left;
Syntax\SyntaxExtensions.cs (2)
471var qualifiedNameSyntax = (QualifiedNameSyntax)type;
Syntax\SyntaxFactory.cs (5)
2062var qualifiedName = (QualifiedNameSyntax)parent; 2139if (((QualifiedNameSyntax)parent).Right == node) 2279var qn = (QualifiedNameSyntax)expression;
Syntax\SyntaxFacts.cs (3)
39var qn = (QualifiedNameSyntax)parent; 258return ((QualifiedNameSyntax)parent).Left == node;
Microsoft.CodeAnalysis.CSharp.CodeStyle (20)
CSharpRemoveUnnecessaryDiscardDesignationDiagnosticAnalyzer.cs (1)
60while (typeSyntax is QualifiedNameSyntax qualifiedName)
CSharpSyntaxFacts.cs (7)
821var qualified = (QualifiedNameSyntax)node; 1001if (parent is QualifiedNameSyntax qualifiedName) 1143return (node as QualifiedNameSyntax)?.Right ?? 1149return (node as QualifiedNameSyntax)?.Left ?? 1696var qualifiedName = (QualifiedNameSyntax)node;
ExpressionSyntaxExtensions.cs (4)
55=> expression?.Parent is QualifiedNameSyntax qualifiedName && qualifiedName.Right == expression; 97=> (expression?.Parent) is QualifiedNameSyntax qualifiedName && qualifiedName.Left == expression; 130else if (expression is QualifiedNameSyntax qualifiedName) 683if (node is QualifiedNameSyntax qualified && qualified.Right != null)
NameSyntaxComparer.cs (2)
87var dottedName = (QualifiedNameSyntax)name;
NullableImpactingSpanWalker.cs (2)
75if (node?.Parent is QualifiedNameSyntax qualifiedName 114while (node.Parent is QualifiedNameSyntax qualifiedName
ParenthesizedExpressionSyntaxExtensions.cs (1)
534if (name is QualifiedNameSyntax qualifiedName)
SemanticModelExtensions.cs (2)
71var qn = (QualifiedNameSyntax)expression;
SimpleNameSyntaxExtensions.cs (1)
27return ((QualifiedNameSyntax)name.Parent).Left;
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (9)
CSharpDeclareAsNullableCodeFixProvider.cs (1)
306case QualifiedNameSyntax qualified:
ITypeSymbolExtensions.TypeSyntaxGeneratorVisitor.cs (1)
207public static QualifiedNameSyntax CreateSystemObject()
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs\SyntaxTreeExtensions.cs (3)
2914return ((QualifiedNameSyntax)name.Parent).Right == name; 3020else if (token.Parent is QualifiedNameSyntax qualifiedName && 3027else if (token.Parent is QualifiedNameSyntax qualifiedName1 &&
NameSyntaxExtensions.cs (2)
35nameSyntax = ((QualifiedNameSyntax)nameSyntax).Right; 62if (nameSyntax.CheckParent<QualifiedNameSyntax>(q => q.Right == nameSyntax) ||
NameSyntaxIterator.cs (2)
29var qualifiedName = currentNode as QualifiedNameSyntax;
Microsoft.CodeAnalysis.CSharp.ExpressionEvaluator.ExpressionCompiler (1)
SyntaxHelpers.cs (1)
309if (nameSyntax is QualifiedNameSyntax qualifiedNameSyntax)
Microsoft.CodeAnalysis.CSharp.Features (24)
AddImport\CSharpAddImportFeatureService.cs (4)
207if (node is QualifiedNameSyntax qn) 216private static SimpleNameSyntax GetLeftMostSimpleName(QualifiedNameSyntax qn) 226qn = left as QualifiedNameSyntax; 548if (nameSyntax is QualifiedNameSyntax qualifiedName)
CodeFixes\GenerateType\GenerateTypeCodeFixProvider.cs (1)
50case QualifiedNameSyntax _:
CodeRefactorings\SyncNamespace\CSharpChangeNamespaceService.cs (1)
397case QualifiedNameSyntax qualifiedNameNode:
Completion\CompletionProviders\AwaitCompletionProvider.cs (2)
70if (parent is QualifiedNameSyntax { Parent: LocalFunctionStatementSyntax localFunction } qualifiedName && 90QualifiedNameSyntax qualifiedName => qualifiedName.Left,
ConvertProgram\ConvertProgramTransform_TopLevelStatements.cs (1)
91if (name is QualifiedNameSyntax qualifiedName)
CSharpDeclarationComputer.cs (1)
93name = ((QualifiedNameSyntax)name).Left;
CSharpDeclareAsNullableCodeFixProvider.cs (1)
306case QualifiedNameSyntax qualified:
CSharpRemoveUnnecessaryDiscardDesignationDiagnosticAnalyzer.cs (1)
60while (typeSyntax is QualifiedNameSyntax qualifiedName)
Diagnostics\Analyzers\CSharpUnboundIdentifiersDiagnosticAnalyzer.cs (1)
16internal sealed class CSharpUnboundIdentifiersDiagnosticAnalyzer : UnboundIdentifiersDiagnosticAnalyzerBase<SyntaxKind, SimpleNameSyntax, QualifiedNameSyntax, IncompleteMemberSyntax>
Diagnostics\Analyzers\TypeSyntaxSimplifierWalker.cs (1)
143public override void VisitQualifiedName(QualifiedNameSyntax node)
DocumentationComments\CSharpDocumentationCommentSnippetService.cs (1)
216if (catchClause.Declaration.Type is QualifiedNameSyntax
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.ExpressionCodeGenerator.cs (1)
82unqualifiedName = ((QualifiedNameSyntax)expression).Right;
FullyQualify\CSharpFullyQualifyService.cs (1)
47var qualifiedName = SyntaxFactory.QualifiedName(SyntaxFactory.ParseName(containerName), newName)
GenerateType\CSharpGenerateTypeService.cs (5)
271if (simpleName.Parent is QualifiedNameSyntax parent) 306if (simpleName.Parent is not null and not QualifiedNameSyntax) 313if (nameOrMemberAccessExpression is QualifiedNameSyntax) 319if (nameOrMemberAccessExpression.Parent is not null and QualifiedNameSyntax) 646if (name is QualifiedNameSyntax qualifiedName)
NullableImpactingSpanWalker.cs (2)
75if (node?.Parent is QualifiedNameSyntax qualifiedName 114while (node.Parent is QualifiedNameSyntax qualifiedName
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Semantics\BindingTests.cs (1)
3476var node2 = ((QualifiedNameSyntax)node1).Left;
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (21)
Compilation\GetImportScopesTests.cs (2)
685Assert.True(scopes.Single().Imports.Any(i => i.DeclaringSyntaxReference!.GetSyntax() is UsingDirectiveSyntax { Name: QualifiedNameSyntax { Right: IdentifierNameSyntax { Identifier.Text: nameof(System.IO) } } })); 691Assert.True(scopes.Single().Aliases.Any(i => i.DeclaringSyntaxReferences.Single().GetSyntax() is UsingDirectiveSyntax { Name: QualifiedNameSyntax { Right: IdentifierNameSyntax { Identifier.Text: nameof(System.Threading) } } }));
Compilation\GetSemanticInfoTests.cs (2)
4438var qualifiedSyntax = (QualifiedNameSyntax)fieldSyntax.Declaration.Type;
Compilation\SemanticModelAPITests.cs (2)
798var info = model.GetSymbolInfo((xDecl.Declaration.Type as QualifiedNameSyntax).Right); 2725var right = ((QualifiedNameSyntax)speculatedTypeSyntax).Right;
Compilation\SemanticModelGetDeclaredSymbolAPITests.cs (6)
2496var type = (QualifiedNameSyntax)localDecl.Declaration.Type; 2533var type = (QualifiedNameSyntax)localDecl.Declaration.Type; 2592var type = (QualifiedNameSyntax)methodDecl.ReturnType;
Compilation\SemanticModelGetSemanticInfoTests.cs (3)
7134var semanticInfo = GetSemanticInfoForTest<QualifiedNameSyntax>(sourceCode); 9120var semanticInfo = GetSemanticInfoForTest<QualifiedNameSyntax>(sourceCode); 10213var semanticInfo = GetSemanticInfoForTest<QualifiedNameSyntax>(sourceCode);
DocumentationComments\CrefTests.cs (2)
3000var containingTypeSyntax = (QualifiedNameSyntax)crefSyntax.Container;
Symbols\Source\ExternAliasTests.cs (4)
358var base1 = a1.BaseList.Types[0].Type as QualifiedNameSyntax; 481var usingTargetSyntax = (QualifiedNameSyntax)usingSyntax.Name;
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (17)
Generated\Syntax.Test.xml.Generated.cs (5)
9992private static QualifiedNameSyntax GenerateQualifiedName() 10718var node = GenerateQualifiedName(); 10723var newNode = node.WithLeft(node.Left).WithDotToken(node.DotToken).WithRight(node.Right); 13801var oldNode = GenerateQualifiedName(); 13817var oldNode = GenerateQualifiedName();
IncrementalParsing\NodeValidators.cs (3)
54Assert.IsType<QualifiedNameSyntax>(nameTree); 55var dottedName = nameTree as QualifiedNameSyntax;
Parsing\NameParsingTests.cs (2)
169name = ((QualifiedNameSyntax)name).Left; 198name = ((QualifiedNameSyntax)name).Left;
Syntax\SyntaxNodeTests.cs (7)
54var qname = (QualifiedNameSyntax)SyntaxFactory.ParseName("A.B"); 55var qname2 = qname.WithRight(SyntaxFactory.IdentifierName("C")); 1834var qualified = SyntaxFactory.QualifiedName(goo, dot, bar); 1844var qualifiedGeneric = SyntaxFactory.QualifiedName(goo, dot, generic); 1859var aliasQualified = SyntaxFactory.QualifiedName(alias, dot, bar); 1864var aliasQualifiedGeneric = SyntaxFactory.QualifiedName(alias, dot, generic);
Microsoft.CodeAnalysis.CSharp.Workspaces (57)
Classification\ClassificationHelpers.cs (1)
300while (parent is QualifiedNameSyntax)
CodeGeneration\CSharpSyntaxGenerator.cs (2)
3404var qname = (QualifiedNameSyntax)expression;
CSharpSyntaxFacts.cs (7)
821var qualified = (QualifiedNameSyntax)node; 1001if (parent is QualifiedNameSyntax qualifiedName) 1143return (node as QualifiedNameSyntax)?.Right ?? 1149return (node as QualifiedNameSyntax)?.Left ?? 1696var qualifiedName = (QualifiedNameSyntax)node;
Editing\CSharpImportAdder.cs (1)
33case QualifiedNameSyntax name:
FindSymbols\CSharpDeclaredSymbolInfoFactoryService.cs (5)
38QualifiedNameSyntax, 480protected override NameSyntax GetLeft(QualifiedNameSyntax node) 483protected override NameSyntax GetRight(QualifiedNameSyntax node) 648else if (type is QualifiedNameSyntax qualifiedName) 727case QualifiedNameSyntax qualifiedNameNode:
ITypeSymbolExtensions.TypeSyntaxGeneratorVisitor.cs (1)
207public static QualifiedNameSyntax CreateSystemObject()
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs\ExpressionSyntaxExtensions.cs (4)
55=> expression?.Parent is QualifiedNameSyntax qualifiedName && qualifiedName.Right == expression; 97=> (expression?.Parent) is QualifiedNameSyntax qualifiedName && qualifiedName.Left == expression; 130else if (expression is QualifiedNameSyntax qualifiedName) 683if (node is QualifiedNameSyntax qualified && qualified.Right != null)
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs\SyntaxTreeExtensions.cs (3)
2914return ((QualifiedNameSyntax)name.Parent).Right == name; 3020else if (token.Parent is QualifiedNameSyntax qualifiedName && 3027else if (token.Parent is QualifiedNameSyntax qualifiedName1 &&
NameSyntaxComparer.cs (2)
87var dottedName = (QualifiedNameSyntax)name;
NameSyntaxExtensions.cs (2)
35nameSyntax = ((QualifiedNameSyntax)nameSyntax).Right; 62if (nameSyntax.CheckParent<QualifiedNameSyntax>(q => q.Right == nameSyntax) ||
NameSyntaxIterator.cs (2)
29var qualifiedName = currentNode as QualifiedNameSyntax;
ParenthesizedExpressionSyntaxExtensions.cs (1)
534if (name is QualifiedNameSyntax qualifiedName)
Recommendations\CSharpRecommendationServiceRunner.cs (1)
131QualifiedNameSyntax qualifiedName => GetSymbolsOffOfName(qualifiedName.Left),
Rename\CSharpRenameRewriterLanguageService.cs (1)
456identifierToken = ((QualifiedNameSyntax)expressionOfInvocation).Right.Identifier;
SemanticModelExtensions.cs (2)
71var qn = (QualifiedNameSyntax)expression;
SimpleNameSyntaxExtensions.cs (1)
27return ((QualifiedNameSyntax)name.Parent).Left;
Simplification\CSharpSimplificationService.Expander.cs (4)
398((QualifiedNameSyntax)rewrittenname).Left 400SyntaxFactory.NameMemberCref(((QualifiedNameSyntax)rewrittenname).Right, parameters) 510var qualifiedReplacement = (QualifiedNameSyntax)replacement;
Simplification\Reducers\CSharpNameReducer.Rewriter.cs (1)
60public override SyntaxNode VisitQualifiedName(QualifiedNameSyntax node)
Simplification\Reducers\CSharpVarReducer.Rewriter.cs (1)
59public override SyntaxNode VisitQualifiedName(QualifiedNameSyntax node) => ProcessTypeSyntax(node);
Simplification\Simplifiers\AbstractCSharpSimplifier.cs (3)
102if (node is QualifiedNameSyntax or AliasQualifiedNameSyntax) 108if (node is QualifiedNameSyntax qualifiedNameNode) 153if (node is QualifiedNameSyntax qualifiedName)
Simplification\Simplifiers\ExpressionSimplifier.cs (2)
297var qualifiedName = (QualifiedNameSyntax)expression;
Simplification\Simplifiers\NameSimplifier.cs (10)
60if (name is QualifiedNameSyntax qualifiedName) 172var qualifiedName3 = (QualifiedNameSyntax)name; 214if (name is QualifiedNameSyntax qualifiedName2) 280genericName = (GenericNameSyntax)((QualifiedNameSyntax)name).Right; 328replacementNode = ((QualifiedNameSyntax)name).Right.WithLeadingTrivia(name.GetLeadingTrivia()); 329issueSpan = ((QualifiedNameSyntax)name).Left.Span; 376else if (name.Parent is QualifiedNameSyntax qualifiedParent && qualifiedParent.Left == name && 383var qualifiedReplacement = SyntaxFactory.QualifiedName(replacementName, qualifiedParent.Right); 581if (name is QualifiedNameSyntax qualifiedName)
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (4)
CodeGeneration\SyntaxGeneratorTests.cs (4)
242VerifySyntax<QualifiedNameSyntax>(Generator.QualifiedName(Generator.IdentifierName("x"), Generator.IdentifierName("y")), "x.y"); 243VerifySyntax<QualifiedNameSyntax>(Generator.DottedName("x.y"), "x.y"); 252VerifySyntax<QualifiedNameSyntax>(Generator.WithTypeArguments(Generator.DottedName("x.y"), Generator.IdentifierName("z")), "x.y<z>"); 317VerifySyntax<QualifiedNameSyntax>(Generator.TypeExpression(genericType), "global::System.Collections.Generic.IEnumerable<T>");
Microsoft.VisualStudio.LanguageServices.CSharp (6)
CodeModel\CSharpCodeModelService.CodeModelEventCollector.cs (4)
733var oldQualifiedName = (QualifiedNameSyntax)oldName; 734var newQualifiedName = (QualifiedNameSyntax)newName;
CodeModel\CSharpCodeModelService.NodeNameGenerator.cs (2)
31AppendName(builder, ((QualifiedNameSyntax)name).Left); 56AppendName(builder, ((QualifiedNameSyntax)name).Right);