Documentation

TypeParser
in package

Table of Contents

Properties

$config  : ParserConfig
$constExprParser  : ConstExprParser

Methods

__construct()  : mixed
isHtml()  : bool
parse()  : TypeNode
parseGeneric()  : GenericTypeNode
parseGenericTypeArgument()  : GenericTypeNode::VARIANCE_*}
parseTemplateTagValue()  : TemplateTagValueNode
enrichTypeOnUnionOrIntersection()  : TypeNode|null
parseArrayShape()  : ArrayShapeNode
parseArrayShapeItem()  : ArrayShapeItemNode
parseArrayShapeKey()  : ConstExprIntegerNode|ConstExprStringNode|ConstFetchNode|IdentifierTypeNode
parseArrayShapeUnsealedType()  : ArrayShapeUnsealedTypeNode
parseAtomic()  : TypeNode
parseCallable()  : TypeNode
parseCallableParameter()  : CallableTypeParameterNode
parseCallableReturnType()  : TypeNode
parseCallableTemplateArgument()  : TemplateTagValueNode
parseCallableTemplates()  : array<string|int, TemplateTagValueNode>
parseConditional()  : TypeNode
parseConditionalForParameter()  : TypeNode
parseIntersection()  : TypeNode
parseListShapeUnsealedType()  : ArrayShapeUnsealedTypeNode
parseNullable()  : TypeNode
parseObjectShape()  : ObjectShapeNode
parseObjectShapeItem()  : ObjectShapeItemNode
parseObjectShapeKey()  : ConstExprStringNode|IdentifierTypeNode
parseUnion()  : TypeNode
subParse()  : TypeNode
subParseIntersection()  : TypeNode
subParseUnion()  : TypeNode
tryParseArrayOrOffsetAccess()  : TypeNode
tryParseCallable()  : TypeNode

Properties

Methods

parseGenericTypeArgument()

public parseGenericTypeArgument(TokenIterator $tokens) : GenericTypeNode::VARIANCE_*}
Parameters
$tokens : TokenIterator
Tags
phpstan-impure
Return values
GenericTypeNode::VARIANCE_*}

        
On this page

Search results