Project

General

Profile

Feature #1962

modify parser to add a readOnly boolean annotation to all attributes and change post_parse_fixups to use it

Added by Greg Shah over 11 years ago. Updated over 7 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
16.00 h
billable:
No
vendor_id:
GCD
version:

History

#1 Updated by Greg Shah over 11 years ago

1. Change the SymbolResolver.addAttributeOrMethod() to take a 3rd parameter: boolean readOnly. It should store this in a way that can be looked up and used to annotate the attribute AST node later.

2. In progress.g, every call to sym.addAttributeOrMethod() will need that flag to be added. This means that every attribute must be looked up in the reference to see if it is "writable" and if not, set the readOnly flag to true.

3. The parser will also need a change to annotate this flag into the AST node for each attribute.

4. Finally, post-parse fixups will have to change to use the flag instead of the function "read-only-attribute".

#2 Updated by Greg Shah about 11 years ago

  • Target version changed from Milestone 7 to 24

#3 Updated by Greg Shah over 7 years ago

  • Target version deleted (24)

Also available in: Atom PDF