Since fetching queries can be expensive the queries are fetched lazily and kept in memory for the entire session.
Warning: Be aware that running the application in
Debugconfiguration will lead to worse performance. Make sure to run it inReleaseconfiguration.
let language = CodeLanguage.swift
// this call might be expensive
let query = TreeSitterModel.shared.query(for: language.id)Or access it directly
// this call might be expensive
let query = TreeSitterModel.shared.swiftQueryshared
query(for:)
bashQuerycQuerycppQuerycSharpQuerycssQuerydartQuerydockerfileQueryejsQueryelixirQueryerbQuerygoQuerygoModQueryhaskellQueryhtmlQueryjavaQueryjavascriptQueryjsdocQueryjsonQueryjsxQuerykotlinQueryluaQuerymarkdownQuerymarkdownInlineQueryobjcQueryocamlQueryocamlInterfaceQueryphpQuerypythonQueryregexQueryrubyQueryrustQueryscalaQuerysqlQueryswiftQuerytomlQuerytsxQuerytypescriptQueryyamlQueryzigQuery