Ejemplo n.º 1
0
 public Error(ErrorCode ErrorCode = default, parse.Node Node = default, @string Name = default, long Line = default, @string Description = default)
 {
     this.ErrorCode   = ErrorCode;
     this.Node        = Node;
     this.Name        = Name;
     this.Line        = Line;
     this.Description = Description;
 }
Ejemplo n.º 2
0
 // escapeTemplate rewrites the named template, which must be
 // associated with t, to guarantee that the output of any of the named
 // templates is properly escaped. If no error is returned, then the named templates have
 // been modified. Otherwise the named templates have been rendered
 // unusable.
 private static error escapeTemplate(ptr<Template> _addr_tmpl, parse.Node node, @string name)
 {
     ref Template tmpl = ref _addr_tmpl.val;
Ejemplo n.º 3
0
 public state(ref ptr <Template> tmpl = default, io.Writer wr = default, parse.Node node = default, slice <variable> vars = default, long depth = default)
 {
     this.tmpl  = tmpl;
     this.wr    = wr;
     this.node  = node;
     this.vars  = vars;
     this.depth = depth;
 }