19 references to HasAncestor
Microsoft.CodeAnalysis.CSharp.Features (15)
Completion\KeywordRecommenders\BoolKeywordRecommender.cs (1)
25
(context.IsGenericTypeArgumentContext && !context.TargetToken.GetRequiredParent().
HasAncestor
<XmlCrefAttributeSyntax>()) ||
Completion\KeywordRecommenders\ByteKeywordRecommender.cs (1)
25
(context.IsGenericTypeArgumentContext && !context.TargetToken.GetRequiredParent().
HasAncestor
<XmlCrefAttributeSyntax>()) ||
Completion\KeywordRecommenders\CharKeywordRecommender.cs (1)
25
(context.IsGenericTypeArgumentContext && !context.TargetToken.GetRequiredParent().
HasAncestor
<XmlCrefAttributeSyntax>()) ||
Completion\KeywordRecommenders\DecimalKeywordRecommender.cs (1)
25
(context.IsGenericTypeArgumentContext && !context.TargetToken.GetRequiredParent().
HasAncestor
<XmlCrefAttributeSyntax>()) ||
Completion\KeywordRecommenders\DoubleKeywordRecommender.cs (1)
25
(context.IsGenericTypeArgumentContext && !context.TargetToken.GetRequiredParent().
HasAncestor
<XmlCrefAttributeSyntax>()) ||
Completion\KeywordRecommenders\FloatKeywordRecommender.cs (1)
25
(context.IsGenericTypeArgumentContext && !context.TargetToken.GetRequiredParent().
HasAncestor
<XmlCrefAttributeSyntax>()) ||
Completion\KeywordRecommenders\IntKeywordRecommender.cs (1)
25
(context.IsGenericTypeArgumentContext && !context.TargetToken.GetRequiredParent().
HasAncestor
<XmlCrefAttributeSyntax>()) ||
Completion\KeywordRecommenders\LongKeywordRecommender.cs (1)
25
(context.IsGenericTypeArgumentContext && !context.TargetToken.GetRequiredParent().
HasAncestor
<XmlCrefAttributeSyntax>()) ||
Completion\KeywordRecommenders\ObjectKeywordRecommender.cs (1)
25
(context.IsGenericTypeArgumentContext && !context.TargetToken.GetRequiredParent().
HasAncestor
<XmlCrefAttributeSyntax>()) ||
Completion\KeywordRecommenders\SByteKeywordRecommender.cs (1)
25
(context.IsGenericTypeArgumentContext && !context.TargetToken.GetRequiredParent().
HasAncestor
<XmlCrefAttributeSyntax>()) ||
Completion\KeywordRecommenders\ShortKeywordRecommender.cs (1)
25
(context.IsGenericTypeArgumentContext && !context.TargetToken.GetRequiredParent().
HasAncestor
<XmlCrefAttributeSyntax>()) ||
Completion\KeywordRecommenders\StringKeywordRecommender.cs (1)
27
(context.IsGenericTypeArgumentContext && !context.TargetToken.GetRequiredParent().
HasAncestor
<XmlCrefAttributeSyntax>()) ||
Completion\KeywordRecommenders\UIntKeywordRecommender.cs (1)
25
(context.IsGenericTypeArgumentContext && !context.TargetToken.GetRequiredParent().
HasAncestor
<XmlCrefAttributeSyntax>()) ||
Completion\KeywordRecommenders\ULongKeywordRecommender.cs (1)
25
(context.IsGenericTypeArgumentContext && !context.TargetToken.GetRequiredParent().
HasAncestor
<XmlCrefAttributeSyntax>()) ||
Completion\KeywordRecommenders\UShortKeywordRecommender.cs (1)
32
(context.IsGenericTypeArgumentContext && !context.TargetToken.GetRequiredParent().
HasAncestor
<XmlCrefAttributeSyntax>()) ||
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Editing\CSharpImportAdder.cs (1)
251
isConflicting = node.
HasAncestor
<AnonymousFunctionExpressionSyntax>();
Microsoft.VisualStudio.LanguageServices.CSharp (3)
CodeModel\CSharpCodeModelService.cs (3)
1119
if (node.
HasAncestor
<InterfaceDeclarationSyntax>() ||
1120
node.
HasAncestor
<EnumDeclarationSyntax>())
1135
if (node.
HasAncestor
<BaseTypeDeclarationSyntax>())