Lines Matching defs:type
11 * Implements the `type` lexer action by calling {@see Lexer::setType()}
12 * with the assigned type.
19 private $type;
22 * Constructs a new `type` action with the specified token type value.
24 * @param int $type The type to assign to the token using {@see Lexer::setType()}.
26 public function __construct(int $type)
28 $this->type = $type;
32 * Gets the type to assign to a token created by the lexer.
34 * @return int The type to assign to a token created by the lexer.
38 return $this->type;
69 $lexer->setType($this->type);
74 return Hasher::hash($this->getActionType(), $this->type);
87 return $this->type === $other->type;
92 return \sprintf('type(%d)', $this->type);