MCPcopy
hub / github.com/gopherjs/gopherjs / Printf

Method Printf

compiler/utils.go:50–56  ·  view source on GitHub ↗
(format string, values ...any)

Source from the content-addressed store, hash-verified

48}
49
50func (fc *funcContext) Printf(format string, values ...any) {
51 fc.Write([]byte(fc.Indentation(0)))
52 fmt.Fprintf(fc, format, values...)
53 fc.Write([]byte{'\n'})
54 fc.Write(fc.delayedOutput)
55 fc.delayedOutput = nil
56}
57
58func (fc *funcContext) PrintCond(cond bool, onTrue, onFalse string) {
59 if !cond {

Callers 15

translateStmtMethod · 0.95
translateLoopingStmtMethod · 0.95
translateResultsMethod · 0.95
PrintCondMethod · 0.95
expandTupleArgsMethod · 0.95
translateArgsMethod · 0.95
handleEscapingVarsMethod · 0.95
translateExprMethod · 0.95
translateCallMethod · 0.95
translateConversionMethod · 0.95
translateFunctionBodyMethod · 0.95

Calls 2

WriteMethod · 0.95
IndentationMethod · 0.95

Tested by

no test coverage detected