| | | 1 | | namespace DirectSight.Parser; |
| | | 2 | | |
| | | 3 | | /// <summary> |
| | | 4 | | /// Temporar class to create <see cref="Analysis.CodeElement"/> once all required information is available. |
| | | 5 | | /// </summary> |
| | | 6 | | internal class CodeElementBase |
| | | 7 | | { |
| | | 8 | | /// <summary> |
| | | 9 | | /// Initializes a new instance of the <see cref="CodeElementBase" /> class. |
| | | 10 | | /// </summary> |
| | | 11 | | /// <param name="name">The name of the method.</param> |
| | | 12 | | /// <param name="firstLine">The first line.</param> |
| | 0 | 13 | | public CodeElementBase(string name, int firstLine) |
| | 0 | 14 | | { |
| | 0 | 15 | | this.Name = name; |
| | 0 | 16 | | this.FirstLine = firstLine; |
| | 0 | 17 | | } |
| | | 18 | | |
| | | 19 | | /// <summary> |
| | | 20 | | /// Gets the name of the method. |
| | | 21 | | /// </summary> |
| | 0 | 22 | | public string Name { get; } |
| | | 23 | | |
| | | 24 | | /// <summary> |
| | | 25 | | /// Gets the first line. |
| | | 26 | | /// </summary> |
| | 0 | 27 | | public int FirstLine { get; } |
| | | 28 | | |
| | | 29 | | /// <summary> |
| | | 30 | | /// Gets or sets a value indicating whether the method has not been executed. |
| | | 31 | | /// </summary> |
| | 0 | 32 | | public bool NotExecuted { get; set; } |
| | | 33 | | |
| | | 34 | | /// <summary> |
| | | 35 | | /// Returns a <see cref="string"/> that represents this instance. |
| | | 36 | | /// </summary> |
| | | 37 | | /// <returns> |
| | | 38 | | /// A <see cref="string"/> that represents this instance. |
| | | 39 | | /// </returns> |
| | | 40 | | public override string ToString() |
| | 0 | 41 | | { |
| | 0 | 42 | | return this.Name; |
| | 0 | 43 | | } |
| | | 44 | | } |