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

Method printInt

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

Source from the content-addressed store, hash-verified

1215}
1216
1217func (p *Printer) printInt(n node.Node) {
1218 nn := n.(*cast.Int)
1219 p.printFreeFloating(nn, freefloating.Start)
1220
1221 p.printFreeFloating(nn, freefloating.Cast)
1222 if nn.GetFreeFloating().IsEmpty() {
1223 io.WriteString(p.w, "(integer)")
1224 }
1225
1226 p.Print(nn.Expr)
1227 p.printFreeFloating(nn, freefloating.End)
1228}
1229
1230func (p *Printer) printObject(n node.Node) {
1231 nn := n.(*cast.Object)

Callers 1

printNodeMethod · 0.95

Calls 4

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

Tested by

no test coverage detected