Skip to main content

body_of

Function body_of 

Source
pub fn body_of(function: &CppSyntaxNode) -> Option<CppSyntaxNode>
Expand description

The body of a function definition, when it has one.

Asked of the typed layer: a body is a CppCompoundStat, and where the parser put it is the parser’s business — which is the lesson of the two defects this layer has already had from hand-rolled shape tests.