Ticket #180 (closed enhancement: fixed)

Opened 4 years ago

Last modified 4 years ago

Code assist within guard predicates

Reported by: stephan Owned by: stephan
Priority: major Milestone: OTDT_1.2.5
Component: compiler Version: 1.2.4
Keywords: Cc:

Description

Code assist for the expression of a guard predicate should be implemented, specifically: select & complete.

The basic issue here is syntax recovery within guard predicates (thus assigning to "compiler").

Change History

Changed 4 years ago by stephan

  • status changed from new to accepted

Selection for base.m() within base guard is fixed in r19361:

  • double parsing of predicate led to interpeting this expression as a base-call.

Changed 4 years ago by stephan

r19362 and r19363 change how the parser consumes guard predicates:

  • need to create predicate method before parsing the expression so that the completion parser will find the predicate even if parsing stops before the end of the expression.
  • include predicates in the class header so the completion parser will find them in recovery mode, too.

Changed 4 years ago by stephan

  • status changed from accepted to closed
  • resolution set to fixed

r19364 finishes syntax recovery for type-level predicates and adds a few tests: PASS.

Note: See TracTickets for help on using tickets.