public void AddSymbols(List <ident> names, SymKind kind, type_definition td = null, Attributes attr = 0)
 {
     foreach (var n in names)
     {
         AddSymbol(n, kind, td, attr);
     }
 }
Ejemplo n.º 2
0
 public SymInfoSyntax(ident Id, SymKind SK, type_definition Td = null, Attributes Attr = 0)
 {
     this.Id   = Id;
     this.Td   = Td;
     this.SK   = SK;
     this.Attr = Attr;
 }
Ejemplo n.º 3
0
                    public static @string String(this SymKind i)
                    {
                        if (i >= SymKind(len(_SymKind_index) - 1L))
                        {
                            return("SymKind(" + strconv.FormatInt(int64(i), 10L) + ")");
                        }

                        return(_SymKind_name[_SymKind_index[i].._SymKind_index[i + 1L]]);
Ejemplo n.º 4
0
 public Symbol(@string Name = default, SymKind Type = default, short Version = default, Attribute Attr = default, int Dynid = default, int Align = default, long Value = default, long Size = default, ref ptr <Symbol> Outer = default, LoaderSym SymIdx = default, ref ptr <AuxSymbol> auxinfo = default, ref ptr <Section> Sect = default, slice <byte> P = default, slice <Reloc> R = default)
 {
     this.Name    = Name;
     this.Type    = Type;
     this.Version = Version;
     this.Attr    = Attr;
     this.Dynid   = Dynid;
     this.Align   = Align;
     this.Value   = Value;
     this.Size    = Size;
     this.Outer   = Outer;
     this.SymIdx  = SymIdx;
     this.auxinfo = auxinfo;
     this.Sect    = Sect;
     this.P       = P;
     this.R       = R;
 }
Ejemplo n.º 5
0
 public Symbol(@string Name = default, SymKind Type = default, short Version = default, Attribute Attr = default, int Dynid = default, int Align = default, int Elfsym = default, int LocalElfsym = default, long Value = default, long Size = default, ref ptr <Symbol> Sub = default, ref ptr <Symbol> Outer = default, ref ptr <Symbol> Gotype = default, @string File = default, ref ptr <AuxSymbol> auxinfo = default, ref ptr <Section> Sect = default, ref ptr <FuncInfo> FuncInfo = default, ref ptr <CompilationUnit> Unit = default, slice <byte> P = default, slice <Reloc> R = default)
 {
     this.Name        = Name;
     this.Type        = Type;
     this.Version     = Version;
     this.Attr        = Attr;
     this.Dynid       = Dynid;
     this.Align       = Align;
     this.Elfsym      = Elfsym;
     this.LocalElfsym = LocalElfsym;
     this.Value       = Value;
     this.Size        = Size;
     this.Sub         = Sub;
     this.Outer       = Outer;
     this.Gotype      = Gotype;
     this.File        = File;
     this.auxinfo     = auxinfo;
     this.Sect        = Sect;
     this.FuncInfo    = FuncInfo;
     this.Unit        = Unit;
     this.P           = P;
     this.R           = R;
 }
 public virtual void AddSymbol(ident name, SymKind kind, type_definition td = null, Attributes attr = 0)
 {
     Current.Symbols.Add(new SymInfoSyntax(name, kind, td, attr));
 }