parse_package_swift

Function parse_package_swift 

pub fn parse_package_swift(
    content: &str,
    uri: &Uri,
) -> Result<SwiftParseResult, SwiftError>
Expand description

Parses a Package.swift file and returns all dependencies with LSP positions.

Uses regex matching after stripping comments. Byte offsets are preserved throughout so LSP positions are computed correctly.