Beispiel #1
0
 /// <summary>
 /// Adds the specified symbol to the collections.
 /// </summary>
 /// <param name="symbol">The symbol to add.</param>
 public void AddSymbol(DebugSymbol symbol)
 {
     Symbols.Add(symbol);
     ByLocation[symbol.Location] = symbol;
     ByName[symbol.Name]         = symbol;
     ByValue[symbol.Value]       = symbol;
 }
Beispiel #2
0
        /// <summary>
        /// Creates a new DebugSymbol object by using the specified data and
        /// adds it to the collections.
        /// </summary>
        /// <param name="file">File where the symbol is defined.</param>
        /// <param name="line">Line within the file where the symbol is defined.</param>
        /// <param name="name">Name of the Symbol.</param>
        /// <param name="value">Value of the Symbol.</param>
        /// <param name="isExecutable">A value indicating whether the symbol represents an executable line (i.e. a Label)</param>
        public void AddSymbol(string file, int line, string name, long value, bool isExecutable)
        {
            DebugSymbol s = new DebugSymbol();

            s.Location.File = file;
            s.Location.Line = line;
            s.Name          = name;
            s.Value         = value;
            s.IsExecutable  = isExecutable;
            AddSymbol(s);
        }
Beispiel #3
0
 /// <summary>
 /// Creates a new DebugSymbol object by using the specified data and
 /// adds it to the collections.
 /// </summary>
 /// <param name="file">File where the symbol is defined.</param>
 /// <param name="line">Line within the file where the symbol is defined.</param>
 /// <param name="name">Name of the Symbol.</param>
 /// <param name="value">Value of the Symbol.</param>
 /// <param name="isExecutable">A value indicating whether the symbol represents an executable line (i.e. a Label)</param>
 public void AddSymbol(string file, int line, string name, long value, bool isExecutable)
 {
     DebugSymbol s = new DebugSymbol();
     s.Location.File = file;
     s.Location.Line = line;
     s.Name = name;
     s.Value = value;
     s.IsExecutable = isExecutable;
     AddSymbol(s);
 }
Beispiel #4
0
 /// <summary>
 /// Adds the specified symbol to the collections.
 /// </summary>
 /// <param name="symbol">The symbol to add.</param>
 public void AddSymbol(DebugSymbol symbol)
 {
     Symbols.Add(symbol);
     ByLocation[symbol.Location] = symbol;
     ByName[symbol.Name] = symbol;
     ByValue[symbol.Value] = symbol;
 }