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