141 references to ReaderFlags
PresentationFramework (141)
src\Framework\System\Windows\Markup\BamlRecordReader.cs (128)
485PushContext(ReaderFlags.RealizeDeferContent, null, null, 0); 643CurrentContext.SetFlag(ReaderFlags.InjectedElement); 663if (CurrentContext.CheckFlag(ReaderFlags.InjectedElement)) 665CurrentContext.ClearFlag(ReaderFlags.InjectedElement); 743Debug.Assert(ReaderFlags.DependencyObject == CurrentContext.ContextType); 831Debug.Assert(ReaderFlags.DependencyObject == CurrentContext.ContextType || 832ReaderFlags.ClrObject == CurrentContext.ContextType || 833ReaderFlags.PropertyComplexClr == CurrentContext.ContextType || 834ReaderFlags.PropertyComplexDP == CurrentContext.ContextType); 837if (ReaderFlags.DependencyObject == CurrentContext.ContextType || 838ReaderFlags.ClrObject == CurrentContext.ContextType || 839ReaderFlags.PropertyComplexClr == CurrentContext.ContextType || 840ReaderFlags.PropertyComplexDP == CurrentContext.ContextType) 854if (ReaderFlags.DependencyObject == CurrentContext.ContextType) 867out ReaderFlags flags, 877flags = ReaderFlags.Unknown; 910protected ReaderFlags GetFlagsFromType(Type elementType) 912ReaderFlags flags = (typeof(DependencyObject).IsAssignableFrom(elementType) ? ReaderFlags.DependencyObject : 913ReaderFlags.ClrObject); 917flags |= ReaderFlags.IDictionary; 921flags |= ReaderFlags.IList; 925flags |= ReaderFlags.ArrayExt; 929flags |= ReaderFlags.IAddChild; 937internal static void CheckForTreeAdd(ref ReaderFlags flags, ReaderContextStackData context) 943(context.ContextType != ReaderFlags.ConstructorParams && 944context.ContextType != ReaderFlags.RealizeDeferContent)) 946flags |= ReaderFlags.NeedToAddToTree; 1033ReaderFlags flags = ReaderFlags.Unknown; 1046(ReaderFlags.PropertyComplexClr == currentContext.ContextType || 1047ReaderFlags.PropertyComplexDP == currentContext.ContextType) && 1141else if (CurrentContext.CheckFlag(ReaderFlags.IDictionary)) 1212(ReaderFlags.DependencyObject != CurrentContext.ContextType && 1213ReaderFlags.ClrObject != CurrentContext.ContextType)) 1243Debug.Assert(!CurrentContext.CheckFlag(ReaderFlags.NeedToAddToTree), "Failed to add Element to tree before popping stack"); 1245ReaderFlags flags = CurrentContext.ContextFlags; 1254if ((flags & (ReaderFlags.AddedToTree)) == 0 && 1257Debug.Assert( CurrentContext.ContextType != ReaderFlags.PropertyComplexClr ); 1258Debug.Assert( CurrentContext.ContextType != ReaderFlags.PropertyComplexDP ); 1262case ReaderFlags.RealizeDeferContent: 1267case ReaderFlags.ConstructorParams: 1282ReaderFlags flags = (elementType.IsAssignableFrom(typeof(DependencyObject)) ? 1283ReaderFlags.DependencyObject : 1284ReaderFlags.ClrObject) | 1285ReaderFlags.NeedToAddToTree; 1310Debug.Assert(CurrentContext.ContextType == ReaderFlags.ConstructorParams); 1416PushContext(ReaderFlags.ConstructorParams, null, null, 0); 1440if (CurrentContext.CheckFlag(ReaderFlags.SingletonConstructorParam)) 1964PushContext(ReaderFlags.ClrObject | ReaderFlags.NeedToAddToTree, value, null, 0); 1978(ReaderFlags.DependencyObject != CurrentContext.ContextType && 1979ReaderFlags.ClrObject != CurrentContext.ContextType)) 2031else if ( (CurrentContext.ContextType == ReaderFlags.PropertyComplexClr) 2032|| (CurrentContext.ContextType == ReaderFlags.PropertyComplexDP) ) 2079!(ReaderFlags.ClrObject == CurrentContext.ContextType || 2080ReaderFlags.DependencyObject == CurrentContext.ContextType)) 2090ReaderFlags.DependencyObject == CurrentContext.ContextType /*targetIsDependencyObject*/ ); 2099PushContext(ReaderFlags.PropertyComplexDP, propertyDefinition.AttributeInfo, propertyDefinition.PropertyType, 0); 2104PushContext(ReaderFlags.PropertyComplexClr, propertyDefinition.PropertyInfo, propertyDefinition.PropertyType, 0); 2109PushContext(ReaderFlags.PropertyComplexClr, propertyDefinition.AttachedPropertySetter, propertyDefinition.PropertyType, 0); 2114PushContext(ReaderFlags.PropertyComplexClr, propertyDefinition.AttachedPropertyGetter, propertyDefinition.PropertyType, 0); 2227(ReaderFlags.DependencyObject != CurrentContext.ContextType && 2228ReaderFlags.ClrObject != CurrentContext.ContextType)) 2318(ReaderFlags.DependencyObject != CurrentContext.ContextType && 2319ReaderFlags.ClrObject != CurrentContext.ContextType)) 2333(ReaderFlags.DependencyObject != CurrentContext.ContextType && 2334ReaderFlags.ClrObject != CurrentContext.ContextType)) 2349(ReaderFlags.DependencyObject != CurrentContext.ContextType && 2350ReaderFlags.ClrObject != CurrentContext.ContextType)) 2470(ReaderFlags.DependencyObject != CurrentContext.ContextType && 2471ReaderFlags.ClrObject != CurrentContext.ContextType)) 2673(ReaderFlags.DependencyObject != CurrentContext.ContextType && 2674ReaderFlags.ClrObject != CurrentContext.ContextType)) 3031PushContext(ReaderFlags.PropertyArray | ReaderFlags.CollectionHolder, holder, holder.PropertyType, 0); 3078ReaderFlags flags = ReaderFlags.Unknown; 3081flags = ReaderFlags.PropertyIList; 3085flags = ReaderFlags.PropertyIAddChild; 3092flags = ReaderFlags.PropertyIAddChild; 3104PushContext(flags | ReaderFlags.CollectionHolder, holder, expectedType, 0); 3128PushContext(ReaderFlags.PropertyIDictionary | ReaderFlags.CollectionHolder, holder, holder.PropertyType, 0); 3175if (context.ContextType == ReaderFlags.PropertyArray) 3226if (context.CheckFlag(ReaderFlags.IDictionary)) 3230else if (context.ContextType == ReaderFlags.PropertyIDictionary) 3247if (context.CheckFlag(ReaderFlags.IList)) 3251else if (context.ContextType == ReaderFlags.PropertyIList) 3268if (context.CheckFlag(ReaderFlags.IAddChild)) 3272else if (context.ContextType == ReaderFlags.PropertyIAddChild) 3291if (context.CheckFlag(ReaderFlags.ArrayExt)) 3295else if (context.ContextType == ReaderFlags.PropertyArray) 3427if (parentContext.CheckFlag(ReaderFlags.CollectionHolder)) 3489case ReaderFlags.DependencyObject: 3490case ReaderFlags.ClrObject: 3545case ReaderFlags.PropertyComplexDP: 3578case ReaderFlags.PropertyComplexClr: 3602case ReaderFlags.PropertyIAddChild: 3616case ReaderFlags.PropertyIList: 3629case ReaderFlags.ConstructorParams: 3680ReaderFlags.PropertyComplexDP == CurrentContext.ContextType && 3887ReaderFlags.PropertyComplexClr == CurrentContext.ContextType && 3937ReaderFlags.ConstructorParams == CurrentContext.ContextType); 3950CurrentContext.SetFlag(ReaderFlags.SingletonConstructorParam); 3952else if (CurrentContext.CheckFlag(ReaderFlags.SingletonConstructorParam)) 3958CurrentContext.ClearFlag(ReaderFlags.SingletonConstructorParam); 4139else if (stackData.ContextType == ReaderFlags.DependencyObject) 4155else if (stackData.CheckFlag(ReaderFlags.StyleObject)) 4161else if (stackData.CheckFlag(ReaderFlags.FrameworkTemplateObject)) 4332ReaderFlags contextFlags, 4342ReaderFlags contextFlags, 4577ReaderFlags parentContextType = parentContext != null ? parentContext.ContextType : ReaderFlags.Unknown; 4579if (parentContextType == ReaderFlags.PropertyComplexClr || 4580parentContextType == ReaderFlags.PropertyComplexDP || 4581parentContextType == ReaderFlags.PropertyIList || 4582parentContextType == ReaderFlags.PropertyIDictionary || 4583parentContextType == ReaderFlags.PropertyArray || 4584parentContextType == ReaderFlags.PropertyIAddChild) 4636(ReaderFlags.DependencyObject != currentContext.ContextType && 4637ReaderFlags.ClrObject != currentContext.ContextType)) 4800if( parentContext.ContextType == ReaderFlags.PropertyComplexClr ) 4810if( parentContext.ContextType == ReaderFlags.PropertyComplexDP ) 4861if (parentContext.CheckFlag(ReaderFlags.CollectionHolder)) 4904parentContext.CheckFlag(ReaderFlags.CollectionHolder) && 4915if (currentContext.CheckFlag(ReaderFlags.ArrayExt)) 5376ParentContext.ContextType == ReaderFlags.PropertyComplexDP)
src\Framework\System\Windows\Markup\ReaderContextStackData.cs (13)
24ReaderFlags _contextFlags; 41internal ReaderFlags ContextType 43get { return (ReaderFlags)(_contextFlags & ReaderFlags.ContextTypeMask); } 113internal ReaderFlags ContextFlags 122get { return CheckFlag(ReaderFlags.NeedToAddToTree); } 128ContextFlags = ((ContextFlags | ReaderFlags.AddedToTree) & ~ReaderFlags.NeedToAddToTree); 133internal bool CheckFlag(ReaderFlags flag) 139internal void SetFlag(ReaderFlags flag) 145internal void ClearFlag(ReaderFlags flag) 155return ContextType == ReaderFlags.DependencyObject 157ContextType == ReaderFlags.ClrObject;