Skip to main content

parse_signatures

Function parse_signatures 

Source
pub fn parse_signatures(source: &str) -> Result<Option<SyntaxNode>, ParseError>
Expand description

Parse source as a signature file (function/class/global declarations only).

Returns the root node (NodeSigFile) whose children are sig items. Use for loading stdlib or other API signature definitions.