public function findReflectionsOfType(
        Reflector $reflector,
        LocatedSource $locatedSource,
        IdentifierType $identifierType
    ) : array {
        try {
            return $this->findReflectionsInTree->__invoke(
                $reflector,
                $this->parser->parse($locatedSource->getSource()),
                $identifierType,
                $locatedSource
            );
        } catch (Throwable $exception) {
            throw Exception\ParseToAstFailure::fromLocatedSource($locatedSource, $exception);
        }
    }
public function findReflectionsOfType(
        Reflector $reflector,
        LocatedSource $locatedSource,
        IdentifierType $identifierType
    ) : array {
        try {
            return $this->findReflectionsInTree->__invoke(
                $reflector,
                $this->parser->parse($locatedSource->getSource()),
                $identifierType,
                $locatedSource
            );
        } catch (Throwable $exception) {
            throw Exception\ParseToAstFailure::fromLocatedSource($locatedSource, $exception);
        }
    }
public function findReflectionsOfType ( Reflector $ reflector , LocatedSource $ locatedSource , IdentifierType $ identifierType ) : array { try { return $ this -> findReflectionsInTree -> __invoke ( $ reflector , $ this -> parser -> parse ( $ locatedSource -> getSource ( ) ) , $ identifierType , $ locatedSource ) ; } catch ( Throwable $ exception ) { throw Exception \ ParseToAstFailure :: fromLocatedSource ( $ locatedSource , $ exception ) ; } }
Get an array of reflections found in some code.

@return Reflection[]

@throws Exception\ParseToAstFailure
Get an array of reflections found in some code .