11 instantiations of DocumentLocation
System.Activities (11)
System\Activities\Debugger\CharacterSpottingTextReader.cs (2)
64
return new
DocumentLocation
(this.currentLine, this.currentPosition);
97
DocumentLocation nextLocation = new
DocumentLocation
(afterLocation.LineNumber, new OneBasedCounter(afterLocation.LinePosition.Value + 1));
System\Activities\Debugger\DocumentRange.cs (2)
26
: this(new
DocumentLocation
(startLineNumber, startLinePosition), new
DocumentLocation
(endLineNumber, endLinePosition))
System\Activities\Debugger\XamlDebuggerXmlReader.cs (5)
456
DocumentLocation currentLocation = new
DocumentLocation
(this.Current.LineNumber, this.Current.LinePosition);
603
DocumentLocation myStartLocation = new
DocumentLocation
(startNode.LineNumber, startNode.LinePosition);
611
DocumentLocation myEndLocation = new
DocumentLocation
(this.Current.LineNumber, this.Current.LinePosition);
617
DocumentLocation myRealEndBracket = new
DocumentLocation
(myEndBracket.LineNumber.Value, myEndBracket.LinePosition.Value + 1);
626
new
DocumentLocation
(valueRange.End.LineNumber.Value, valueRange.End.LinePosition.Value + 1));
System\Activities\Debugger\XmlReaderWithSourceLocation.cs (2)
107
return new
DocumentLocation
(this.BaseReaderAsLineInfo.LineNumber, this.BaseReaderAsLineInfo.LinePosition);
239
return new
DocumentLocation
(contentEnd.LineNumber.Value, linePosition);
90 references to DocumentLocation
System.Activities (90)
System\Activities\Debugger\CharacterSpottingTextReader.cs (20)
24
private List<
DocumentLocation
> startAngleBrackets;
25
private List<
DocumentLocation
> endAngleBrackets;
26
private List<
DocumentLocation
> singleQuotes;
27
private List<
DocumentLocation
> doubleQuotes;
28
private List<
DocumentLocation
> endLines;
36
this.startAngleBrackets = new List<
DocumentLocation
>();
37
this.endAngleBrackets = new List<
DocumentLocation
>();
38
this.singleQuotes = new List<
DocumentLocation
>();
39
this.doubleQuotes = new List<
DocumentLocation
>();
40
this.endLines = new List<
DocumentLocation
>();
60
private
DocumentLocation
CurrentLocation
90
internal
DocumentLocation
FindCharacterStrictlyAfter(char c,
DocumentLocation
afterLocation)
92
List<
DocumentLocation
> locationList = this.GetLocationList(c);
97
DocumentLocation
nextLocation = new DocumentLocation(afterLocation.LineNumber, new OneBasedCounter(afterLocation.LinePosition.Value + 1));
116
internal
DocumentLocation
FindCharacterStrictlyBefore(char c,
DocumentLocation
documentLocation)
118
List<
DocumentLocation
> locationList = this.GetLocationList(c);
154
private List<
DocumentLocation
> GetLocationList(char c)
203
List<
DocumentLocation
> locations = this.GetLocationList(lastCharacterRead);
System\Activities\Debugger\CharacterSpottingTextReader.UnitTest.cs (4)
21
List<
DocumentLocation
> ICharacterSpottingTextReaderForUnitTest.StartBrackets
26
List<
DocumentLocation
> ICharacterSpottingTextReaderForUnitTest.EndBrackets
31
List<
DocumentLocation
> ICharacterSpottingTextReaderForUnitTest.SingleQuotes
36
List<
DocumentLocation
> ICharacterSpottingTextReaderForUnitTest.DoubleQuotes
System\Activities\Debugger\DocumentLocation.cs (4)
11
internal class DocumentLocation : IEquatable<
DocumentLocation
>, IComparable<
DocumentLocation
>
39
public bool Equals(
DocumentLocation
that)
54
public int CompareTo(
DocumentLocation
that)
System\Activities\Debugger\DocumentRange.cs (6)
13
private
DocumentLocation
start;
14
private
DocumentLocation
end;
16
internal DocumentRange(
DocumentLocation
start,
DocumentLocation
end)
30
internal
DocumentLocation
Start
35
internal
DocumentLocation
End
System\Activities\Debugger\ICharacterSpottingTextReaderForUnitTest.cs (4)
15
List<
DocumentLocation
> StartBrackets { get; }
17
List<
DocumentLocation
> EndBrackets { get; }
19
List<
DocumentLocation
> SingleQuotes { get; }
21
List<
DocumentLocation
> DoubleQuotes { get; }
System\Activities\Debugger\XamlDebuggerXmlReader.cs (8)
456
DocumentLocation
currentLocation = new DocumentLocation(this.Current.LineNumber, this.Current.LinePosition);
600
DocumentLocation
myStartBracket = null;
601
DocumentLocation
myEndBracket = null;
603
DocumentLocation
myStartLocation = new DocumentLocation(startNode.LineNumber, startNode.LinePosition);
611
DocumentLocation
myEndLocation = new DocumentLocation(this.Current.LineNumber, this.Current.LinePosition);
617
DocumentLocation
myRealEndBracket = new DocumentLocation(myEndBracket.LineNumber.Value, myEndBracket.LinePosition.Value + 1);
642
private void InjectLineInfoMembersToBuffer(
DocumentLocation
startPosition,
DocumentLocation
endPosition)
System\Activities\Debugger\XmlReaderWithSourceLocation.cs (44)
14
private Dictionary<
DocumentLocation
, DocumentRange> attributeValueRanges;
15
private Dictionary<
DocumentLocation
, DocumentRange> emptyElementRanges;
16
private Dictionary<
DocumentLocation
, DocumentRange> contentValueRanges;
17
private Dictionary<
DocumentLocation
,
DocumentLocation
> startElementLocations;
18
private Dictionary<
DocumentLocation
,
DocumentLocation
> endElementLocations;
20
private Stack<
DocumentLocation
> contentStartLocationStack;
35
this.contentStartLocationStack = new Stack<
DocumentLocation
>();
38
public Dictionary<
DocumentLocation
, DocumentRange> AttributeValueRanges
44
this.attributeValueRanges = new Dictionary<
DocumentLocation
, DocumentRange>();
51
public Dictionary<
DocumentLocation
, DocumentRange> ContentValueRanges
57
this.contentValueRanges = new Dictionary<
DocumentLocation
, DocumentRange>();
64
public Dictionary<
DocumentLocation
, DocumentRange> EmptyElementRanges
70
this.emptyElementRanges = new Dictionary<
DocumentLocation
, DocumentRange>();
77
public Dictionary<
DocumentLocation
,
DocumentLocation
> StartElementLocations
83
this.startElementLocations = new Dictionary<
DocumentLocation
,
DocumentLocation
>();
90
public Dictionary<
DocumentLocation
,
DocumentLocation
> EndElementLocations
96
this.endElementLocations = new Dictionary<
DocumentLocation
,
DocumentLocation
>();
103
private
DocumentLocation
CurrentLocation
116
DocumentLocation
elementLocation = this.CurrentLocation;
124
DocumentLocation
startElementBracket = this.FindStartElementBracket(elementLocation);
142
DocumentLocation
memberLocation = this.CurrentLocation;
152
DocumentLocation
endElementLocation = this.CurrentLocation;
153
DocumentLocation
endElementBracket = this.FindEndElementBracket(endElementLocation);
158
DocumentLocation
contentStartLocation = this.contentStartLocationStack.Pop();
161
DocumentLocation
contentEnd = this.FindContentEndBefore(endElementLocation);
197
private
DocumentLocation
FindStartElementBracket(
DocumentLocation
elementLocation)
202
private
DocumentLocation
FindEndElementBracket(
DocumentLocation
elementLocation)
207
private DocumentRange FindEmptyElementRange(
DocumentLocation
elementLocation)
209
DocumentLocation
startBracket = this.FindStartElementBracket(elementLocation);
210
DocumentLocation
endBracket = this.FindEndElementBracket(elementLocation);
217
private DocumentRange FindAttributeValueLocation(
DocumentLocation
memberLocation)
220
DocumentLocation
attributeStart = this.characterSpottingTextReader.FindCharacterStrictlyAfter(this.QuoteChar, memberLocation);
222
DocumentLocation
attributeEnd = this.characterSpottingTextReader.FindCharacterStrictlyAfter(this.QuoteChar, attributeStart);
227
private
DocumentLocation
FindContentEndBefore(
DocumentLocation
location)
229
DocumentLocation
contentEnd = this.FindStartElementBracket(location);