Code Coverage Statistics for Source File
c:\Tools\SD3\src\Libraries\ICSharpCode.TextEditor\Project\Src\Document\HighlightingStrategy\PrevMarker.cs
|
Sequence Point Coverage
N/A
0 of 0
|
Branch Coverage
N/A
0 of 0
|
Lines
63
|
Highlight:
Uncovered Code
Covered Code
| L | V | Source |
|---|---|---|
1 |
// <file> |
|
2 |
// <copyright see="prj:///doc/copyright.txt"/> |
|
3 |
// <license see="prj:///doc/license.txt"/> |
|
4 |
// <owner name="Mike Krüger" email="mike@icsharpcode.net"/> |
|
5 |
// <version>$Revision: 1965 $</version> |
|
6 |
// </file> |
|
7 |
||
8 |
using System; |
|
9 |
using System.Xml; |
|
10 |
||
11 |
namespace ICSharpCode.TextEditor.Document |
|
12 |
{ |
|
13 |
/// <summary> |
|
14 |
/// Used for mark previous token |
|
15 |
/// </summary> |
|
16 |
public class PrevMarker |
|
17 |
{ |
|
18 |
string what; |
|
19 |
HighlightColor color; |
|
20 |
bool markMarker = false; |
|
21 |
||
22 |
/// <value> |
|
23 |
/// String value to indicate to mark previous token |
|
24 |
/// </value> |
|
25 |
public string What { |
|
26 |
get { |
|
27 |
return what; |
|
28 |
} |
|
29 |
} |
|
30 |
||
31 |
/// <value> |
|
32 |
/// Color for marking previous token |
|
33 |
/// </value> |
|
34 |
public HighlightColor Color { |
|
35 |
get { |
|
36 |
return color; |
|
37 |
} |
|
38 |
} |
|
39 |
||
40 |
/// <value> |
|
41 |
/// If true the indication text will be marked with the same color |
|
42 |
/// too |
|
43 |
/// </value> |
|
44 |
public bool MarkMarker { |
|
45 |
get { |
|
46 |
return markMarker; |
|
47 |
} |
|
48 |
} |
|
49 |
||
50 |
/// <summary> |
|
51 |
/// Creates a new instance of <see cref="PrevMarker"/> |
|
52 |
/// </summary> |
|
53 |
public PrevMarker(XmlElement mark) |
|
54 |
{ |
|
55 |
color = new HighlightColor(mark); |
|
56 |
what = mark.InnerText; |
|
57 |
if (mark.Attributes["markmarker"] != null) { |
|
58 |
markMarker = Boolean.Parse(mark.Attributes["markmarker"].InnerText); |
|
59 |
} |
|
60 |
} |
|
61 |
} |
|
62 |
||
63 |
} |