TraitUse tests

This commit is contained in:
z7zmey
2018-02-09 14:48:10 +02:00
parent 2f0480f8d6
commit 31b81540f3
7 changed files with 726 additions and 591 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -1207,12 +1207,8 @@ trait_adaptation:
trait_precedence:
absolute_trait_method_reference T_INSTEADOF name_list
{
name := name.NewName($3)
positions.AddPosition(name, positionBuilder.NewNodeListPosition($3))
$$ = stmt.NewTraitUsePrecedence($1, name)
$$ = stmt.NewTraitUsePrecedence($1, $3)
positions.AddPosition($$, positionBuilder.NewNodeNodeListPosition($1, $3))
comments.AddComments(name, ListGetFirstNodeComments($3))
comments.AddComments($$, comments[$1])
}
;