Skip to content

Conversation

@liufengyun
Copy link
Contributor

test symboo.defTree for symbols from Tasty

@liufengyun liufengyun requested a review from abgruszecki August 21, 2019 12:58
@liufengyun liufengyun force-pushed the test-defTree branch 5 times, most recently from d6e6080 to 10c6316 Compare August 24, 2019 08:39
The scripted tests only run every night
This needs to be changed because `Pickler` does not exists for running staged code.
As the compiler supports already adding custom phases,
there is no need to add the phases to the compiler.
The following invariant should be true for pattern-bound symbols,
and *only* for pattern-bound symbols:

    (sym.isType && !sym.isClass && sym.isOneOf(Case)) ||
      (sym.isTerm && sym.isOneOf(Case, butNot = Enum | Module))

The invariant only holds before patternMatcher.
After patternMatcher, there are no more pattern trees,
thus the invariant does not hold any more.
Those symbols are now normal ValDefs, thus should not have
the Case flag.
@liufengyun
Copy link
Contributor Author

@nicolasstucki Now this is rebased and simplified as discussed in the meeting.

Copy link
Contributor

@nicolasstucki nicolasstucki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Otherwise look good

@liufengyun liufengyun merged commit 38e5259 into scala:master Aug 28, 2019
@liufengyun liufengyun deleted the test-defTree branch August 28, 2019 13:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants