/** * Swift language configuration for AiDex * * Node types verified against tree-sitter-swift@0.7.1 by parsing 20 real * project files. Two grammar quirks matter: * - All nominal types (class / struct / enum / protocol / extension) parse as * `class_declaration`, distinguished only by a `declaration_kind` child. * So `class_declaration` alone covers every type declaration. * - Function names are `simple_identifier` (not `identifier`), and * init/deinit names are anonymous `init`/`deinit` tokens. The extractor * therefore relies on `childForFieldName('name')` to get the name. */ /** * Swift keywords that should be filtered out during indexing */ export declare const SWIFT_KEYWORDS: Set; /** * Tree-sitter node types that represent identifiers in Swift */ export declare const SWIFT_IDENTIFIER_NODES: Set; /** * Tree-sitter node types for comments */ export declare const SWIFT_COMMENT_NODES: Set; /** * Tree-sitter node types for function declarations. * Verified over 20 files: functions, plus init/deinit which the extractor * names via the `name` field. */ export declare const SWIFT_METHOD_NODES: Set; /** * Tree-sitter node types for type declarations. * `class_declaration` covers class/struct/enum/protocol/extension in this * grammar (see header note). */ export declare const SWIFT_TYPE_NODES: Set; /** * Tree-sitter node types for property declarations */ export declare const SWIFT_PROPERTY_NODES: Set; /** * Check if a term is a Swift keyword */ export declare function isKeyword(term: string): boolean; //# sourceMappingURL=swift.d.ts.map