Skip to main content

is_cpp_recovered_callable_declaration_reference

Function is_cpp_recovered_callable_declaration_reference 

Source
pub fn is_cpp_recovered_callable_declaration_reference(node: Node<'_>) -> bool
Expand description

Whether an identifier is a callable declaration name retained beneath C++ error recovery.

A C prototype using the traditional __P((...)) wrapper can be parsed as a pointer declarator whose first child is ERROR(identifier) and whose declarator is a function declarator for the macro invocation. The identifier is still a real declaration reference to the callable’s later definition, even though the ordinary census intentionally excludes the whole ERROR subtree. Keep this predicate limited to that declaration-shaped CST so arbitrary recovery leaves do not enter inverse membership.