13 instantiations of SourceLocation
System.Activities (6)
System\Activities\Debugger\SourceLocationProvider.cs (2)
244
new
SourceLocation
(symbol.FileName, symbol.GetChecksum(), actSym.StartLine, actSym.StartColumn, actSym.EndLine, actSym.EndColumn));
372
sourceLocation = new
SourceLocation
(path, checksum, startLine, startColumn, endLine, endColumn);
System\Activities\Debugger\State.cs (1)
237
return new
SourceLocation
(newFileName, input.StartLine, input.StartColumn, input.EndLine, input.EndColumn);
System\Activities\Debugger\XamlDebuggerXmlReader.cs (3)
589
SourceLocation valueLocation = new
SourceLocation
(null, startLine, startColumn, endLine, endColumn + 1);
727
this.parent.NotifySourceLocationFound(instance, new
SourceLocation
(/* FileName = */ null, startLine, startColumn, endLine, endColumn), isValueNode: false);
757
new
SourceLocation
(/* FileName = */ null,
System.Activities.Presentation (7)
Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\ViewStateXamlHelper.cs (1)
804
sourceLocation = new
SourceLocation
(null,
Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\WorkflowDesignerXamlHelper.cs (1)
420
return new
SourceLocation
(null, start.Item1.LineNumber, start.Item1.ColumnNumber, end.Item1.LineNumber, end.Item1.ColumnNumber);
System.Activities.Presentation\System\Activities\Presentation\Debugger\DebuggerService.cs (2)
717
return new
SourceLocation
(unresolvedPrefix + this.context.Items.GetValue<WorkflowFileItem>().LoadedFile, this.lastSourceLineNo++);
757
SourceLocation sourceLocationWithFileName = new
SourceLocation
(this.fileName,
System.Activities.Presentation\System\Activities\Presentation\Model\ModelSearchServiceImpl.cs (2)
534
SourceLocation sourceLocation = new
SourceLocation
(/* fileName = */ null, startLine, startColumn, endLine, endColumn);
540
SourceLocation sourceLocation = new
SourceLocation
(/* fileName = */ null, startLine, startColumn, endLine, endColumn);
System.Activities.Presentation\System\Activities\Presentation\Xaml\ObjectToSourceLocationMapping.cs (1)
60
this.deserializedObjectToSourceLocationMapping.Add(key, new
SourceLocation
(/* fileName = */ null,
206 references to SourceLocation
Microsoft.Activities.Build (6)
Microsoft\Activities\Build\Validation\ValidationBuildExtension.cs (6)
158
Dictionary<object,
SourceLocation
> sourceLocations;
168
SourceLocation
violationLocation = null;
204
Dictionary<object,
SourceLocation
> GetErrorInformation(Activity activity)
206
Dictionary<object,
SourceLocation
> sourceLocations = null;
294
public Violation(string fileName, ValidationError validationError,
SourceLocation
sourceLoation)
299
public Violation(string fileName, string message, bool isWarning,
SourceLocation
sourceLocation)
System.Activities (46)
System\Activities\Debugger\DebugManager.cs (4)
92
Dictionary<object,
SourceLocation
> sourceLocations = SourceLocationProvider.GetSourceLocations(activity, out sourcePath, out isTemporaryFile, out checksum);
213
public void Instrument(Activity rootActivity, Dictionary<object,
SourceLocation
> sourceLocations, string typeNamePrefix, Dictionary<string, byte[]> checksumCache)
223
SourceLocation
sourceLocation;
302
void Instrument(Activity activity,
SourceLocation
sourceLocation, string name)
System\Activities\Debugger\SourceLocation.cs (2)
149
SourceLocation
rsl = obj as
SourceLocation
;
System\Activities\Debugger\SourceLocationFoundEventArgs.cs (4)
10
private
SourceLocation
sourceLocation;
13
public SourceLocationFoundEventArgs(object target,
SourceLocation
sourceLocation)
21
internal SourceLocationFoundEventArgs(object target,
SourceLocation
sourceLocation, bool isValueNode)
32
public
SourceLocation
SourceLocation
System\Activities\Debugger\SourceLocationProvider.cs (17)
50
static internal Dictionary<object,
SourceLocation
> GetSourceLocations(Activity rootActivity, out string sourcePath, out bool isTemporaryFile, out byte[] checksum)
93
Dictionary<object,
SourceLocation
> mapping;
120
SourceLocation
tempSourceLocation;
176
mapping = new Dictionary<object,
SourceLocation
>();
188
return new Dictionary<object,
SourceLocation
>();
199
public static Dictionary<object,
SourceLocation
> GetSourceLocations(Activity rootActivity, WorkflowSymbol symbol)
207
internal static Dictionary<object,
SourceLocation
> GetSourceLocations(Activity rootActivity, WorkflowSymbol symbol, bool translateInternalActivityToOrigin)
216
Dictionary<object,
SourceLocation
> newMapping = new Dictionary<object,
SourceLocation
>();
270
public static void CollectMapping(Activity rootActivity1, Activity rootActivity2, Dictionary<object,
SourceLocation
> mapping, string path)
278
static void CollectMapping(Activity rootActivity1, Activity rootActivity2, Dictionary<object,
SourceLocation
> mapping, string path, byte[] checksum, bool requirePrepareForRuntime)
310
SourceLocation
sourceLocation;
356
static void CollectMapping(Activity rootActivity1, Activity rootActivity2, Dictionary<object,
SourceLocation
> mapping, string path, byte[] checksum)
361
static bool TryGetSourceLocation(object obj, string path, byte[] checksum, out
SourceLocation
sourceLocation)
370
SourceLocation
.IsValidRange(startLine, startColumn, endLine, endColumn))
378
public static ICollection<ActivitySymbol> GetSymbols(Activity rootActivity, Dictionary<object,
SourceLocation
> sourceLocations)
393
SourceLocation
sourceLocation;
System\Activities\Debugger\State.cs (5)
26
SourceLocation
location;
48
internal State(
SourceLocation
location, string name, IEnumerable<LocalsItemDescription> earlyLocals, int numberOfEarlyLocals)
72
internal
SourceLocation
Location
186
SourceLocation
ValidateSourceLocation(
SourceLocation
input)
System\Activities\Debugger\StateManager.cs (8)
98
internal State DefineState(
SourceLocation
location)
103
internal State DefineState(
SourceLocation
location, string name)
108
internal State DefineState(
SourceLocation
location, string name, LocalsItemDescription[] earlyLocals, int numberOfEarlyLocals)
113
internal State DefineStateWithDebugInfo(
SourceLocation
location, string name)
430
Dictionary<
SourceLocation
, State> stateMap = new Dictionary<
SourceLocation
, State>();
470
public State DefineState(
SourceLocation
location, string name, LocalsItemDescription[] earlyLocals, int numberOfEarlyLocals)
651
SourceLocation
stateLocation = state.Location;
System\Activities\Debugger\XamlDebuggerXmlReader.cs (3)
402
SourceLocation
sourceLocation = args.SourceLocation;
589
SourceLocation
valueLocation = new SourceLocation(null, startLine, startColumn, endLine, endColumn + 1);
664
private void NotifySourceLocationFound(object instance,
SourceLocation
currentLocation, bool isValueNode)
System\Activities\XamlIntegration\TextExpressionCompiler.cs (3)
73
Dictionary<object,
SourceLocation
> symbols = null;
2474
SourceLocation
sourceLocation = null;
2539
bool TryGetSymbols(Activity rootActivity, out Dictionary<object,
SourceLocation
> symbols, out string fileName)
System.Activities.Presentation (154)
Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\IWorkflowDesignerXamlHelperExecutionContext.cs (2)
28
void OnSourceLocationFound(object target,
SourceLocation
sourceLocation);
30
void OnAfterDeserialize(Dictionary<string,
SourceLocation
> viewStateDataSourceLocationMapping);
Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\ViewStateXamlHelper.cs (6)
284
public static XamlReader ConvertViewStateToAttachedProperties(XamlReader inputReader, ViewStateIdManager idManager, out Dictionary<string,
SourceLocation
> viewStateSourceLocationMap)
649
static XamlReader StripViewStateElement(XamlReader inputReader, out Dictionary<string, XamlNodeList> viewStateInfo, out Dictionary<string,
SourceLocation
> viewStateSourceLocationMap)
684
static void ReadViewStateInfo(XamlReader inputReader, out Dictionary<string, XamlNodeList> viewStateInfo, out Dictionary<string,
SourceLocation
> viewStateSourceLocationMap)
689
viewStateSourceLocationMap = new Dictionary<string,
SourceLocation
>();
698
SourceLocation
viewStateSourceLocation = null;
715
static void ReadViewState(XamlType viewStateType, XamlReader xamlReader, out string viewStateId, out XamlNodeList viewStateNodes, out
SourceLocation
sourceLocation)
Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\WorkflowDesignerXamlHelper.cs (21)
41
private delegate void SourceLocationFoundCallback(object obj,
SourceLocation
sourceLocation);
92
public void OnSourceLocationFound(object target,
SourceLocation
sourceLocation)
97
public void OnAfterDeserialize(Dictionary<string,
SourceLocation
> viewStateDataSourceLocationMapping)
279
Dictionary<object,
SourceLocation
> sourceLocations;
338
Dictionary<object,
SourceLocation
> sourceLocations;
342
internal object DeserializeString(string text, out IList<XamlLoadErrorInfo> loadErrors, out Dictionary<object,
SourceLocation
> sourceLocations)
397
private static
SourceLocation
GetInlineAttributeValueLocation(LineColumnPair startPoint, SourceTextScanner sourceTextScanner)
423
private WorkflowSymbol GetWorkflowSymbol(string fileName, object deserializedObject, Dictionary<object,
SourceLocation
> sourceLocations)
455
private object DeserializeString(string text, DeserializationMode mode, out IList<XamlLoadErrorInfo> loadErrors, out Dictionary<object,
SourceLocation
> sourceLocations)
459
Dictionary<object,
SourceLocation
> collectingSourceLocations = new Dictionary<object,
SourceLocation
>(ObjectReferenceEqualityComparer<object>.Default);
473
Dictionary<string,
SourceLocation
> viewStateDataSourceLocationMapping = null;
526
private KeyValuePair<string,
SourceLocation
> TransformDynamicActivityProperty(
544
SourceLocation
defaultValueLocation = null;
587
return new KeyValuePair<string,
SourceLocation
>(propertyName, defaultValueLocation);
590
return new KeyValuePair<string,
SourceLocation
>();
596
Dictionary<string,
SourceLocation
> propertyValueLocationMapping = new Dictionary<string,
SourceLocation
>();
625
KeyValuePair<string,
SourceLocation
> nameSourceLocation = this.TransformDynamicActivityProperty(reader.ReadSubtree(), objectWriter, sourceTextScanner);
652
foreach (KeyValuePair<string,
SourceLocation
> propertyValueLocation in propertyValueLocationMapping)
655
SourceLocation
propertyLocation = propertyValueLocation.Value;
System.Activities.Presentation\System\Activities\Presentation\Debugger\DebuggerService.cs (68)
29
SourceLocation
currentLocation;
30
SourceLocation
currentContext;
44
Dictionary<object,
SourceLocation
> instanceToSourceLocationMapping;
45
Dictionary<ModelItem,
SourceLocation
> modelItemToSourceLocation;
46
Dictionary<
SourceLocation
, ModelItem> sourceLocationToModelItem;
50
Dictionary<
SourceLocation
, BreakpointTypes> unmappedBreakpoints; // The map contains breakpoint that has no ModelItem
71
this.modelItemToSourceLocation = new Dictionary<ModelItem,
SourceLocation
>();
72
this.sourceLocationToModelItem = new Dictionary<
SourceLocation
, ModelItem>();
76
this.unmappedBreakpoints = new Dictionary<
SourceLocation
, BreakpointTypes>(4);
77
this.instanceToSourceLocationMapping = new Dictionary<object,
SourceLocation
>();
92
public
SourceLocation
SelectedLocation
103
public
SourceLocation
CurrentLocation
127
public void EnsureVisible(
SourceLocation
sourceLocation)
129
SourceLocation
exactLocation = GetExactLocation(sourceLocation);
172
public
SourceLocation
CurrentContext
325
SourceLocation
sourceLocation;
360
void TryActivateUnmappedBreakpoint(
SourceLocation
sourceLocation, ModelItem modelItem)
374
List<
SourceLocation
> unmappedLocations = new List<
SourceLocation
>();
376
foreach (
SourceLocation
unmappedLocation in unmappedLocations)
440
public
SourceLocation
GetExactLocation(
SourceLocation
approximateLocation)
449
SourceLocation
exactLocation = null;
451
foreach (
SourceLocation
sourceLocation in this.instanceToSourceLocationMapping.Values)
471
private static
SourceLocation
FindInnerMostContainer(
SourceLocation
approximateLocation, IEnumerable<
SourceLocation
> availableSourceLocations)
475
SourceLocation
innerMostOuterSourceLocation = null;
477
foreach (
SourceLocation
sourceLocation in availableSourceLocations)
498
internal static
SourceLocation
FindClosestSourceLocation(
SourceLocation
approximateLocation, IEnumerable<
SourceLocation
> availableSourceLocations)
502
SourceLocation
exactLocation = null;
503
SourceLocation
innerMostOuterSourceLocation =
514
foreach (
SourceLocation
sourceLocation in availableSourceLocations)
531
public IDictionary<
SourceLocation
, BreakpointTypes> GetBreakpointLocations()
533
IDictionary<
SourceLocation
, BreakpointTypes> breakpointLocations = new Dictionary<
SourceLocation
, BreakpointTypes>();
540
SourceLocation
breakpointLocation = this.GetSourceLocationFromModelItem(entry.Key);
549
foreach (KeyValuePair<
SourceLocation
, BreakpointTypes> entry in this.unmappedBreakpoints)
558
public void InsertBreakpoint(
SourceLocation
sourceLocation, BreakpointTypes breakpointType)
564
public void UpdateBreakpoint(
SourceLocation
sourceLocation, BreakpointTypes newBreakpointType)
593
public void DeleteBreakpoint(
SourceLocation
sourceLocation)
615
public void UpdateSourceLocations(Dictionary<object,
SourceLocation
> newSourceLocationMapping)
625
Dictionary<
SourceLocation
, BreakpointTypes> newUnmappedBreakpoints = new Dictionary<
SourceLocation
, BreakpointTypes>(this.unmappedBreakpoints.Count);
626
foreach (KeyValuePair<object,
SourceLocation
> kvpEntry in this.instanceToSourceLocationMapping)
641
List<KeyValuePair<object,
SourceLocation
>> unresolvedEntries = this.instanceToSourceLocationMapping.Where(entry => IsUnresolved(entry.Value)).ToList();
650
foreach (KeyValuePair<object,
SourceLocation
> kvp in newSourceLocationMapping)
655
SourceLocation
sourceLocation = kvp.Value;
661
foreach (KeyValuePair<object,
SourceLocation
> unresolvedEntry in unresolvedEntries)
664
SourceLocation
sourceLocation = unresolvedEntry.Value;
690
SourceLocation
sourceLocation = this.GetSourceLocationFromModelItemInstance(addedObject);
715
private
SourceLocation
GenerateUnresolvedLocation()
720
private static bool IsUnresolved(
SourceLocation
sourceLocation)
732
List<KeyValuePair<ModelItem,
SourceLocation
>> resolvedEntries = this.modelItemToSourceLocation.Where(entry => !IsUnresolved(entry.Value)).ToList();
733
foreach (KeyValuePair<ModelItem,
SourceLocation
> resolvedEntry in resolvedEntries)
748
Dictionary<object,
SourceLocation
> updatedSourceLocations = new Dictionary<object,
SourceLocation
>();
754
SourceLocation
sourceLocationWithoutFileName = this.modelSearchService.FindSourceLocation(key);
757
SourceLocation
sourceLocationWithFileName = new SourceLocation(this.fileName,
782
private
SourceLocation
GetSourceLocationFromModelItemInstance(object instance)
784
SourceLocation
sourceLocation;
815
private
SourceLocation
GetSourceLocationFromModelItem(ModelItem modelItem)
818
SourceLocation
sourceLocation = null;
826
private ModelItem GetModelItemFromSourceLocation(
SourceLocation
sourceLocation)
831
private ModelItem GetModelItemFromSourceLocation(
SourceLocation
sourceLocation, bool forceCreate)
841
foreach (KeyValuePair<object,
SourceLocation
> kvp in this.instanceToSourceLocationMapping)
System.Activities.Presentation\System\Activities\Presentation\Debugger\IDesignerDebugView.cs (10)
17
SourceLocation
CurrentContext
21
SourceLocation
CurrentLocation
38
SourceLocation
SelectedLocation
43
IDictionary<
SourceLocation
, BreakpointTypes> GetBreakpointLocations();
46
void DeleteBreakpoint(
SourceLocation
sourceLocation);
47
SourceLocation
GetExactLocation(
SourceLocation
approximateLocation);
48
void InsertBreakpoint(
SourceLocation
sourceLocation, BreakpointTypes breakpointType);
49
void UpdateBreakpoint(
SourceLocation
sourceLocation, BreakpointTypes breakpointType);
50
void EnsureVisible(
SourceLocation
sourceLocation);
System.Activities.Presentation\System\Activities\Presentation\Model\ModelSearchServiceImpl.cs (3)
534
SourceLocation
sourceLocation = new SourceLocation(/* fileName = */ null, startLine, startColumn, endLine, endColumn);
540
SourceLocation
sourceLocation = new SourceLocation(/* fileName = */ null, startLine, startColumn, endLine, endColumn);
544
public
SourceLocation
FindSourceLocation(ModelItem modelItem)
System.Activities.Presentation\System\Activities\Presentation\ObjectReferenceService.cs (1)
182
SourceLocation
updatedSourceLocation = this.modelSearchService.FindSourceLocation(this.modelTreeManager.GetModelItem(subscribedObject));
System.Activities.Presentation\System\Activities\Presentation\SourceLocationUpdatedEventArgs.cs (2)
19
public SourceLocationUpdatedEventArgs(Guid objectReference,
SourceLocation
updatedSourceLocation)
37
public
SourceLocation
UpdatedSourceLocation
System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.Commands.cs (1)
1709
commandParameters.Add(typeof(
SourceLocation
).Name, debuggerService.SelectedLocation);
System.Activities.Presentation\System\Activities\Presentation\WorkflowDesigner.cs (1)
403
Dictionary<object,
SourceLocation
> sourceLocations;
System.Activities.Presentation\System\Activities\Presentation\WorkflowDesigner.SerializationHelpers.cs (3)
56
void IWorkflowDesignerXamlHelperExecutionContext.OnSourceLocationFound(object target,
SourceLocation
sourceLocationFound)
61
void IWorkflowDesignerXamlHelperExecutionContext.OnAfterDeserialize(Dictionary<string,
SourceLocation
> viewStateDataSourceLocationMapping)
89
internal object DeserializeString(string text, out IList<XamlLoadErrorInfo> loadErrors, out Dictionary<object,
SourceLocation
> sourceLocations)
System.Activities.Presentation\System\Activities\Presentation\Xaml\ObjectToSourceLocationMapping.cs (34)
19
private IDictionary<object,
SourceLocation
> deserializedObjectToSourceLocationMapping;
20
private IDictionary<
SourceLocation
, ModelItem> sourceLocationToModelItemMapping;
21
private IDictionary<
SourceLocation
, ModelItem> viewStateSourceLocationToModelItemMapping;
30
this.deserializedObjectToSourceLocationMapping = new OrderedDictionary<object,
SourceLocation
>();
31
this.sourceLocationToModelItemMapping = new Dictionary<
SourceLocation
, ModelItem>();
32
this.viewStateSourceLocationToModelItemMapping = new Dictionary<
SourceLocation
, ModelItem>();
47
internal Dictionary<string,
SourceLocation
> ViewStateDataSourceLocationMapping
53
internal void UpdateMap(object key,
SourceLocation
sourceLocation)
68
Dictionary<object,
SourceLocation
> validMapping = GetValidSourceLocationMapping();
73
SourceLocation
srcLocation = FindMatchSrcLocation(modelItem, validMapping);
81
SourceLocation
viewStateSrcLocation = this.FindViewStateDataSrcLocationByViewStateIdRef(workflowViewStateIdRef);
95
internal ModelItem FindModelItem(
SourceLocation
srcLocation)
101
internal ModelItem FindModelItemOfViewState(
SourceLocation
srcLocation)
107
internal
SourceLocation
FindSourceLocation(ModelItem modelItem)
110
KeyValuePair<
SourceLocation
, ModelItem>? matchingMappingRecord = sourceLocationToModelItemMapping.SingleOrDefault(kvp => object.ReferenceEquals(kvp.Value, modelItem));
121
private static ModelItem FindModelItemInMap(
SourceLocation
sourceLocation, IDictionary<
SourceLocation
, ModelItem> map)
123
SourceLocation
exactSourceLocation = GetExactLocation(sourceLocation, map);
138
private static
SourceLocation
FindSrcLocation(Dictionary<object,
SourceLocation
> mapping, Predicate<object> predicate)
157
SourceLocation
result = mapping[foundedObject];
165
private static
SourceLocation
FindMatchSrcLocation(ModelItem modelItem, Dictionary<object,
SourceLocation
> mapping)
174
private
SourceLocation
FindViewStateDataSrcLocationByViewStateIdRef(string workflowViewStateIdRef)
181
SourceLocation
sourceLocation = null;
187
private static
SourceLocation
GetExactLocation(
SourceLocation
approximateLocation, IDictionary<
SourceLocation
, ModelItem> mapping)
189
SourceLocation
candidate = null;
190
foreach (
SourceLocation
srcLocation in mapping.Keys)
222
private Dictionary<object,
SourceLocation
> GetValidSourceLocationMapping()
224
Dictionary<object,
SourceLocation
> validSrcLocMapping = new Dictionary<object,
SourceLocation
>();
225
foreach (KeyValuePair<object,
SourceLocation
> entry in deserializedObjectToSourceLocationMapping)
System.Activities.Presentation\System\Activities\Presentation\Xaml\SourceLocationExtensions.cs (2)
14
internal static bool Contains(this
SourceLocation
outer,
SourceLocation
inner)