public TypeSwitchStmt(token.Pos Switch = default, Stmt Init = default, Stmt Assign = default, ref ptr <BlockStmt> Body = default) { this.Switch = Switch; this.Init = Init; this.Assign = Assign; this.Body = Body; }
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; }
public IndexExpr(Expr X = default, token.Pos Lbrack = default, Expr Index = default, token.Pos Rbrack = default) { this.X = X; this.Lbrack = Lbrack; this.Index = Index; this.Rbrack = Rbrack; }
public @object(@string name = default, token.Pos pos = default, long numUses = default, slice <ptr <object> > used = default) { this.name = name; this.pos = pos; this.numUses = numUses; this.used = used; }
public ChanType(token.Pos Begin = default, token.Pos Arrow = default, ChanDir Dir = default, Expr Value = default) { this.Begin = Begin; this.Arrow = Arrow; this.Dir = Dir; this.Value = Value; }
public Note(token.Pos Pos = default, token.Pos End = default, @string UID = default, @string Body = default) { this.Pos = Pos; this.End = End; this.UID = UID; this.Body = Body; }
public Range(ref ptr <token.FileSet> FileSet = default, token.Pos Start = default, token.Pos End = default, Converter Converter = default) { this.FileSet = FileSet; this.Start = Start; this.End = End; this.Converter = Converter; }
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; }
public SwitchStmt(token.Pos Switch = default, Stmt Init = default, Expr Tag = default, ref ptr <BlockStmt> Body = default) { this.Switch = Switch; this.Init = Init; this.Tag = Tag; this.Body = Body; }
public Error(ref ptr <token.FileSet> Fset = default, token.Pos Pos = default, @string Msg = default, bool Soft = default) { this.Fset = Fset; this.Pos = Pos; this.Msg = Msg; this.Soft = Soft; }
public CaseClause(token.Pos Case = default, slice <Expr> List = default, token.Pos Colon = default, slice <Stmt> Body = default) { this.Case = Case; this.List = List; this.Colon = Colon; this.Body = Body; }
public CommClause(token.Pos Case = default, Stmt Comm = default, token.Pos Colon = default, slice <Stmt> Body = default) { this.Case = Case; this.Comm = Comm; this.Colon = Colon; this.Body = Body; }
public TypeAssertExpr(Expr X = default, token.Pos Lparen = default, Expr Type = default, token.Pos Rparen = default) { this.X = X; this.Lparen = Lparen; this.Type = Type; this.Rparen = Rparen; }
public ForStmt(token.Pos For = default, Stmt Init = default, Expr Cond = default, Stmt Post = default, ref ptr <BlockStmt> Body = default) { this.For = For; this.Init = Init; this.Cond = Cond; this.Post = Post; this.Body = Body; }
public CallExpr(Expr Fun = default, token.Pos Lparen = default, slice <Expr> Args = default, token.Pos Ellipsis = default, token.Pos Rparen = default) { this.Fun = Fun; this.Lparen = Lparen; this.Args = Args; this.Ellipsis = Ellipsis; this.Rparen = Rparen; }
public IfStmt(token.Pos If = default, Stmt Init = default, Expr Cond = default, ref ptr <BlockStmt> Body = default, Stmt Else = default) { this.If = If; this.Init = Init; this.Cond = Cond; this.Body = Body; this.Else = Else; }
public CompositeLit(Expr Type = default, token.Pos Lbrace = default, slice <Expr> Elts = default, token.Pos Rbrace = default, bool Incomplete = default) { this.Type = Type; this.Lbrace = Lbrace; this.Elts = Elts; this.Rbrace = Rbrace; this.Incomplete = Incomplete; }
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; }
public Diagnostic(token.Pos Pos = default, token.Pos End = default, @string Category = default, @string Message = default, slice <SuggestedFix> SuggestedFixes = default, slice <RelatedInformation> Related = default) { this.Pos = Pos; this.End = End; this.Category = Category; this.Message = Message; this.SuggestedFixes = SuggestedFixes; this.Related = Related; }
public SliceExpr(Expr X = default, token.Pos Lbrack = default, Expr Low = default, Expr High = default, Expr Max = default, bool Slice3 = default, token.Pos Rbrack = default) { this.X = X; this.Lbrack = Lbrack; this.Low = Low; this.High = High; this.Max = Max; this.Slice3 = Slice3; this.Rbrack = Rbrack; }
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; }
public @object(ref ptr <Scope> parent = default, token.Pos pos = default, ref ptr <Package> pkg = default, @string name = default, Type typ = default, uint order_ = default, color color_ = default, token.Pos scopePos_ = default) { this.parent = parent; this.pos = pos; this.pkg = pkg; this.name = name; this.typ = typ; this.order_ = order_; this.color_ = color_; this.scopePos_ = scopePos_; }
public File(ref ptr <CommentGroup> Doc = default, token.Pos Package = default, ref ptr <Ident> Name = default, slice <Decl> Decls = default, ref ptr <Scope> Scope = default, slice <ptr <ImportSpec> > Imports = default, slice <ptr <Ident> > Unresolved = default, slice <ptr <CommentGroup> > Comments = default) { this.Doc = Doc; this.Package = Package; this.Name = Name; this.Decls = Decls; this.Scope = Scope; this.Imports = Imports; this.Unresolved = Unresolved; this.Comments = Comments; }
public Defer(anInstruction anInstruction = default, CallCommon Call = default, token.Pos pos = default) { this.m_anInstructionRef = new ptr <anInstruction>(anInstruction); this.Call = Call; this.pos = pos; }
public InterfaceType(token.Pos Interface = default, ref ptr <FieldList> Methods = default, bool Incomplete = default) { this.Interface = Interface; this.Methods = Methods; this.Incomplete = Incomplete; }
public BlockStmt(token.Pos Lbrace = default, slice <Stmt> List = default, token.Pos Rbrace = default) { this.Lbrace = Lbrace; this.List = List; this.Rbrace = Rbrace; }
public Send(anInstruction anInstruction = default, Value Chan = default, Value X = default, token.Pos pos = default) { this.m_anInstructionRef = new ptr <anInstruction>(anInstruction); this.Chan = Chan; this.X = X; this.pos = pos; }
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; }
public UnaryExpr(token.Pos OpPos = default, token.Token Op = default, Expr X = default) { this.OpPos = OpPos; this.Op = Op; this.X = X; }
// findText finds text in the original source, starting at pos. // It correctly skips over comments and assumes it need not // handle quoted strings. // It returns a byte offset within f.src. private static long findText(this ptr <File> _addr_f, token.Pos pos, @string text) { ref File f = ref _addr_f.val;