php5: save all comments
This commit is contained in:
@@ -106,3 +106,13 @@ func (l *Parser) GetComments() parser.Comments {
|
||||
func (l *Parser) GetPositions() parser.Positions {
|
||||
return l.positions
|
||||
}
|
||||
|
||||
// helpers
|
||||
|
||||
func lastNode(nn []node.Node) node.Node {
|
||||
return nn[len(nn)-1]
|
||||
}
|
||||
|
||||
func firstNode(nn []node.Node) node.Node {
|
||||
return nn[0]
|
||||
}
|
||||
|
||||
5888
php5/php5.go
5888
php5/php5.go
File diff suppressed because it is too large
Load Diff
3026
php5/php5.y
3026
php5/php5.y
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user