Skip to content

Commit 829b5a0

Browse files
committed
make public, change const name
1 parent 442ea28 commit 829b5a0

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/Ast/Attribute.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ final class Attribute
1313

1414
public const ORIGINAL_NODE = 'originalNode';
1515

16-
public const COMMENT = 'comment';
16+
public const COMMENTS = 'comments';
1717

1818
}

src/Ast/Comment.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ class Comment
66
{
77

88
/** @var string */
9-
protected $text;
9+
public $text;
1010

1111
/** @var int */
12-
protected $startLine;
12+
public $startLine;
1313

1414
/** @var int */
15-
protected $startIndex;
15+
public $startIndex;
1616

1717
public function __construct(string $text, int $startLine = -1, int $startIndex = -1)
1818
{

src/Parser/TypeParser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public function enrichWithAttributes(TokenIterator $tokens, Ast\Node $type, int
9494
}
9595

9696
if ($this->useCommentsAttributes) {
97-
$type->setAttribute(Ast\Attribute::COMMENT, $comments);
97+
$type->setAttribute(Ast\Attribute::COMMENTS, $comments);
9898
}
9999

100100
if ($this->useIndexAttributes) {

0 commit comments

Comments
 (0)