Skip to content

Commit

Permalink
Add missing import
Browse files Browse the repository at this point in the history
  • Loading branch information
Virtlink committed Jan 22, 2021
1 parent 4e5bb92 commit ef27605
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
4 changes: 4 additions & 0 deletions source/langdev/meta/lang/statix/signature-generator.rst
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ symbol (as specified in ``Syntax.esv``). For example, in ``trans/analysis.str``:
statix/api
injections/-
libspoofax/term/origin
rules
Expand Down Expand Up @@ -280,6 +281,9 @@ To fix this, ensure the ``pre-analyze`` and ``post-analyze`` strategies in

.. code-block:: stratego
imports libspoofax/term/origin
rules
pre-analyze = origin-track-forced(explicate-injections-MyLang-Start)
post-analyze = origin-track-forced(implicate-injections-MyLang-Start)
7 changes: 5 additions & 2 deletions source/release/migrate/vnext.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ This is a stub for the migration guide of Spoofax vNext.
## Statix Injection Explication
There was an issue with Statix injection explication where the origin of the top-level term was lost and this caused SPT tests of Stratego strategies on analyzed ASTs to fail. Fix this by wrapping the bodies of the `pre-analyze` and `post-analyze` strategies in `analyze.str` with `origin-track-forced`, like this:

pre-analyze = origin-track-forced(explicate-injections-MyLang-Start)
post-analyze = origin-track-forced(implicate-injections-MyLang-Start)
imports libspoofax/term/origin

rules
pre-analyze = origin-track-forced(explicate-injections-MyLang-Start)
post-analyze = origin-track-forced(implicate-injections-MyLang-Start)

This is already fixed in new projects.

0 comments on commit ef27605

Please sign in to comment.