141 references to ReaderFlags
PresentationFramework (141)
System\Windows\Markup\BamlRecordReader.cs (128)
453PushContext(ReaderFlags.RealizeDeferContent, null, null, 0); 611CurrentContext.SetFlag(ReaderFlags.InjectedElement); 631if (CurrentContext.CheckFlag(ReaderFlags.InjectedElement)) 633CurrentContext.ClearFlag(ReaderFlags.InjectedElement); 711Debug.Assert(ReaderFlags.DependencyObject == CurrentContext.ContextType); 793Debug.Assert(ReaderFlags.DependencyObject == CurrentContext.ContextType || 794ReaderFlags.ClrObject == CurrentContext.ContextType || 795ReaderFlags.PropertyComplexClr == CurrentContext.ContextType || 796ReaderFlags.PropertyComplexDP == CurrentContext.ContextType); 799if (ReaderFlags.DependencyObject == CurrentContext.ContextType || 800ReaderFlags.ClrObject == CurrentContext.ContextType || 801ReaderFlags.PropertyComplexClr == CurrentContext.ContextType || 802ReaderFlags.PropertyComplexDP == CurrentContext.ContextType) 816if (ReaderFlags.DependencyObject == CurrentContext.ContextType) 829out ReaderFlags flags, 839flags = ReaderFlags.Unknown; 872protected ReaderFlags GetFlagsFromType(Type elementType) 874ReaderFlags flags = (typeof(DependencyObject).IsAssignableFrom(elementType) ? ReaderFlags.DependencyObject : 875ReaderFlags.ClrObject); 879flags |= ReaderFlags.IDictionary; 883flags |= ReaderFlags.IList; 887flags |= ReaderFlags.ArrayExt; 891flags |= ReaderFlags.IAddChild; 899internal static void CheckForTreeAdd(ref ReaderFlags flags, ReaderContextStackData context) 905(context.ContextType != ReaderFlags.ConstructorParams && 906context.ContextType != ReaderFlags.RealizeDeferContent)) 908flags |= ReaderFlags.NeedToAddToTree; 993ReaderFlags flags = ReaderFlags.Unknown; 1006(ReaderFlags.PropertyComplexClr == currentContext.ContextType || 1007ReaderFlags.PropertyComplexDP == currentContext.ContextType) && 1100else if (CurrentContext.CheckFlag(ReaderFlags.IDictionary)) 1170(ReaderFlags.DependencyObject != CurrentContext.ContextType && 1171ReaderFlags.ClrObject != CurrentContext.ContextType)) 1201Debug.Assert(!CurrentContext.CheckFlag(ReaderFlags.NeedToAddToTree), "Failed to add Element to tree before popping stack"); 1203ReaderFlags flags = CurrentContext.ContextFlags; 1212if ((flags & (ReaderFlags.AddedToTree)) == 0 && 1215Debug.Assert( CurrentContext.ContextType != ReaderFlags.PropertyComplexClr ); 1216Debug.Assert( CurrentContext.ContextType != ReaderFlags.PropertyComplexDP ); 1220case ReaderFlags.RealizeDeferContent: 1225case ReaderFlags.ConstructorParams: 1240ReaderFlags flags = (elementType.IsAssignableFrom(typeof(DependencyObject)) ? 1241ReaderFlags.DependencyObject : 1242ReaderFlags.ClrObject) | 1243ReaderFlags.NeedToAddToTree; 1268Debug.Assert(CurrentContext.ContextType == ReaderFlags.ConstructorParams); 1373PushContext(ReaderFlags.ConstructorParams, null, null, 0); 1397if (CurrentContext.CheckFlag(ReaderFlags.SingletonConstructorParam)) 1915PushContext(ReaderFlags.ClrObject | ReaderFlags.NeedToAddToTree, value, null, 0); 1929(ReaderFlags.DependencyObject != CurrentContext.ContextType && 1930ReaderFlags.ClrObject != CurrentContext.ContextType)) 1982else if ( (CurrentContext.ContextType == ReaderFlags.PropertyComplexClr) 1983|| (CurrentContext.ContextType == ReaderFlags.PropertyComplexDP) ) 2030!(ReaderFlags.ClrObject == CurrentContext.ContextType || 2031ReaderFlags.DependencyObject == CurrentContext.ContextType)) 2041ReaderFlags.DependencyObject == CurrentContext.ContextType /*targetIsDependencyObject*/ ); 2050PushContext(ReaderFlags.PropertyComplexDP, propertyDefinition.AttributeInfo, propertyDefinition.PropertyType, 0); 2055PushContext(ReaderFlags.PropertyComplexClr, propertyDefinition.PropertyInfo, propertyDefinition.PropertyType, 0); 2060PushContext(ReaderFlags.PropertyComplexClr, propertyDefinition.AttachedPropertySetter, propertyDefinition.PropertyType, 0); 2065PushContext(ReaderFlags.PropertyComplexClr, propertyDefinition.AttachedPropertyGetter, propertyDefinition.PropertyType, 0); 2178(ReaderFlags.DependencyObject != CurrentContext.ContextType && 2179ReaderFlags.ClrObject != CurrentContext.ContextType)) 2269(ReaderFlags.DependencyObject != CurrentContext.ContextType && 2270ReaderFlags.ClrObject != CurrentContext.ContextType)) 2284(ReaderFlags.DependencyObject != CurrentContext.ContextType && 2285ReaderFlags.ClrObject != CurrentContext.ContextType)) 2300(ReaderFlags.DependencyObject != CurrentContext.ContextType && 2301ReaderFlags.ClrObject != CurrentContext.ContextType)) 2423(ReaderFlags.DependencyObject != CurrentContext.ContextType && 2424ReaderFlags.ClrObject != CurrentContext.ContextType)) 2624(ReaderFlags.DependencyObject != CurrentContext.ContextType && 2625ReaderFlags.ClrObject != CurrentContext.ContextType)) 2977PushContext(ReaderFlags.PropertyArray | ReaderFlags.CollectionHolder, holder, holder.PropertyType, 0); 3024ReaderFlags flags = ReaderFlags.Unknown; 3027flags = ReaderFlags.PropertyIList; 3031flags = ReaderFlags.PropertyIAddChild; 3038flags = ReaderFlags.PropertyIAddChild; 3050PushContext(flags | ReaderFlags.CollectionHolder, holder, expectedType, 0); 3074PushContext(ReaderFlags.PropertyIDictionary | ReaderFlags.CollectionHolder, holder, holder.PropertyType, 0); 3121if (context.ContextType == ReaderFlags.PropertyArray) 3174if (context.CheckFlag(ReaderFlags.IDictionary)) 3178else if (context.ContextType == ReaderFlags.PropertyIDictionary) 3195if (context.CheckFlag(ReaderFlags.IList)) 3199else if (context.ContextType == ReaderFlags.PropertyIList) 3216if (context.CheckFlag(ReaderFlags.IAddChild)) 3220else if (context.ContextType == ReaderFlags.PropertyIAddChild) 3239if (context.CheckFlag(ReaderFlags.ArrayExt)) 3243else if (context.ContextType == ReaderFlags.PropertyArray) 3374if (parentContext.CheckFlag(ReaderFlags.CollectionHolder)) 3436case ReaderFlags.DependencyObject: 3437case ReaderFlags.ClrObject: 3492case ReaderFlags.PropertyComplexDP: 3525case ReaderFlags.PropertyComplexClr: 3549case ReaderFlags.PropertyIAddChild: 3563case ReaderFlags.PropertyIList: 3576case ReaderFlags.ConstructorParams: 3627ReaderFlags.PropertyComplexDP == CurrentContext.ContextType && 3831ReaderFlags.PropertyComplexClr == CurrentContext.ContextType && 3880ReaderFlags.ConstructorParams == CurrentContext.ContextType); 3893CurrentContext.SetFlag(ReaderFlags.SingletonConstructorParam); 3895else if (CurrentContext.CheckFlag(ReaderFlags.SingletonConstructorParam)) 3901CurrentContext.ClearFlag(ReaderFlags.SingletonConstructorParam); 4080else if (stackData.ContextType == ReaderFlags.DependencyObject) 4096else if (stackData.CheckFlag(ReaderFlags.StyleObject)) 4102else if (stackData.CheckFlag(ReaderFlags.FrameworkTemplateObject)) 4271ReaderFlags contextFlags, 4281ReaderFlags contextFlags, 4510ReaderFlags parentContextType = parentContext != null ? parentContext.ContextType : ReaderFlags.Unknown; 4512if (parentContextType == ReaderFlags.PropertyComplexClr || 4513parentContextType == ReaderFlags.PropertyComplexDP || 4514parentContextType == ReaderFlags.PropertyIList || 4515parentContextType == ReaderFlags.PropertyIDictionary || 4516parentContextType == ReaderFlags.PropertyArray || 4517parentContextType == ReaderFlags.PropertyIAddChild) 4568(ReaderFlags.DependencyObject != currentContext.ContextType && 4569ReaderFlags.ClrObject != currentContext.ContextType)) 4732if( parentContext.ContextType == ReaderFlags.PropertyComplexClr ) 4742if( parentContext.ContextType == ReaderFlags.PropertyComplexDP ) 4792if (parentContext.CheckFlag(ReaderFlags.CollectionHolder)) 4834parentContext.CheckFlag(ReaderFlags.CollectionHolder) && 4845if (currentContext.CheckFlag(ReaderFlags.ArrayExt)) 5295ParentContext.ContextType == ReaderFlags.PropertyComplexDP)
System\Windows\Markup\ReaderContextStackData.cs (13)
19ReaderFlags _contextFlags; 36internal ReaderFlags ContextType 38get { return (ReaderFlags)(_contextFlags & ReaderFlags.ContextTypeMask); } 108internal ReaderFlags ContextFlags 117get { return CheckFlag(ReaderFlags.NeedToAddToTree); } 123ContextFlags = ((ContextFlags | ReaderFlags.AddedToTree) & ~ReaderFlags.NeedToAddToTree); 128internal bool CheckFlag(ReaderFlags flag) 134internal void SetFlag(ReaderFlags flag) 140internal void ClearFlag(ReaderFlags flag) 150return ContextType == ReaderFlags.DependencyObject 152ContextType == ReaderFlags.ClrObject;