41 references to IsInTypeOnlyContext
Microsoft.CodeAnalysis.CSharp (9)
Binder\Binder.IdentifierUsedAsValueFinder.cs (2)
76
if (SyntaxFacts.
IsInTypeOnlyContext
(id) &&
156
if (SyntaxFacts.
IsInTypeOnlyContext
(expression) &&
Binder\Binder_Symbols.cs (1)
939
if (SyntaxFacts.
IsInTypeOnlyContext
(node))
Compilation\CSharpSemanticModel.cs (1)
1618
if (parentExpr != null && !(parentExpr.Parent is XmlNameAttributeSyntax) && !SyntaxFacts.
IsInTypeOnlyContext
(parentExpr) && !binder.IsInsideNameof)
Compilation\SyntaxTreeSemanticModel.cs (1)
345
else if (SyntaxFacts.
IsInTypeOnlyContext
(type))
Compiler\MethodCompiler.cs (2)
2089
if (SyntaxFacts.
IsInTypeOnlyContext
(expression) &&
2129
if (SyntaxFacts.
IsInTypeOnlyContext
(id) &&
Syntax\SyntaxExtensions.cs (1)
199
return SyntaxFacts.
IsInTypeOnlyContext
(typeNode) && IsInContextWhichNeedsDynamicAttribute(typeNode);
Syntax\SyntaxFacts.cs (1)
261
return
IsInTypeOnlyContext
(node);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTokenExtensions.cs\SyntaxTokenExtensions.cs (1)
695
SyntaxFacts.
IsInTypeOnlyContext
(typedParent) &&
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (2)
Semantics\PatternMatchingTestBase.cs (2)
105
Assert.True(SyntaxFacts.
IsInTypeOnlyContext
(typeSyntax));
272
Assert.True(SyntaxFacts.
IsInTypeOnlyContext
(typeSyntax));
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (28)
Semantics\OutVarTests.cs (1)
1039
Assert.True(SyntaxFacts.
IsInTypeOnlyContext
(typeSyntax));
Semantics\RefFieldTests.cs (27)
11582
Assert.True(SyntaxFacts.
IsInTypeOnlyContext
(type));
11583
Assert.True(SyntaxFacts.
IsInTypeOnlyContext
(type.SkipScoped(out _)));
11584
Assert.True(SyntaxFacts.
IsInTypeOnlyContext
(type.SkipScoped(out _).SkipRef()));
11716
Assert.True(SyntaxFacts.
IsInTypeOnlyContext
(type));
11717
Assert.True(SyntaxFacts.
IsInTypeOnlyContext
(type.SkipScoped(out _)));
11718
Assert.True(SyntaxFacts.
IsInTypeOnlyContext
(type.SkipScoped(out _).SkipRef()));
11905
Assert.True(SyntaxFacts.
IsInTypeOnlyContext
(type));
11906
Assert.True(SyntaxFacts.
IsInTypeOnlyContext
(type.SkipScoped(out _)));
11907
Assert.True(SyntaxFacts.
IsInTypeOnlyContext
(type.SkipScoped(out _).SkipRef()));
11937
Assert.True(SyntaxFacts.
IsInTypeOnlyContext
(type));
11938
Assert.True(SyntaxFacts.
IsInTypeOnlyContext
(type.SkipScoped(out _)));
11939
Assert.True(SyntaxFacts.
IsInTypeOnlyContext
(type.SkipScoped(out _).SkipRef()));
12316
Assert.True(SyntaxFacts.
IsInTypeOnlyContext
(type));
12317
Assert.True(SyntaxFacts.
IsInTypeOnlyContext
(type.SkipScoped(out _)));
12318
Assert.True(SyntaxFacts.
IsInTypeOnlyContext
(type.SkipScoped(out _).SkipRef()));
12350
Assert.True(SyntaxFacts.
IsInTypeOnlyContext
(type));
12351
Assert.True(SyntaxFacts.
IsInTypeOnlyContext
(type.SkipScoped(out _)));
12352
Assert.True(SyntaxFacts.
IsInTypeOnlyContext
(type.SkipScoped(out _).SkipRef()));
14116
Assert.True(SyntaxFacts.
IsInTypeOnlyContext
(type));
14117
Assert.True(SyntaxFacts.
IsInTypeOnlyContext
(type.SkipScoped(out _)));
14118
Assert.True(SyntaxFacts.
IsInTypeOnlyContext
(type.SkipScoped(out _).SkipRef()));
26303
Assert.True(SyntaxFacts.
IsInTypeOnlyContext
(type));
26304
Assert.True(SyntaxFacts.
IsInTypeOnlyContext
(type.SkipScoped(out _)));
26305
Assert.True(SyntaxFacts.
IsInTypeOnlyContext
(type.SkipScoped(out _).SkipRef()));
26393
Assert.True(SyntaxFacts.
IsInTypeOnlyContext
(type));
26394
Assert.True(SyntaxFacts.
IsInTypeOnlyContext
(type.SkipScoped(out _)));
26395
Assert.True(SyntaxFacts.
IsInTypeOnlyContext
(type.SkipScoped(out _).SkipRef()));
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTokenExtensions.cs\SyntaxTokenExtensions.cs (1)
695
SyntaxFacts.
IsInTypeOnlyContext
(typedParent) &&