Exemple #1
0
 public BinOp(register register = default, token.Token Op = default, Value X = default, Value Y = default)
 {
     this.m_registerRef = new ptr <register>(register);
     this.Op            = Op;
     this.X             = X;
     this.Y             = Y;
 }
Exemple #2
0
 public BinaryExpr(Expr X = default, token.Pos OpPos = default, token.Token Op = default, Expr Y = default)
 {
     this.X = X;
     this.OpPos = OpPos;
     this.Op = Op;
     this.Y = Y;
 }
Exemple #3
0
 public UnOp(register register = default, token.Token Op = default, Value X = default, bool CommaOk = default)
 {
     this.m_registerRef = new ptr<register>(register);
     this.Op = Op;
     this.X = X;
     this.CommaOk = CommaOk;
 }
Exemple #4
0
 public GenDecl(ref ptr <CommentGroup> Doc = default, token.Pos TokPos = default, token.Token Tok = default, token.Pos Lparen = default, slice <Spec> Specs = default, token.Pos Rparen = default)
 {
     this.Doc    = Doc;
     this.TokPos = TokPos;
     this.Tok    = Tok;
     this.Lparen = Lparen;
     this.Specs  = Specs;
     this.Rparen = Rparen;
 }
Exemple #5
0
 public printer(Config Config = default, ref ptr <token.FileSet> fset = default, slice <byte> output = default, long indent = default, long level = default, pmode mode = default, bool endAlignment = default, bool impliedSemi = default, token.Token lastTok = default, token.Token prevOpen = default, slice <whiteSpace> wsbuf = default, token.Position pos = default, token.Position @out = default, token.Position last = default, ref ptr <long> linePtr = default, slice <ptr <ast.CommentGroup> > comments = default, bool useNodeComments = default, commentInfo commentInfo = default, map <ast.Node, long> nodeSizes = default, token.Pos cachedPos = default, long cachedLine = default)
 {
     this.m_ConfigRef      = new ptr <Config>(Config);
     this.fset             = fset;
     this.output           = output;
     this.indent           = indent;
     this.level            = level;
     this.mode             = mode;
     this.endAlignment     = endAlignment;
     this.impliedSemi      = impliedSemi;
     this.lastTok          = lastTok;
     this.prevOpen         = prevOpen;
     this.wsbuf            = wsbuf;
     this.pos              = pos;
     this.@out             = @out;
     this.last             = last;
     this.linePtr          = linePtr;
     this.comments         = comments;
     this.useNodeComments  = useNodeComments;
     this.m_commentInfoRef = new ptr <commentInfo>(commentInfo);
     this.nodeSizes        = nodeSizes;
     this.cachedPos        = cachedPos;
     this.cachedLine       = cachedLine;
 }
Exemple #6
0
 public UnaryExpr(token.Pos OpPos = default, token.Token Op = default, Expr X = default)
 {
     this.OpPos = OpPos;
     this.Op    = Op;
     this.X     = X;
 }
Exemple #7
0
 public RangeStmt(token.Pos For = default, Expr Key = default, Expr Value = default, token.Pos TokPos = default, token.Token Tok = default, Expr X = default, ref ptr <BlockStmt> Body = default)
 {
     this.For    = For;
     this.Key    = Key;
     this.Value  = Value;
     this.TokPos = TokPos;
     this.Tok    = Tok;
     this.X      = X;
     this.Body   = Body;
 }
Exemple #8
0
 public BasicLit(token.Pos ValuePos = default, token.Token Kind = default, @string Value = default)
 {
     this.ValuePos = ValuePos;
     this.Kind     = Kind;
     this.Value    = Value;
 }
Exemple #9
0
 public BranchStmt(token.Pos TokPos = default, token.Token Tok = default, ref ptr <Ident> Label = default)
 {
     this.TokPos = TokPos;
     this.Tok    = Tok;
     this.Label  = Label;
 }
Exemple #10
0
 public AssignStmt(slice <Expr> Lhs = default, token.Pos TokPos = default, token.Token Tok = default, slice <Expr> Rhs = default)
 {
     this.Lhs    = Lhs;
     this.TokPos = TokPos;
     this.Tok    = Tok;
     this.Rhs    = Rhs;
 }
Exemple #11
0
 public IncDecStmt(Expr X = default, token.Pos TokPos = default, token.Token Tok = default)
 {
     this.X      = X;
     this.TokPos = TokPos;
     this.Tok    = Tok;
 }
Exemple #12
0
 public parser(ref ptr <token.File> file = default, scanner.ErrorVector ErrorVector = default, scanner.Scanner scanner = default, ulong mode = default, bool trace = default, ulong indent = default, slice <ptr <ast.CommentGroup> > comments = default, ref ptr <ast.CommentGroup> leadComment = default, ref ptr <ast.CommentGroup> lineComment = default, token.Pos pos = default, token.Token tok = default, @string lit = default, long exprLev = default, ref ptr <ast.Scope> pkgScope = default, ref ptr <ast.Scope> topScope = default, slice <ptr <ast.Ident> > unresolved = default, slice <ptr <ast.ImportSpec> > imports = default, ref ptr <ast.Scope> labelScope = default, slice <slice <ptr <ast.Ident> > > targetStack = default)
 {
     this.file        = file;
     this.ErrorVector = ErrorVector;
     this.scanner     = scanner;
     this.mode        = mode;
     this.trace       = trace;
     this.indent      = indent;
     this.comments    = comments;
     this.leadComment = leadComment;
     this.lineComment = lineComment;
     this.pos         = pos;
     this.tok         = tok;
     this.lit         = lit;
     this.exprLev     = exprLev;
     this.pkgScope    = pkgScope;
     this.topScope    = topScope;
     this.unresolved  = unresolved;
     this.imports     = imports;
     this.labelScope  = labelScope;
     this.targetStack = targetStack;
 }
Exemple #13
0
 public boolOp(@string name = default, token.Token tok = default, token.Token badEq = default)
 {
     this.name  = name;
     this.tok   = tok;
     this.badEq = badEq;
 }