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