MCPcopy Create free account
hub / github.com/z7zmey/php-parser / printStmtTraitUse

Method printStmtTraitUse

printer/printer.go:3121–3134  ·  view source on GitHub ↗
(n node.Node)

Source from the content-addressed store, hash-verified

3119}
3120
3121func (p *Printer) printStmtTraitUse(n node.Node) {
3122 nn := n.(*stmt.TraitUse)
3123 p.printFreeFloating(nn, freefloating.Start)
3124
3125 io.WriteString(p.w, "use")
3126 if nn.Traits[0].GetFreeFloating().IsEmpty() {
3127 io.WriteString(p.w, " ")
3128 }
3129 p.joinPrint(",", nn.Traits)
3130
3131 p.Print(nn.TraitAdaptationList)
3132
3133 p.printFreeFloating(nn, freefloating.End)
3134}
3135
3136func (p *Printer) printStmtTrait(n node.Node) {
3137 nn := n.(*stmt.Trait)

Callers 1

printNodeMethod · 0.95

Calls 5

printFreeFloatingMethod · 0.95
joinPrintMethod · 0.95
PrintMethod · 0.95
IsEmptyMethod · 0.80
GetFreeFloatingMethod · 0.65

Tested by

no test coverage detected