mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-02 11:36:54 -04:00
24 lines
521 B
Text
24 lines
521 B
Text
class Box<T> {
|
|
// ^ type
|
|
// ^ type
|
|
protected T $data;
|
|
// ^ type.qualifier
|
|
// ^ type
|
|
|
|
public function __construct(T $data) {
|
|
// ^ type
|
|
// ^ parameter
|
|
// ^ keyword.function
|
|
// ^ type.qualifier
|
|
// ^ method
|
|
$this->data = $data;
|
|
}
|
|
|
|
public function getData(): T {
|
|
// ^ method
|
|
// ^ type.qualifier
|
|
return $this->data;
|
|
// ^ operator
|
|
// ^ variable.builtin
|
|
}
|
|
}
|