pub fn parse(rbs_code: &str) -> Result<SignatureNode<'_>, String>Expand description
Parse RBS code into an AST.
use ruby_rbs::node::parse;
let rbs_code = r#"type foo = "hello""#;
let signature = parse(rbs_code);
assert!(signature.is_ok(), "Failed to parse RBS signature");