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