Example #1
0
 private void InitLocation(Instruction instruction)
 {
     var sp = instruction.FindSequencePoint();
     if (sp == null) return;
     DocumentUrl = sp.Document.Url;
     Location = new Coordinates
                    {
                        StartLine = sp.StartLine,
                        EndLine = sp.EndLine,
                        StartColumn = sp.StartColumn,
                        EndColumn = sp.EndColumn
                    };
 }