Ejemplo n.º 1
0
 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;
 }
Ejemplo n.º 2
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;
 }
Ejemplo n.º 3
0
 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;
 }
Ejemplo n.º 4
0
 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;
 }
Ejemplo n.º 5
0
 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;
 }
Ejemplo n.º 6
0
 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;
 }
Ejemplo n.º 7
0
 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;
 }
Ejemplo n.º 8
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;
 }
Ejemplo n.º 9
0
 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;
 }
Ejemplo n.º 10
0
 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;
 }
Ejemplo n.º 11
0
 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;
 }
Ejemplo n.º 12
0
 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;
 }
Ejemplo n.º 13
0
 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;
 }
Ejemplo n.º 14
0
 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;
 }
Ejemplo n.º 15
0
 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;
 }
Ejemplo n.º 16
0
 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;
 }
Ejemplo n.º 17
0
 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;
 }
Ejemplo n.º 18
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;
 }
Ejemplo n.º 19
0
 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;
 }
Ejemplo n.º 20
0
 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;
 }
Ejemplo n.º 21
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;
 }
Ejemplo n.º 22
0
 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_;
 }
Ejemplo n.º 23
0
 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;
 }
Ejemplo n.º 24
0
 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;
 }
Ejemplo n.º 25
0
 public InterfaceType(token.Pos Interface = default, ref ptr <FieldList> Methods = default, bool Incomplete = default)
 {
     this.Interface  = Interface;
     this.Methods    = Methods;
     this.Incomplete = Incomplete;
 }
Ejemplo n.º 26
0
 public BlockStmt(token.Pos Lbrace = default, slice <Stmt> List = default, token.Pos Rbrace = default)
 {
     this.Lbrace = Lbrace;
     this.List   = List;
     this.Rbrace = Rbrace;
 }
Ejemplo n.º 27
0
 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;
 }
Ejemplo n.º 28
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;
 }
Ejemplo n.º 29
0
 public UnaryExpr(token.Pos OpPos = default, token.Token Op = default, Expr X = default)
 {
     this.OpPos = OpPos;
     this.Op    = Op;
     this.X     = X;
 }
Ejemplo n.º 30
0
Archivo: cover.cs Proyecto: zjmit/go2cs
 // 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;