This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 138311 - Improve error recovery in the AST parser
Summary: Improve error recovery in the AST parser
Status: RESOLVED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks: 122056 132535 134611 138251
  Show dependency tree
 
Reported: 2008-06-26 08:14 UTC by Tomasz Slota
Modified: 2008-07-09 04:11 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tomasz Slota 2008-06-26 08:14:50 UTC
Error recovery in the AST parser needs to be improved so that in typical situations it is possible to get the AST type for the element currently being edited.

For example currently the AST parser currently does not even recognize the class definition element in the following code:

<?php

    class class_name {
        function f|
    }
?>

This should be probably done using the *sanitation* mechanism. Please look into the list of dependent issues for a list of specific use cases.
Comment 1 Petr Pisl 2008-07-08 23:09:47 UTC
Fixed in the trunk
changeset:   87761:2d56e3e42909
Comment 2 Quality Engineering 2008-07-09 04:11:27 UTC
Integrated into 'main-golden', available in NB_Trunk_Production #308 build
Changeset: http://hg.netbeans.org/main/rev/2d56e3e42909
User: Petr Pisl <ppisl@netbeans.org>
Log: Introducing code sanitization for PHP parser.

It fix two issues: #132335, #138311