mirror of
https://github.com/github/codeql.git
synced 2025-12-18 01:33:15 +01:00
Tree-sitter: fix formatting
This commit is contained in:
@@ -127,10 +127,7 @@ pub fn populate_parent_folders(
|
|||||||
}
|
}
|
||||||
|
|
||||||
/** Get the label for the given location, defining it a global ID if it doesn't exist yet. */
|
/** Get the label for the given location, defining it a global ID if it doesn't exist yet. */
|
||||||
fn global_location(
|
fn global_location(writer: &mut trap::Writer, location: trap::Location) -> trap::Label {
|
||||||
writer: &mut trap::Writer,
|
|
||||||
location: trap::Location,
|
|
||||||
) -> trap::Label {
|
|
||||||
let (loc_label, fresh) = writer.global_id(&format!(
|
let (loc_label, fresh) = writer.global_id(&format!(
|
||||||
"loc,{{{}}},{},{},{},{}",
|
"loc,{{{}}},{},{},{},{}",
|
||||||
location.file_label,
|
location.file_label,
|
||||||
@@ -157,10 +154,7 @@ fn global_location(
|
|||||||
|
|
||||||
/** Get the label for the given location, creating it as a fresh ID if we haven't seen the location
|
/** Get the label for the given location, creating it as a fresh ID if we haven't seen the location
|
||||||
* yet for this file. */
|
* yet for this file. */
|
||||||
fn location_label(
|
fn location_label(writer: &mut trap::Writer, location: trap::Location) -> trap::Label {
|
||||||
writer: &mut trap::Writer,
|
|
||||||
location: trap::Location,
|
|
||||||
) -> trap::Label {
|
|
||||||
let (loc_label, fresh) = writer.location_label(location);
|
let (loc_label, fresh) = writer.location_label(location);
|
||||||
if fresh {
|
if fresh {
|
||||||
writer.add_tuple(
|
writer.add_tuple(
|
||||||
|
|||||||
Reference in New Issue
Block a user