Skip to main content

analyze_program_decorated

Function analyze_program_decorated 

Source
pub fn analyze_program_decorated(
    source: &str,
    language: &str,
    project: ProgramProjectContext,
    decorators: &DecoratorSet,
) -> Result<ProgramRepresentation, ProgramRepresentationError>
Expand description

analyze_program after the cst-to-ast decorators of decorators.

They see each syntax node the model is built from as { term, text }: setting term changes the construct the semantics read it as, and drop leaves it out of the model. The network keeps the parsed tree either way.