We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 019aea6 commit 1dfec50Copy full SHA for 1dfec50
src/main/php/xp/compiler/Usage.class.php
@@ -26,13 +26,14 @@ public function add($t, $active= false) {
26
}
27
28
29
+ $language= Language::named(self::RUNTIME);
30
foreach (Package::forName('lang.ast.syntax')->getClasses() as $class) {
31
if ($class->isSubclassOf(Language::class) && !(MODIFIER_ABSTRACT & $class->getModifiers())) {
- $impl->add($class, self::RUNTIME === $class->getSimpleName());
32
+ $impl->add($class, $class->isInstance($language));
33
34
35
- foreach (Language::named(self::RUNTIME)->extensions() as $extension) {
36
+ foreach ($language->extensions() as $extension) {
37
$impl->add(typeof($extension), 'true');
38
39
0 commit comments