~ubuntu-branches/ubuntu/trusty/mono-addins/trusty-proposed

« back to all changes in this revision

Viewing changes to Mono.Addins.CecilReflector/Mono.Cecil/Mono.Cecil.Cil/SequencePoint.cs

  • Committer: Bazaar Package Importer
  • Author(s): Jo Shields
  • Date: 2011-04-25 11:11:33 UTC
  • mfrom: (4.1.5 sid)
  • Revision ID: james.westby@ubuntu.com-20110425111133-t05u5p7o5fxx70fu
Tags: 0.6-2
Upload to Unstable

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
// Author:
5
5
//   Jb Evain (jbevain@gmail.com)
6
6
//
7
 
// (C) 2006 Jb Evain
 
7
// Copyright (c) 2008 - 2010 Jb Evain
8
8
//
9
9
// Permission is hereby granted, free of charge, to any person obtaining
10
10
// a copy of this software and associated documentation files (the
28
28
 
29
29
namespace Mono.Cecil.Cil {
30
30
 
31
 
        public class SequencePoint {
32
 
 
33
 
                Document m_document;
34
 
 
35
 
                int m_startLine;
36
 
                int m_startColumn;
37
 
                int m_endLine;
38
 
                int m_endColumn;
 
31
        public sealed class SequencePoint {
 
32
 
 
33
                Document document;
 
34
 
 
35
                int start_line;
 
36
                int start_column;
 
37
                int end_line;
 
38
                int end_column;
39
39
 
40
40
                public int StartLine {
41
 
                        get { return m_startLine; }
42
 
                        set { m_startLine = value; }
 
41
                        get { return start_line; }
 
42
                        set { start_line = value; }
43
43
                }
44
44
 
45
45
                public int StartColumn {
46
 
                        get { return m_startColumn; }
47
 
                        set { m_startColumn = value; }
 
46
                        get { return start_column; }
 
47
                        set { start_column = value; }
48
48
                }
49
49
 
50
50
                public int EndLine {
51
 
                        get { return m_endLine; }
52
 
                        set { m_endLine = value; }
 
51
                        get { return end_line; }
 
52
                        set { end_line = value; }
53
53
                }
54
54
 
55
55
                public int EndColumn {
56
 
                        get { return m_endColumn; }
57
 
                        set { m_endColumn = value; }
 
56
                        get { return end_column; }
 
57
                        set { end_column = value; }
58
58
                }
59
59
 
60
60
                public Document Document {
61
 
                        get { return m_document; }
62
 
                        set { m_document = value; }
 
61
                        get { return document; }
 
62
                        set { document = value; }
63
63
                }
64
64
 
65
65
                public SequencePoint (Document document)
66
66
                {
67
 
                        m_document = document;
68
 
                }
69
 
 
70
 
                public SequencePoint (Document doc, int startLine, int startCol, int endLine, int endCol) : this (doc)
71
 
                {
72
 
                        m_startLine = startLine;
73
 
                        m_startColumn = startCol;
74
 
                        m_endLine = endLine;
75
 
                        m_endColumn = endCol;
 
67
                        this.document = document;
76
68
                }
77
69
        }
78
70
}