6 types derived from LocationReference
System.Activities (6)
System\Activities\DelegateArgument.cs (1)
14public abstract class DelegateArgument : LocationReference
System\Activities\Hosting\SymbolResolver.cs (1)
334class ExternalLocationReference : LocationReference
System\Activities\InlinedLocationReference.cs (1)
10class InlinedLocationReference : LocationReference, ILocationReferenceWrapper
System\Activities\RuntimeArgument.cs (1)
18public sealed class RuntimeArgument : LocationReference
System\Activities\Variable.cs (1)
20public abstract class Variable : LocationReference
System\Activities\XamlIntegration\CompiledLocation.cs (1)
273class CompiledLocationReference : LocationReference
178 references to LocationReference
System.Activities (167)
Microsoft\VisualBasic\Activities\VisualBasicHelper.cs (10)
610delegate bool FindMatch(LocationReference reference, string targetName, Type targetType, out bool terminateSearch); 615static bool FindLocationReferenceMatchShortcut(LocationReference reference, string targetName, Type targetType, out bool terminateSearch) 630static bool FindFirstLocationReferenceMatch(LocationReference reference, string targetName, Type targetType, out bool terminateSearch) 641static bool FindAllLocationReferenceMatch(LocationReference reference, string targetName, Type targetType, out bool terminateSearch) 849LocationReference finalReference = FindLocationReferencesFromEnvironment( 862LocationReference inlinedReference; 1493static LocationReference FindLocationReferencesFromEnvironment(LocationReferenceEnvironment environment, FindMatch findMatch, string targetName, Type targetType, out bool foundMultiple) 1499LocationReference toReturn = null; 1500foreach (LocationReference reference in currentEnvironment.GetLocationReferences()) 1622LocationReference referenceToReturn = null;
Microsoft\VisualBasic\Activities\VisualBasicNameShadowingConstraint.cs (3)
20LocationReference locationReference; 45LocationReference foundLocationReference = null; 52foreach (LocationReference reference in currentEnvironment.GetLocationReferences())
System\Activities\ActivityContext.cs (5)
171public Location<T> GetLocation<T>(LocationReference locationReference) 206public T GetValue<T>(LocationReference locationReference) 218internal T GetValueCore<T>(LocationReference locationReference) 237public void SetValue<T>(LocationReference locationReference, T value) 249internal void SetValueCore<T>(LocationReference locationReference, T value)
System\Activities\ActivityLocationReferenceEnvironment.cs (10)
14Dictionary<string, LocationReference> declarations; 15List<LocationReference> unnamedDeclarations; 45Dictionary<string, LocationReference> Declarations 51this.declarations = new Dictionary<string, LocationReference>(); 58public override bool IsVisible(LocationReference locationReference) 75foreach (LocationReference declaration in activityEnvironment.declarations.Values) 106public void Declare(LocationReference locationReference, Activity owner, ref IList<ValidationError> validationErrors) 114this.unnamedDeclarations = new List<LocationReference>(); 145public override bool TryGetLocationReference(string name, out LocationReference result) 209public override IEnumerable<LocationReference> GetLocationReferences()
System\Activities\ActivityUtilities.cs (3)
381public static ActivityWithResult CreateLocationAccessExpression(LocationReference locationReference, bool isReference, bool useLocationReferenceValue) 521(origin is Activity || origin is Argument || origin is ActivityDelegate || origin is LocationReference)) 1429public static ActivityWithResult CreateNewLocationAccessExpression(Type type, bool isReference, bool useLocationReferenceValue, LocationReference locationReference)
System\Activities\CodeActivityPublicEnvironmentAccessor.cs (10)
50public bool TryGetAccessToPublicLocation(LocationReference publicLocation, 51ArgumentDirection accessDirection, out LocationReference equivalentLocation) 62public bool TryGetReferenceToPublicLocation(LocationReference publicReference, 63out LocationReference equivalentReference) 94internal bool TryGetAccessToPublicLocation(LocationReference publicLocation, 95ArgumentDirection accessDirection, bool useLocationReferenceValue, out LocationReference equivalentLocation) 113internal bool TryGetReferenceToPublicLocation(LocationReference publicReference, 114bool useLocationReferenceValue, out LocationReference equivalentReference) 132internal void CreateArgument(LocationReference sourceReference, ArgumentDirection accessDirection, bool useLocationReferenceValue = false) 138internal void CreateLocationArgument(LocationReference sourceReference, bool useLocationReferenceValue = false)
System\Activities\Debugger\DebugInfo.cs (1)
632LocationReference result;
System\Activities\DelegateArgument.cs (1)
114return context.GetValue<object>((LocationReference)this);
System\Activities\DelegateInArgument.cs (2)
47return context.GetValue<T>((LocationReference)this); 57context.SetValue((LocationReference)this, value);
System\Activities\DelegateOutArgument.cs (2)
48return context.GetValue<T>((LocationReference)this); 71context.SetValue((LocationReference)this, value);
System\Activities\Expressions\ArgumentReference.cs (1)
31public override LocationReference LocationReference
System\Activities\Expressions\ArgumentValue.cs (1)
31public override LocationReference LocationReference
System\Activities\Expressions\CompiledExpressionInvoker.cs (6)
27IList<LocationReference> locationReferences; 53this.locationReferences = new List<LocationReference>(); 243foreach (LocationReference reference in environment.GetLocationReferences()) 322LocationReference reference; 343LocationReference FindLocationReference(string name) 345LocationReference returnValue = null;
System\Activities\Expressions\DelegateArgumentReference.cs (1)
31public override LocationReference LocationReference
System\Activities\Expressions\DelegateArgumentValue.cs (1)
31public override LocationReference LocationReference
System\Activities\Expressions\EnvironmentLocationReference.cs (4)
13LocationReference locationReference; 21internal EnvironmentLocationReference(LocationReference locationReference) 27public virtual LocationReference LocationReference 54ActivityWithResult ILocationReferenceExpression.CreateNewInstance(LocationReference locationReference)
System\Activities\Expressions\EnvironmentLocationValue.cs (4)
13LocationReference locationReference; 21internal EnvironmentLocationValue(LocationReference locationReference) 27public virtual LocationReference LocationReference 54ActivityWithResult ILocationReferenceExpression.CreateNewInstance(LocationReference locationReference)
System\Activities\Expressions\ExpressionServices.cs (2)
106(TypeHelper.AreTypesCompatible(parameters[0].ParameterType, typeof(LocationReference)))) 223(TypeHelper.AreTypesCompatible(parameters[0].ParameterType, typeof(LocationReference))))
System\Activities\Expressions\ILocationReferenceExpression.cs (1)
11ActivityWithResult CreateNewInstance(LocationReference locationReference);
System\Activities\Expressions\ILocationReferenceWrapper.cs (1)
13LocationReference LocationReference
System\Activities\Expressions\LocationReferenceValue.cs (4)
13LocationReference locationReference; 15internal LocationReferenceValue(LocationReference locationReference) 21LocationReference ILocationReferenceWrapper.LocationReference 48ActivityWithResult ILocationReferenceExpression.CreateNewInstance(LocationReference locationReference)
System\Activities\Expressions\VariableReference.cs (1)
29public override LocationReference LocationReference
System\Activities\Expressions\VariableValue.cs (1)
29public override LocationReference LocationReference
System\Activities\ExpressionUtilities.cs (34)
35static Type locationReferenceType = typeof(LocationReference); 42static MethodInfo activityContextGetValueGenericMethod = typeof(ActivityContext).GetMethod("GetValue", new Type[] { typeof(LocationReference) }); 43static MethodInfo activityContextGetLocationGenericMethod = typeof(ActivityContext).GetMethod("GetLocation", new Type[] { typeof(LocationReference) }); 44static MethodInfo locationReferenceGetLocationMethod = typeof(LocationReference).GetMethod("GetLocation", new Type[] { typeof(ActivityContext) }); 62public static Expression CreateIdentifierExpression(LocationReference locationReference) 64return Expression.Call(RuntimeContextParameter, activityContextGetValueGenericMethod.MakeGenericMethod(locationReference.Type), Expression.Constant(locationReference, typeof(LocationReference))); 221internal static bool TryGetInlinedReference(CodeActivityPublicEnvironmentAccessor publicAccessor, LocationReference originalReference, 222bool isLocationExpression, out LocationReference inlinedReference) 471Func<ActivityContext, LocationReference> locationReferenceFunction; 475this.locationReferenceFunction = ExpressionUtilities.Compile<LocationReference>(locationReferenceExpression, expressionParameters); 480LocationReference locationReference = this.locationReferenceFunction(context); 1378static bool TryGetInlinedArgumentReference(MethodCallExpression originalExpression, Expression argumentExpression, out LocationReference inlinedReference, CodeActivityPublicEnvironmentAccessor publicAccessor, bool isLocationExpression) 1455LocationReference inlinedReference; 1458newExpression = Expression.Call(contextExpression, activityContextGetValueGenericMethod.MakeGenericMethod(returnType), Expression.Constant(inlinedReference, typeof(LocationReference))); 1481LocationReference inlinedReference; 1486newExpression = Expression.Call(Expression.Constant(inlinedReference, typeof(LocationReference)), locationReferenceGetLocationMethod, contextExpression); 1490newExpression = Expression.Call(contextExpression, activityContextGetLocationGenericMethod.MakeGenericMethod(returnType), Expression.Constant(inlinedReference, typeof(LocationReference))); 1515LocationReference inlinedReference; 1518newExpression = Expression.Call(contextExpression, activityContextGetValueGenericMethod.MakeGenericMethod(returnType), Expression.Constant(inlinedReference, typeof(LocationReference))); 1541LocationReference inlinedReference; 1546newExpression = Expression.Call(Expression.Constant(inlinedReference, typeof(LocationReference)), locationReferenceGetLocationMethod, originalExpression.Arguments[0]); 1550newExpression = Expression.Call(contextExpression, activityContextGetLocationGenericMethod.MakeGenericMethod(returnType), Expression.Constant(inlinedReference, typeof(LocationReference))); 1616static bool TryGetInlinedLocationReference(MethodCallExpression originalExpression, Expression locationReferenceExpression, out LocationReference inlinedReference, CodeActivityPublicEnvironmentAccessor publicAccessor, bool isLocationExpression) 1620LocationReference locationReference = null; 1622if (CustomMemberResolver(locationReferenceExpression, out tempLocationReference) && tempLocationReference is LocationReference) 1624locationReference = (LocationReference)tempLocationReference; 1630Expression<Func<LocationReference>> locationReferenceLambda = Expression.Lambda<Func<LocationReference>>(locationReferenceExpression); 1631Func<LocationReference> locationReferenceFunc = locationReferenceLambda.Compile(); 1666LocationReference inlinedReference = null; 1685else if (TypeHelper.AreTypesCompatible(parameterExpression.Type, typeof(LocationReference))) 1697newExpression = Expression.Call(originalExpression.Object, activityContextGetValueGenericMethod.MakeGenericMethod(returnType), Expression.Constant(inlinedReference, typeof(LocationReference))); 1717LocationReference inlinedReference; 1720newExpression = Expression.Call(originalExpression.Object, activityContextGetLocationGenericMethod.MakeGenericMethod(returnType), Expression.Constant(inlinedReference, typeof(LocationReference)));
System\Activities\Hosting\SymbolResolver.cs (9)
180internal IEnumerable<KeyValuePair<string, LocationReference>> GetLocationReferenceEnumerator() 184yield return new KeyValuePair<string, LocationReference>(pair.Key, pair.Value); 230internal bool TryGetLocationReference(string name, out LocationReference result) 243internal bool IsVisible(LocationReference locationReference) 303public override bool IsVisible(LocationReference locationReference) 313public override bool TryGetLocationReference(string name, out LocationReference result) 323public override IEnumerable<LocationReference> GetLocationReferences() 325List<LocationReference> list = new List<LocationReference>();
System\Activities\InlinedLocationReference.cs (4)
12LocationReference innerReference; 18public InlinedLocationReference(LocationReference innerReference, Activity validAccessor, ArgumentDirection accessDirection) 26public InlinedLocationReference(LocationReference innerReference, Activity validAccessor) 111LocationReference ILocationReferenceWrapper.LocationReference
System\Activities\LocationReferenceEnvironment.cs (3)
30public abstract bool IsVisible(LocationReference locationReference); 32public abstract bool TryGetLocationReference(string name, out LocationReference result); 34public abstract IEnumerable<LocationReference> GetLocationReferences();
System\Activities\Runtime\LocationEnvironment.cs (6)
26IList<LocationReference> locationsToRegister; 337internal void DeclareHandle(LocationReference locationReference, Location location, ActivityInstance activityInstance) 344internal void DeclareTemporaryLocation<T>(LocationReference locationReference, ActivityInstance activityInstance, bool bufferGetsOnCollapse) 353internal void Declare(LocationReference locationReference, Location location, ActivityInstance activityInstance) 500void RegisterLocation(Location location, LocationReference locationReference, ActivityInstance activityInstance) 735foreach (LocationReference locationReference in this.locationsToRegister)
System\Activities\Runtime\MappableObjectManager.cs (2)
60public void Register(Location location, Activity activity, LocationReference locationOwner, ActivityInstance activityInstance) 96public MappableLocation(LocationReference locationOwner, Activity activity, ActivityInstance activityInstance, Location location)
System\Activities\Variable.cs (4)
236return context.GetValue<object>((LocationReference)this); 246context.SetValue((LocationReference)this, value); 388return context.GetValue<T>((LocationReference)this); 398context.SetValue((LocationReference)this, value);
System\Activities\WorkflowDataContext.cs (5)
84foreach (LocationReference locRef in environment.GetLocationReferences()) 99void AddProperty(LocationReference reference, Dictionary<string, object> names, 197LocationReference reference; 202public PropertyDescriptorImpl(LocationReference reference) 231public LocationReference LocationReference
System\Activities\XamlIntegration\CompiledDataContext.cs (6)
19IList<LocationReference> locationReferences; 23protected CompiledDataContext(IList<LocationReference> locationReferences, ActivityContext activityContext) 29this.locationReferences = new List<LocationReference>(); 40protected CompiledDataContext(IList<LocationReference> locationReferences) 179IList<Location> ConvertReferences(IList<LocationReference> locationReferences, ActivityContext activityContext) 183foreach (LocationReference reference in locationReferences)
System\Activities\XamlIntegration\CompiledLocation.cs (5)
24IList<LocationReference> locationReferences; 40public CompiledLocation(Func<T> getMethod, Action<T> setMethod, IList<LocationReference> locationReferences, IList<Location> locations, int expressionId, Activity compiledRootActivity, ActivityContext currentActivityContext) 147foreach (LocationReference reference in locationReferences) 158this.locationReferences = new List<LocationReference>(); 162this.locationReferences = new List<LocationReference>(value.Count);
System\Activities\XamlIntegration\ExpressionTreeRewriter.cs (4)
14IList<LocationReference> locationReferences; 20public ExpressionTreeRewriter(IList<LocationReference> locationReferences) 49newNode = Expression.Constant(inlinedReference.LocationReference, typeof(LocationReference)); 62foreach (LocationReference locationReference in this.locationReferences)
System\Activities\XamlIntegration\ICompiledExpressionRoot.cs (3)
20bool CanExecuteExpression(string expressionText, bool isReference, IList<LocationReference> locations, out int expressionId); 22object InvokeExpression(int expressionId, IList<LocationReference> locations, ActivityContext activityContext); 27Expression GetExpressionTreeForExpression(int expressionId, IList<LocationReference> locationReferences);
System\Activities\XamlIntegration\TextExpressionCompiler.cs (7)
689LocationReference locationReference; 886getExpressionTreeForExpressionMethod.Parameters.Add(new CodeParameterDeclarationExpression(new CodeTypeReference(typeof(IList<LocationReference>)), "locationReferences")); 936invokeExpressionMethod.Parameters.Add(new CodeParameterDeclarationExpression(new CodeTypeReference(typeof(IList<LocationReference>)), "locations")); 1278isValidMethod.Parameters.Add(new CodeParameterDeclarationExpression(new CodeTypeReference(typeof(IList<LocationReference>)), "locations")); 1919new CodeParameterDeclarationExpression(typeof(IList<LocationReference>), "locations"); 1982CodeParameterDeclarationExpression constructorLocationsParam = new CodeParameterDeclarationExpression(typeof(IList<LocationReference>), "locationReferences"); 2200new CodeTypeReference(typeof(IList<LocationReference>)),
System.Activities.Presentation (11)
System.Activities.Presentation\System\Activities\Presentation\View\ParserContext.cs (9)
81public override bool IsVisible(LocationReference reference) 88public override bool TryGetLocationReference(string name, out LocationReference result) 90result = (LocationReference)this.Resolve(name); 112public override IEnumerable<LocationReference> GetLocationReferences() 114List<LocationReference> toReturn = new List<LocationReference>(); 121toReturn.Add(modelItem.GetCurrentValue() as LocationReference); 129IEnumerable<LocationReference> variables = this.GetLocationReferences(); 130return variables.FirstOrDefault<LocationReference>(p =>
System.Activities.Presentation\System\Activities\Presentation\View\VariableDesigner.xaml.cs (2)
877LocationReference locationReference = modelVariable.GetCurrentValue() as LocationReference;