Skip to content
This repository was archived by the owner on Dec 1, 2024. It is now read-only.

Conversation

@lexidor
Copy link
Contributor

@lexidor lexidor commented May 24, 2023

Fixes:

  • NoEmptyStatementsLinter
    • False negative 3 <= 4 was not treated as an empty expression.
    • False negative 3 >= 4 was not treated as an empty expression.
    • Comment: Mentioned ExpressionStament::getOperator(), should have been BinaryOperation.
  • NodeList::getChildrenOfItemsOfType<T>(classname<T> $classname): vec<T>
    • T was not inferred to be the type of the classname argument.
    • Added getChildrenOfItemsByType<reify T>() to match getChildrenByType<reify T>().
    • Comment mentioned NodeList::createEmptyListOrNull(), which doesn't exist anymore.
  • Constants may now appear as the sole expression of a lambda body.
  • Codegen no longer consumes more threads than hardware threads of the machine.

And a quick formatting of the affect files.

lexidor added 8 commits May 24, 2023 14:39
The operators `<=` and `>=` should be treated as empty.
They are currently treated as assignments.
This completes this list:
 - Node->getChildrenOfType<T>()
 - Node->getDescendantsOfType<T>()
 - Node->getFirstDescendantOfType<T>()
 - NodeList->getChildrenOfItemsByType<T>()
This function does not exist anymore.
@yucombinator yucombinator merged commit 2339345 into hhvm:main Oct 31, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants