File: SwiftSupport.txt

package info (click to toggle)
swiftlang 6.0.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,519,992 kB
  • sloc: cpp: 9,107,863; ansic: 2,040,022; asm: 1,135,751; python: 296,500; objc: 82,456; f90: 60,502; lisp: 34,951; pascal: 19,946; sh: 18,133; perl: 7,482; ml: 4,937; javascript: 4,117; makefile: 3,840; awk: 3,535; xml: 914; fortran: 619; cs: 573; ruby: 573
file content (57 lines) | stat: -rw-r--r-- 2,163 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
================================================
Entity Kinds
================================================

-- source.lang.swift.[decl/ref].function.free
-- source.lang.swift.[decl/ref].function.method.instance
-- source.lang.swift.[decl/ref].function.method.static
-- source.lang.swift.[decl/ref].function.constructor
-- source.lang.swift.[decl/ref].function.destructor
-- source.lang.swift.[decl/ref].function.operator
-- source.lang.swift.[decl/ref].function.subscript
-- source.lang.swift.[decl/ref].function.accessor.getter
-- source.lang.swift.[decl/ref].function.accessor.setter
-- source.lang.swift.[decl/ref].class
-- source.lang.swift.[decl/ref].struct
-- source.lang.swift.[decl/ref].enum
-- source.lang.swift.[decl/ref].enumelement
-- source.lang.swift.[decl/ref].protocol
-- source.lang.swift.[decl/ref].typealias
-- source.lang.swift.[decl/ref].var.global
-- source.lang.swift.[decl/ref].var.instance
-- source.lang.swift.[decl/ref].var.static
-- source.lang.swift.[decl/ref].var.local
-- source.lang.swift.decl.extension.struct
-- source.lang.swift.decl.extension.class
-- source.lang.swift.decl.extension.enum

source.lang.swift.decl.function.accessor.* kinds can only be reported as
child entities of a source.lang.swift.decl.var.* entity.

================================================
Indexing
================================================

--- Imports ---

The indexing request will report the imported modules under <key.dependencies>,
like this:

    {
      <key.kind>: (UID) // Module kind
      <key.name>: (string) // module name
      <key.filepath>: (string) // path to the module file
      [opt] <key.hash>: (string) // Hash associated with this module import
    }

The imported module kinds are:

-- source.lang.swift.import.module.clang
-- source.lang.swift.import.module.swift
-- source.lang.swift.import.sourcefile

The hash entry is only returned for an import of a swift module/file, not for
imports of clang modules.
If the same hash is returned for the module file, it means that the indexed
symbols will be the same, even if the module file was modified; this can be used
to avoid re-indexing of the module file.