Changeset View
Changeset View
Standalone View
Standalone View
language/duchain/declaration.h
Show First 20 Lines • Show All 48 Lines • ▼ Show 20 Line(s) | |||||
49 | * \note A du-context can be freely edited as long as it's parent-context is zero. | 49 | * \note A du-context can be freely edited as long as it's parent-context is zero. | ||
50 | * In the moment the parent-context is set, the context may only be edited when it | 50 | * In the moment the parent-context is set, the context may only be edited when it | ||
51 | * is allowed to edited it's top-level context (@see TopLevelContext::inDUChain()) | 51 | * is allowed to edited it's top-level context (@see TopLevelContext::inDUChain()) | ||
52 | */ | 52 | */ | ||
53 | class KDEVPLATFORMLANGUAGE_EXPORT Declaration : public DUChainBase | 53 | class KDEVPLATFORMLANGUAGE_EXPORT Declaration : public DUChainBase | ||
54 | { | 54 | { | ||
55 | public: | 55 | public: | ||
56 | /// Access types | 56 | /// Access types | ||
57 | enum AccessPolicy { | 57 | enum AccessPolicy : uchar { | ||
58 | Public /**< a public declaration */, | 58 | Public /**< a public declaration */, | ||
59 | Protected /**< a protected declaration */, | 59 | Protected /**< a protected declaration */, | ||
60 | Private /**< a private declaration */, | 60 | Private /**< a private declaration */, | ||
61 | DefaultAccess /**<a declaration with default access; in java, only package-level access. */ | 61 | DefaultAccess /**<a declaration with default access; in java, only package-level access. */ | ||
62 | }; | 62 | }; | ||
63 | /// Enumeration of the types of declarations | 63 | /// Enumeration of the types of declarations | ||
64 | enum Kind { | 64 | enum Kind : uchar { | ||
65 | Type /**< A type is declared, like a class-declaration or function-declaration, or a typedef("class MyClass {};") */, | 65 | Type /**< A type is declared, like a class-declaration or function-declaration, or a typedef("class MyClass {};") */, | ||
66 | Instance /**< An instance of a type is declared("MyClass m;") */, | 66 | Instance /**< An instance of a type is declared("MyClass m;") */, | ||
67 | NamespaceAlias/**< This is a namespace-alias. You can safely cast this object to NamespaceAliasDeclaration. */, | 67 | NamespaceAlias/**< This is a namespace-alias. You can safely cast this object to NamespaceAliasDeclaration. */, | ||
68 | Alias, /**<This is an alias-declaration. You can safely cast this object to AliasDeclaration. */ | 68 | Alias, /**<This is an alias-declaration. You can safely cast this object to AliasDeclaration. */ | ||
69 | Namespace, /**< Declaration of a namespace. */ | 69 | Namespace, /**< Declaration of a namespace. */ | ||
70 | Import, /**< Declaration marks the Import of a file. */ | 70 | Import, /**< Declaration marks the Import of a file. */ | ||
71 | Macro /**< Declaration of a macro such as "#define FOO 1". */ | 71 | Macro /**< Declaration of a macro such as "#define FOO 1". */ | ||
72 | }; | 72 | }; | ||
▲ Show 20 Lines • Show All 500 Lines • Show Last 20 Lines |