コード例 #1
0
ファイル: Violation.cs プロジェクト: provegard/testness
 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
                    };
 }