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