mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +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. */
|
||||
fn global_location(
|
||||
writer: &mut trap::Writer,
|
||||
location: trap::Location,
|
||||
) -> trap::Label {
|
||||
fn global_location(writer: &mut trap::Writer, location: trap::Location) -> trap::Label {
|
||||
let (loc_label, fresh) = writer.global_id(&format!(
|
||||
"loc,{{{}}},{},{},{},{}",
|
||||
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
|
||||
* yet for this file. */
|
||||
fn location_label(
|
||||
writer: &mut trap::Writer,
|
||||
location: trap::Location,
|
||||
) -> trap::Label {
|
||||
fn location_label(writer: &mut trap::Writer, location: trap::Location) -> trap::Label {
|
||||
let (loc_label, fresh) = writer.location_label(location);
|
||||
if fresh {
|
||||
writer.add_tuple(
|
||||
|
||||
Reference in New Issue
Block a user