Constant umm::constants::IMPORT_QUERY
source · pub const IMPORT_QUERY: &str = "(import_declaration \n (\n [\t\n \t(scoped_identifier) @path \t\n \t(identifier) @path\n ]\n (asterisk)? @asterisk\n )\n)";
Expand description
Tree-sitter query that returns imports made
path
: java name of the import as it appears in the source code.asterisk
: true if the import path ends in an asterisk