Even if errors were encountered during parsing, it is helpful to still return a partial AST if possible since that allows for the source code analysis features to still (partially) work in the face of errors.
Even if errors were encountered during parsing, it is helpful to still return a partial AST if possible since that allows for the source code analysis features to still (partially) work in the face of errors.