Skip to content

Commit 5d5f874

Browse files
committed
fix: clip async boundary detection to only check for await_expression
parent, not call_expression
1 parent add0f7f commit 5d5f874

3 files changed

Lines changed: 0 additions & 5 deletions

File tree

grapha-swift/src/treesitter/common.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,6 @@ pub(super) fn find_enclosing_swift_condition(
548548
}
549549

550550
/// Check if a Swift call node is at an async boundary.
551-
552551
pub(super) fn sanitize_id_component(name: &str) -> String {
553552
let mut out = String::with_capacity(name.len());
554553
for ch in name.chars() {

grapha-swift/src/treesitter/extract.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,6 @@ fn extract_extension(
524524
}
525525

526526
/// Find the type name from a `user_type > type_identifier` child.
527-
528527
fn extract_protocol(
529528
node: tree_sitter::Node,
530529
source: &[u8],
@@ -782,7 +781,6 @@ fn extract_calls_from_text(
782781
}
783782

784783
/// Find the name from a `pattern > simple_identifier` child.
785-
786784
fn extract_typealias(
787785
node: tree_sitter::Node,
788786
source: &[u8],
@@ -962,7 +960,6 @@ fn collect_doc_comments(
962960
}
963961

964962
/// Extract doc comments from previous sibling comment nodes.
965-
966963
fn detect_swift_async_boundary(node: tree_sitter::Node, source: &[u8]) -> Option<bool> {
967964
// Check if parent is await_expression
968965
if let Some(parent) = node.parent()

grapha-swift/src/treesitter/swiftui.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ fn apply_swiftui_dynamic_property_metadata(
6767
}
6868

6969
/// Collect inheritance/conformance names from a class_declaration node.
70-
7170
fn node_by_id_mut<'a>(result: &'a mut ExtractionResult, node_id: &str) -> Option<&'a mut Node> {
7271
result.nodes.iter_mut().find(|node| node.id == node_id)
7372
}

0 commit comments

Comments
 (0)