52 references to TypeDeclarationFlags
Microsoft.CodeAnalysis.CSharp (52)
Declarations\DeclarationTreeBuilder.cs (36)
206
SingleTypeDeclaration.
TypeDeclarationFlags
declFlags = SingleTypeDeclaration.
TypeDeclarationFlags
.None;
216
private static SingleNamespaceOrTypeDeclaration CreateImplicitClass(BoxedMemberNames memberNames, SyntaxReference container, SingleTypeDeclaration.
TypeDeclarationFlags
declFlags)
248
declFlags: (hasAwaitExpressions ? SingleTypeDeclaration.
TypeDeclarationFlags
.HasAwaitExpressions : SingleTypeDeclaration.
TypeDeclarationFlags
.None) |
249
(isIterator ? SingleTypeDeclaration.
TypeDeclarationFlags
.IsIterator : SingleTypeDeclaration.
TypeDeclarationFlags
.None) |
250
(hasReturnWithExpression ? SingleTypeDeclaration.
TypeDeclarationFlags
.HasReturnWithExpression : SingleTypeDeclaration.
TypeDeclarationFlags
.None) |
251
SingleTypeDeclaration.
TypeDeclarationFlags
.IsSimpleProgram,
291
SingleTypeDeclaration.
TypeDeclarationFlags
declFlags = SingleTypeDeclaration.
TypeDeclarationFlags
.None;
324
SingleTypeDeclaration.
TypeDeclarationFlags
declFlags)
685
var
declFlags = node.AttributeLists.Any()
686
? SingleTypeDeclaration.
TypeDeclarationFlags
.HasAnyAttributes
687
: SingleTypeDeclaration.
TypeDeclarationFlags
.None;
691
declFlags |= SingleTypeDeclaration.
TypeDeclarationFlags
.HasBaseDeclarations;
703
declFlags |= SingleTypeDeclaration.
TypeDeclarationFlags
.HasAnyNontypeMembers;
704
declFlags |= SingleTypeDeclaration.
TypeDeclarationFlags
.HasPrimaryConstructor;
710
declFlags |= SingleTypeDeclaration.
TypeDeclarationFlags
.AnyMemberHasAttributes;
802
var
declFlags = node.AttributeLists.Any()
803
? SingleTypeDeclaration.
TypeDeclarationFlags
.HasAnyAttributes
804
: SingleTypeDeclaration.
TypeDeclarationFlags
.None;
812
declFlags |= SingleTypeDeclaration.
TypeDeclarationFlags
.HasAnyNontypeMembers;
835
SingleTypeDeclaration.
TypeDeclarationFlags
declFlags = node.AttributeLists.Any() ?
836
SingleTypeDeclaration.
TypeDeclarationFlags
.HasAnyAttributes :
837
SingleTypeDeclaration.
TypeDeclarationFlags
.None;
841
declFlags |= SingleTypeDeclaration.
TypeDeclarationFlags
.HasBaseDeclarations;
885
ref SingleTypeDeclaration.
TypeDeclarationFlags
declFlags)
892
declFlags |= SingleTypeDeclaration.
TypeDeclarationFlags
.HasAnyNontypeMembers;
899
declFlags |= SingleTypeDeclaration.
TypeDeclarationFlags
.AnyMemberHasAttributes;
915
ref SingleTypeDeclaration.
TypeDeclarationFlags
declFlags,
958
declFlags |= SingleTypeDeclaration.
TypeDeclarationFlags
.AnyMemberHasExtensionMethodSyntax;
963
declFlags |= SingleTypeDeclaration.
TypeDeclarationFlags
.AnyMemberHasAttributes;
968
declFlags |= SingleTypeDeclaration.
TypeDeclarationFlags
.HasAnyNontypeMembers;
973
declFlags |= SingleTypeDeclaration.
TypeDeclarationFlags
.HasRequiredMembers;
Declarations\SingleTypeDeclaration.cs (16)
20
private readonly
TypeDeclarationFlags
_flags;
51
/// Simple program uses await expressions. Set only in conjunction with <see cref="
TypeDeclarationFlags
.IsSimpleProgram"/>
56
/// Set only in conjunction with <see cref="
TypeDeclarationFlags
.IsSimpleProgram"/>
61
/// Set only in conjunction with <see cref="
TypeDeclarationFlags
.IsSimpleProgram"/>
77
TypeDeclarationFlags
declFlags,
135
return (_flags &
TypeDeclarationFlags
.AnyMemberHasExtensionMethodSyntax) != 0;
143
return (_flags &
TypeDeclarationFlags
.HasAnyAttributes) != 0;
151
return (_flags &
TypeDeclarationFlags
.HasBaseDeclarations) != 0;
159
return (_flags &
TypeDeclarationFlags
.AnyMemberHasAttributes) != 0;
167
return (_flags &
TypeDeclarationFlags
.HasAnyNontypeMembers) != 0;
175
return (_flags &
TypeDeclarationFlags
.HasAwaitExpressions) != 0;
183
return (_flags &
TypeDeclarationFlags
.HasReturnWithExpression) != 0;
191
return (_flags &
TypeDeclarationFlags
.IsIterator) != 0;
199
return (_flags &
TypeDeclarationFlags
.IsSimpleProgram) != 0;
203
public bool HasRequiredMembers => (_flags &
TypeDeclarationFlags
.HasRequiredMembers) != 0;
205
public bool HasPrimaryConstructor => (_flags &
TypeDeclarationFlags
.HasPrimaryConstructor) != 0;