func (this *writer) newNodeStmt(name string) *ast.NodeStmt { node := this.Nodes.Lookup[name] id := ast.MakeNodeId(node.Name, "") this.writtenLocations[node.Name] = true return &ast.NodeStmt{ id, ast.PutMap(node.Attrs), } }
func (this *writer) newNodeId(name string, port string) *ast.NodeId { node := this.Nodes.Lookup[name] return ast.MakeNodeId(node.Name, port) }