KDevelop5/DUChainIdentities: Difference between revisions

    From KDE TechBase
    (Add more (all?) PHP identity types)
    No edit summary
    (12 intermediate revisions by 3 users not shown)
    Line 1: Line 1:
    This is a list of ranges used by various plugins for their Declaration and Type identities.
    This is a list of Identity values used by various plugins for their Declarations and Types.
     
    {|class="wikitable"
    !Category
    !ID
    !Use
    |-
    | Platform || 1 || <tt>DUChainBase</tt>
    |-
    | Platform || 2 || <tt>DUContext</tt>
    |-
    | Platform || 4 || <tt>TopDUContext</tt>
    |-
    | Platform || 6 || <tt>AliasDeclaration</tt>
    |-
    | Platform || 7 || <tt>Declaration</tt>
    |-
    | Platform || 9 || <tt>ClassMemberDeclaration</tt>
    |-
    | Platform || 10 || <tt>ForwardDeclaration</tt>
    |-
    | Platform || 11 || <tt>ParsingEnvironmentFile</tt>
    |-
    | Platform || 12 || <tt>FunctionDeclaration</tt>
    |-
    | Platform || 13 || <tt>NamespaceAliasDeclaration</tt>
    |-
    | Platform || 14 || <tt>ClassFunctionDeclaration</tt>
    |-
    | Platform || 15 || <tt>Problem</tt>
    |-
    | Platform || 17 || <tt>ClassDeclaration</tt>
    |-
    | C++ || 18 || <tt>TemplateParameterDeclaration</tt>
    |-
    | Platform || 21 || <tt>FunctionDefinition</tt>
    |-
    | Ruby || 42 || <tt>MethodDeclaration</tt>
    |-
    | Ruby || 43 || <tt>RubyDUContext<DUContext></tt> (aka <tt>RubyNormalDUContext</tt>)
    |-
    | Ruby || 44 || <tt>ModuleDeclaration</tt>
    |-
    | Ruby || 45 || <tt>RubyDUContext<TopDUContext></tt> (aka <tt>RubyTopDUContext</tt>)
    |-
    | Ruby || 47 || <tt>VariableDeclaration</tt>
    |-
    | C++ || 52 || <tt>CppDUContext<TopDUContext></tt> (aka <tt>CppNormalDUContext</tt>)
    |-
    | PHP || 53 || <tt>PhpDUContext<DUContext></tt> (aka <tt>PhpNormalDUContext</tt>)
    |-
    | C++ || 54 || <tt>CppDUContext<DUContext></tt> (aka <tt>CppTopDUContext</tt>)
    |-
    | PHP || 55 || <tt>PhpDUContext<TopDUContext></tt> (aka <tt>PhpTopDUContext</tt>)
    |-
    | C++ || 56 || <tt>SpecialTemplateDeclaration<AliasDeclaration></tt>
    |-
    | C++ || 57 || <tt>SpecialTemplateDeclaration<Declaration></tt>
    |-
    | C++ || 59 || <tt>SpecialTemplateDeclaration<ClassMemberDeclaration></tt>
    |-
    | C++ || 60 || <tt>SpecialTemplateDeclaration<ForwardDeclaration></tt>
    |-
    | C++ || 62 || <tt>SpecialTemplateDeclaration<FunctionDeclaration></tt>
    |-
    | C++ || 64 || <tt>SpecialTemplateDeclaration<ClassFunctionDeclaration></tt>
    |-
    | C++ || 67 || <tt>SpecialTemplateDeclaration<ClassDeclaration></tt>
    |-
    | C++ || 68 || <tt>SpecialTemplateDeclaration<ClassDeclaration></tt>
    |-
    | C++ || 71 || <tt>SpecialTemplateDeclaration<FunctionDefinition></tt>
    |-
    | C++ || 73 || <tt>EnvironmentFile</tt>
    |-
    | C++ || 74 || <tt>QtFunctionDeclaration</tt>
    |-
    | C++ || 75 || <tt>QPropertyDeclaration</tt>
    |-
    | PHP ||  80 || <tt><s>ConstantDeclaration</s></tt> (not used anymore)
    |-
    | PHP ||  81 || <tt><s>ClassDeclaration</s></tt> (not used anymore)
    |-
    | PHP ||  83 || <tt>VariableDeclaration</tt>
    |-
    | PHP ||  84 || <tt>ClassMethodDeclaration</tt>
    |-
    | PHP ||  85 || <tt>ClassDeclaration</tt>
    |-
    | PHP ||  86 || <tt>FunctionDeclaration</tt>
    |-
    | PHP ||  87 || <tt>NamespaceDeclaration</tt>
    |-
    | PHP ||  88 || <tt>NamespaceAliasDeclaration</tt>
    |-
    | XML || 90 || <tt>ElementDeclaration</tt>
    |-
    | XML || 91 || <tt>ImportDeclaration</tt>
    |-
    | Python || 100 || <tt>PythonDUContext<TopDUContext></tt> (aka <tt>PythonTopDUContext</tt>)
    |-
    | Python || 101 || <tt>PythonDUContext<DUContext></tt> (aka <tt>PythonNormalDUContext</tt>)
    |-
    | QML/JS || 110 || <tt>QmlDUContext</tt>
    |-
    | C++ || 124 || <tt>SpecialTemplateDeclaration<QtFunctionDeclaration></tt>
    |-
    | Python || 125 || <tt>ClassDeclaration</tt>
    |-
    | Python || 126 || <tt>FunctionDeclaration</tt>
    |-
    | Python || 127 || <tt><s>ClassFunctionDeclaration</s></tt> (not used anymore)
    |}


    Please edit this page as appropriate, it's probably not complete like this.


    {|class="wikitable"
    {|class="wikitable"
    |+ Types
    !Category
    !Category
    !ID
    !ID
    !Use
    |-
    | Platform || 1 || <tt>AbstractType</tt>
    |-
    | Platform || 2 || <tt>IntegralType</tt>
    |-
    | Platform || 3 || <tt>PointerType</tt>
    |-
    | Platform || 4 || <tt>ReferenceType</tt>
    |-
    | Platform || 5 || <tt>FunctionType</tt>
    |-
    | Platform || 6 || <tt>StructureType</tt>
    |-
    | Platform || 7 || <tt>ArrayType</tt>
    |-
    |-
    | C++ / KDevPlatform || 0-39
    | Platform || 8 || <tt>DelayedType</tt>
    |-
    |-
    | Java || 30-40
    | Platform || 9 || <tt>TypeAliasType</tt>
    |-
    |-
    | C++ || 40-49
    | Platform || 14 || <tt>ConstantIntegralType</tt>
    |-
    |-
    | rowspan="3" | PHP
    | C++ || 18 || <tt>CppClassType</tt>
    | 50 || <tt>IntegralTypeExtended</tt>
    |-
    |-
    | 51 || <tt>StructureType</tt>
    | Platform || 20 || <tt>EnumeratorType</tt>
    |-
    |-
    | 52-59 || not used yet
    | Platform || 21 || <tt>EnumerationType</tt>
    |-
    |-
    | Ruby, Python || 60-69
    | C++ || 23 || <tt>CppTemplateParameterType</tt>
    |-
    |-
    | C++ || 70-79
    | Platform || 39 || <tt>UnsureType</tt>
    |-
    |-
    | rowspan="10" | PHP
    | Ruby || 41 || <tt>ClassType</tt>
    | 80 || <tt>ConstantDeclaration</tt> (not used anymore)
    |-
    |-
    | 81 || <tt>ClassDeclaration</tt> (not used anymore)
    | C++ || 42 || <tt>PtrToMemberType</tt>
    |-
    |-
    | 82 || apparently never used
    | PHP || 50 || <tt>IntegralTypeExtended</tt>
    |-
    |-
    | 83 || <tt>VariableDeclaration</tt>
    | PHP || 51 || <tt>StructureType</tt>
    |-
    |-
    | 84 || <tt>ClassMethodDeclaration</tt>
    | Platform || 57 || <tt>MapType</tt>
    |-
    |-
    | 85 || <tt>ClassDeclaration</tt>
    | Platform || 58 || <tt>ListType</tt>
    |-
    |-
    | 86 || <tt>FunctionDeclaration</tt>
    | Python || 59 || <tt>IndexedContainer</tt>
    |-
    |-
    | 87 || <tt>NamespaceDeclaration</tt>
    | Python || 60 || <tt>IntegralTypeExtended</tt>
    |-
    |-
    | 88 || <tt>NamespaceAliasDeclaration</tt>
    | <del>Python</del> || <del>61</del> || <del><tt>VariableLengthContainer</tt></del> (now split into ListType and MapType)
    |-
    |-
    | 89 || unused
    | Python || 62 || <tt>HintedType</tt>
    |-
    |-
    | XML || 90-99
    | Python || 63 || <tt>UnsureType</tt>
    |}
    |}

    Revision as of 21:19, 5 June 2014

    This is a list of Identity values used by various plugins for their Declarations and Types.

    Category ID Use
    Platform 1 DUChainBase
    Platform 2 DUContext
    Platform 4 TopDUContext
    Platform 6 AliasDeclaration
    Platform 7 Declaration
    Platform 9 ClassMemberDeclaration
    Platform 10 ForwardDeclaration
    Platform 11 ParsingEnvironmentFile
    Platform 12 FunctionDeclaration
    Platform 13 NamespaceAliasDeclaration
    Platform 14 ClassFunctionDeclaration
    Platform 15 Problem
    Platform 17 ClassDeclaration
    C++ 18 TemplateParameterDeclaration
    Platform 21 FunctionDefinition
    Ruby 42 MethodDeclaration
    Ruby 43 RubyDUContext<DUContext> (aka RubyNormalDUContext)
    Ruby 44 ModuleDeclaration
    Ruby 45 RubyDUContext<TopDUContext> (aka RubyTopDUContext)
    Ruby 47 VariableDeclaration
    C++ 52 CppDUContext<TopDUContext> (aka CppNormalDUContext)
    PHP 53 PhpDUContext<DUContext> (aka PhpNormalDUContext)
    C++ 54 CppDUContext<DUContext> (aka CppTopDUContext)
    PHP 55 PhpDUContext<TopDUContext> (aka PhpTopDUContext)
    C++ 56 SpecialTemplateDeclaration<AliasDeclaration>
    C++ 57 SpecialTemplateDeclaration<Declaration>
    C++ 59 SpecialTemplateDeclaration<ClassMemberDeclaration>
    C++ 60 SpecialTemplateDeclaration<ForwardDeclaration>
    C++ 62 SpecialTemplateDeclaration<FunctionDeclaration>
    C++ 64 SpecialTemplateDeclaration<ClassFunctionDeclaration>
    C++ 67 SpecialTemplateDeclaration<ClassDeclaration>
    C++ 68 SpecialTemplateDeclaration<ClassDeclaration>
    C++ 71 SpecialTemplateDeclaration<FunctionDefinition>
    C++ 73 EnvironmentFile
    C++ 74 QtFunctionDeclaration
    C++ 75 QPropertyDeclaration
    PHP 80 ConstantDeclaration (not used anymore)
    PHP 81 ClassDeclaration (not used anymore)
    PHP 83 VariableDeclaration
    PHP 84 ClassMethodDeclaration
    PHP 85 ClassDeclaration
    PHP 86 FunctionDeclaration
    PHP 87 NamespaceDeclaration
    PHP 88 NamespaceAliasDeclaration
    XML 90 ElementDeclaration
    XML 91 ImportDeclaration
    Python 100 PythonDUContext<TopDUContext> (aka PythonTopDUContext)
    Python 101 PythonDUContext<DUContext> (aka PythonNormalDUContext)
    QML/JS 110 QmlDUContext
    C++ 124 SpecialTemplateDeclaration<QtFunctionDeclaration>
    Python 125 ClassDeclaration
    Python 126 FunctionDeclaration
    Python 127 ClassFunctionDeclaration (not used anymore)


    Types
    Category ID Use
    Platform 1 AbstractType
    Platform 2 IntegralType
    Platform 3 PointerType
    Platform 4 ReferenceType
    Platform 5 FunctionType
    Platform 6 StructureType
    Platform 7 ArrayType
    Platform 8 DelayedType
    Platform 9 TypeAliasType
    Platform 14 ConstantIntegralType
    C++ 18 CppClassType
    Platform 20 EnumeratorType
    Platform 21 EnumerationType
    C++ 23 CppTemplateParameterType
    Platform 39 UnsureType
    Ruby 41 ClassType
    C++ 42 PtrToMemberType
    PHP 50 IntegralTypeExtended
    PHP 51 StructureType
    Platform 57 MapType
    Platform 58 ListType
    Python 59 IndexedContainer
    Python 60 IntegralTypeExtended
    Python 61 VariableLengthContainer (now split into ListType and MapType)
    Python 62 HintedType
    Python 63 UnsureType