- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for WriteAST (0.41 sec)
-
src/cmd/compile/internal/ir/fmt.go
fmt.Fprint(w, sep) sep = " " // TODO(mdempsky): Print line pragma details too. file := filepath.Base(pos.Filename()) // Note: this output will be parsed by ssa/html.go:(*HTMLWriter).WriteAST. Keep in sync. fmt.Fprintf(w, "%s:%d:%d", file, pos.Line(), pos.Col()) }) } } func dumpNode(w io.Writer, n Node, depth int) { indent(w, depth) if depth > 40 { fmt.Fprint(w, "...")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 05 15:20:28 UTC 2023 - 26K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/html.go
fmt.Fprintf(&buf, "<div class=\"l%v line-number\">%v</div>", ln, escaped) } } fmt.Fprint(&buf, "</pre></div>") w.WriteColumn(phase, phase, "allow-x-scroll", buf.String()) } func (w *HTMLWriter) WriteAST(phase string, buf *bytes.Buffer) { if w == nil { return // avoid generating HTML just to discard it } lines := strings.Split(buf.String(), "\n") var out strings.Builder fmt.Fprint(&out, "<div>")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Oct 04 15:11:40 UTC 2023 - 34.8K bytes - Viewed (0) -
src/cmd/compile/internal/ssagen/ssa.go
os.MkdirAll(ssaD, 0755) } s.f.HTMLWriter = ssa.NewHTMLWriter(ssaDF, s.f, ssaDumpCFG) // TODO: generate and print a mapping from nodes to values and blocks dumpSourcesColumn(s.f.HTMLWriter, fn) s.f.HTMLWriter.WriteAST("AST", astBuf) } // Allocate starting values s.labels = map[string]*ssaLabel{} s.fwdVars = map[ir.Node]*ssa.Value{} s.startmem = s.entryNewValue0(ssa.OpInitMem, types.TypeMem)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 10 19:44:43 UTC 2024 - 284.9K bytes - Viewed (0)