Lines Matching refs:nodeType
45 $nodeType = $value['nodeType'];
46 if (!\is_string($nodeType)) {
50 $reflectionClass = $this->reflectionClassFromNodeType($nodeType);
86 private function reflectionClassFromNodeType(string $nodeType): \ReflectionClass { argument
87 if (!isset($this->reflectionClassCache[$nodeType])) {
88 $className = $this->classNameFromNodeType($nodeType);
89 $this->reflectionClassCache[$nodeType] = new \ReflectionClass($className);
91 return $this->reflectionClassCache[$nodeType];
95 private function classNameFromNodeType(string $nodeType): string { argument
96 $className = 'PhpParser\\Node\\' . strtr($nodeType, '_', '\\');
106 throw new \RuntimeException("Unknown node type \"$nodeType\"");