Lines Matching refs:parser
141 private $parser; variable in Doctrine\\Common\\Annotations\\AnnotationReader
176 * @param DocParser $parser
180 public function __construct(DocParser $parser = null) argument
202 $this->parser = $parser ?: new DocParser();
217 $this->parser->setTarget(Target::TARGET_CLASS);
218 $this->parser->setImports($this->getClassImports($class));
219 $this->parser->setIgnoredAnnotationNames($this->getIgnoredAnnotationNames($class));
220 $this->parser->setIgnoredAnnotationNamespaces(self::$globalIgnoredNamespaces);
222 return $this->parser->parse($class->getDocComment(), 'class ' . $class->getName());
249 $this->parser->setTarget(Target::TARGET_PROPERTY);
250 $this->parser->setImports($this->getPropertyImports($property));
251 $this->parser->setIgnoredAnnotationNames($this->getIgnoredAnnotationNames($class));
252 $this->parser->setIgnoredAnnotationNamespaces(self::$globalIgnoredNamespaces);
254 return $this->parser->parse($property->getDocComment(), $context);
281 $this->parser->setTarget(Target::TARGET_METHOD);
282 $this->parser->setImports($this->getMethodImports($method));
283 $this->parser->setIgnoredAnnotationNames($this->getIgnoredAnnotationNames($class));
284 $this->parser->setIgnoredAnnotationNamespaces(self::$globalIgnoredNamespaces);
286 return $this->parser->parse($method->getDocComment(), $context);