Esempio n. 1
0
        public PdbSourceLocation(Context cx, PDB.Location location) : base(cx)
        {
            this.location = location;
            file          = cx.CreateSourceFile(location.File);

            ShortId = file.ShortId + separator + new IntId(location.StartLine) + separator + new IntId(location.StartColumn) + separator + new IntId(location.EndLine) + separator + new IntId(location.EndColumn);
        }
Esempio n. 2
0
 /// <summary>
 /// Creates a source location.
 /// </summary>
 /// <param name="loc">The source location from PDB.</param>
 /// <returns>A source location entity.</returns>
 public PdbSourceLocation CreateSourceLocation(PDB.Location loc) => sourceLocations[loc];
Esempio n. 3
0
 public PdbSourceLocation(Context cx, PDB.Location location) : base(cx)
 {
     this.location = location;
     file          = cx.CreateSourceFile(location.File);
 }