Changeset View
Changeset View
Standalone View
Standalone View
duchain/helper.h
Show First 20 Lines • Show All 45 Lines • ▼ Show 20 Line(s) | |||||
46 | enum DeclarationType { | 46 | enum DeclarationType { | ||
47 | ClassDeclarationType, | 47 | ClassDeclarationType, | ||
48 | FunctionDeclarationType, | 48 | FunctionDeclarationType, | ||
49 | ConstantDeclarationType, | 49 | ConstantDeclarationType, | ||
50 | GlobalVariableDeclarationType, | 50 | GlobalVariableDeclarationType, | ||
51 | NamespaceDeclarationType | 51 | NamespaceDeclarationType | ||
52 | }; | 52 | }; | ||
53 | 53 | | |||
54 | enum DeclarationScope { | ||||
55 | GlobalScope, | ||||
56 | LocalScope | ||||
57 | }; | ||||
58 | | ||||
54 | KDEVPHPDUCHAIN_EXPORT bool isMatch(KDevelop::Declaration* declaration, DeclarationType declarationType); | 59 | KDEVPHPDUCHAIN_EXPORT bool isMatch(KDevelop::Declaration* declaration, DeclarationType declarationType); | ||
55 | 60 | | |||
56 | KDEVPHPDUCHAIN_EXPORT bool isClassTypehint(GenericTypeHintAst* parameterType, EditorIntegrator *editor); | 61 | KDEVPHPDUCHAIN_EXPORT bool isClassTypehint(GenericTypeHintAst* parameterType, EditorIntegrator *editor); | ||
57 | 62 | | |||
58 | KDEVPHPDUCHAIN_EXPORT KDevelop::DeclarationPointer findDeclarationImportHelper(KDevelop::DUContext* currentContext, | 63 | KDEVPHPDUCHAIN_EXPORT KDevelop::DeclarationPointer findDeclarationImportHelper(KDevelop::DUContext* currentContext, | ||
59 | const KDevelop::QualifiedIdentifier& id, | 64 | const KDevelop::QualifiedIdentifier& id, | ||
60 | DeclarationType declarationType); | 65 | DeclarationType declarationType); | ||
61 | 66 | | |||
Show All 37 Lines |