141 references to ReaderFlags
PresentationFramework (141)
System\Windows\Markup\BamlRecordReader.cs (128)
452PushContext(ReaderFlags.RealizeDeferContent, null, null, 0); 610CurrentContext.SetFlag(ReaderFlags.InjectedElement); 630if (CurrentContext.CheckFlag(ReaderFlags.InjectedElement)) 632CurrentContext.ClearFlag(ReaderFlags.InjectedElement); 710Debug.Assert(ReaderFlags.DependencyObject == CurrentContext.ContextType); 792Debug.Assert(ReaderFlags.DependencyObject == CurrentContext.ContextType || 793ReaderFlags.ClrObject == CurrentContext.ContextType || 794ReaderFlags.PropertyComplexClr == CurrentContext.ContextType || 795ReaderFlags.PropertyComplexDP == CurrentContext.ContextType); 798if (ReaderFlags.DependencyObject == CurrentContext.ContextType || 799ReaderFlags.ClrObject == CurrentContext.ContextType || 800ReaderFlags.PropertyComplexClr == CurrentContext.ContextType || 801ReaderFlags.PropertyComplexDP == CurrentContext.ContextType) 815if (ReaderFlags.DependencyObject == CurrentContext.ContextType) 828out ReaderFlags flags, 838flags = ReaderFlags.Unknown; 871protected ReaderFlags GetFlagsFromType(Type elementType) 873ReaderFlags flags = (typeof(DependencyObject).IsAssignableFrom(elementType) ? ReaderFlags.DependencyObject : 874ReaderFlags.ClrObject); 878flags |= ReaderFlags.IDictionary; 882flags |= ReaderFlags.IList; 886flags |= ReaderFlags.ArrayExt; 890flags |= ReaderFlags.IAddChild; 898internal static void CheckForTreeAdd(ref ReaderFlags flags, ReaderContextStackData context) 904(context.ContextType != ReaderFlags.ConstructorParams && 905context.ContextType != ReaderFlags.RealizeDeferContent)) 907flags |= ReaderFlags.NeedToAddToTree; 992ReaderFlags flags = ReaderFlags.Unknown; 1005(ReaderFlags.PropertyComplexClr == currentContext.ContextType || 1006ReaderFlags.PropertyComplexDP == currentContext.ContextType) && 1099else if (CurrentContext.CheckFlag(ReaderFlags.IDictionary)) 1169(ReaderFlags.DependencyObject != CurrentContext.ContextType && 1170ReaderFlags.ClrObject != CurrentContext.ContextType)) 1200Debug.Assert(!CurrentContext.CheckFlag(ReaderFlags.NeedToAddToTree), "Failed to add Element to tree before popping stack"); 1202ReaderFlags flags = CurrentContext.ContextFlags; 1211if ((flags & (ReaderFlags.AddedToTree)) == 0 && 1214Debug.Assert( CurrentContext.ContextType != ReaderFlags.PropertyComplexClr ); 1215Debug.Assert( CurrentContext.ContextType != ReaderFlags.PropertyComplexDP ); 1219case ReaderFlags.RealizeDeferContent: 1224case ReaderFlags.ConstructorParams: 1239ReaderFlags flags = (elementType.IsAssignableFrom(typeof(DependencyObject)) ? 1240ReaderFlags.DependencyObject : 1241ReaderFlags.ClrObject) | 1242ReaderFlags.NeedToAddToTree; 1267Debug.Assert(CurrentContext.ContextType == ReaderFlags.ConstructorParams); 1372PushContext(ReaderFlags.ConstructorParams, null, null, 0); 1396if (CurrentContext.CheckFlag(ReaderFlags.SingletonConstructorParam)) 1914PushContext(ReaderFlags.ClrObject | ReaderFlags.NeedToAddToTree, value, null, 0); 1928(ReaderFlags.DependencyObject != CurrentContext.ContextType && 1929ReaderFlags.ClrObject != CurrentContext.ContextType)) 1981else if ( (CurrentContext.ContextType == ReaderFlags.PropertyComplexClr) 1982|| (CurrentContext.ContextType == ReaderFlags.PropertyComplexDP) ) 2029!(ReaderFlags.ClrObject == CurrentContext.ContextType || 2030ReaderFlags.DependencyObject == CurrentContext.ContextType)) 2040ReaderFlags.DependencyObject == CurrentContext.ContextType /*targetIsDependencyObject*/ ); 2049PushContext(ReaderFlags.PropertyComplexDP, propertyDefinition.AttributeInfo, propertyDefinition.PropertyType, 0); 2054PushContext(ReaderFlags.PropertyComplexClr, propertyDefinition.PropertyInfo, propertyDefinition.PropertyType, 0); 2059PushContext(ReaderFlags.PropertyComplexClr, propertyDefinition.AttachedPropertySetter, propertyDefinition.PropertyType, 0); 2064PushContext(ReaderFlags.PropertyComplexClr, propertyDefinition.AttachedPropertyGetter, propertyDefinition.PropertyType, 0); 2177(ReaderFlags.DependencyObject != CurrentContext.ContextType && 2178ReaderFlags.ClrObject != CurrentContext.ContextType)) 2268(ReaderFlags.DependencyObject != CurrentContext.ContextType && 2269ReaderFlags.ClrObject != CurrentContext.ContextType)) 2283(ReaderFlags.DependencyObject != CurrentContext.ContextType && 2284ReaderFlags.ClrObject != CurrentContext.ContextType)) 2299(ReaderFlags.DependencyObject != CurrentContext.ContextType && 2300ReaderFlags.ClrObject != CurrentContext.ContextType)) 2422(ReaderFlags.DependencyObject != CurrentContext.ContextType && 2423ReaderFlags.ClrObject != CurrentContext.ContextType)) 2623(ReaderFlags.DependencyObject != CurrentContext.ContextType && 2624ReaderFlags.ClrObject != CurrentContext.ContextType)) 2976PushContext(ReaderFlags.PropertyArray | ReaderFlags.CollectionHolder, holder, holder.PropertyType, 0); 3023ReaderFlags flags = ReaderFlags.Unknown; 3026flags = ReaderFlags.PropertyIList; 3030flags = ReaderFlags.PropertyIAddChild; 3037flags = ReaderFlags.PropertyIAddChild; 3049PushContext(flags | ReaderFlags.CollectionHolder, holder, expectedType, 0); 3073PushContext(ReaderFlags.PropertyIDictionary | ReaderFlags.CollectionHolder, holder, holder.PropertyType, 0); 3120if (context.ContextType == ReaderFlags.PropertyArray) 3173if (context.CheckFlag(ReaderFlags.IDictionary)) 3177else if (context.ContextType == ReaderFlags.PropertyIDictionary) 3194if (context.CheckFlag(ReaderFlags.IList)) 3198else if (context.ContextType == ReaderFlags.PropertyIList) 3215if (context.CheckFlag(ReaderFlags.IAddChild)) 3219else if (context.ContextType == ReaderFlags.PropertyIAddChild) 3238if (context.CheckFlag(ReaderFlags.ArrayExt)) 3242else if (context.ContextType == ReaderFlags.PropertyArray) 3373if (parentContext.CheckFlag(ReaderFlags.CollectionHolder)) 3435case ReaderFlags.DependencyObject: 3436case ReaderFlags.ClrObject: 3491case ReaderFlags.PropertyComplexDP: 3524case ReaderFlags.PropertyComplexClr: 3548case ReaderFlags.PropertyIAddChild: 3562case ReaderFlags.PropertyIList: 3575case ReaderFlags.ConstructorParams: 3626ReaderFlags.PropertyComplexDP == CurrentContext.ContextType && 3830ReaderFlags.PropertyComplexClr == CurrentContext.ContextType && 3879ReaderFlags.ConstructorParams == CurrentContext.ContextType); 3892CurrentContext.SetFlag(ReaderFlags.SingletonConstructorParam); 3894else if (CurrentContext.CheckFlag(ReaderFlags.SingletonConstructorParam)) 3900CurrentContext.ClearFlag(ReaderFlags.SingletonConstructorParam); 4079else if (stackData.ContextType == ReaderFlags.DependencyObject) 4095else if (stackData.CheckFlag(ReaderFlags.StyleObject)) 4101else if (stackData.CheckFlag(ReaderFlags.FrameworkTemplateObject)) 4270ReaderFlags contextFlags, 4280ReaderFlags contextFlags, 4509ReaderFlags parentContextType = parentContext != null ? parentContext.ContextType : ReaderFlags.Unknown; 4511if (parentContextType == ReaderFlags.PropertyComplexClr || 4512parentContextType == ReaderFlags.PropertyComplexDP || 4513parentContextType == ReaderFlags.PropertyIList || 4514parentContextType == ReaderFlags.PropertyIDictionary || 4515parentContextType == ReaderFlags.PropertyArray || 4516parentContextType == ReaderFlags.PropertyIAddChild) 4567(ReaderFlags.DependencyObject != currentContext.ContextType && 4568ReaderFlags.ClrObject != currentContext.ContextType)) 4731if( parentContext.ContextType == ReaderFlags.PropertyComplexClr ) 4741if( parentContext.ContextType == ReaderFlags.PropertyComplexDP ) 4791if (parentContext.CheckFlag(ReaderFlags.CollectionHolder)) 4833parentContext.CheckFlag(ReaderFlags.CollectionHolder) && 4844if (currentContext.CheckFlag(ReaderFlags.ArrayExt)) 5294ParentContext.ContextType == ReaderFlags.PropertyComplexDP)
System\Windows\Markup\ReaderContextStackData.cs (13)
18private ReaderFlags _contextFlags; 35internal ReaderFlags ContextType 37get { return (ReaderFlags)(_contextFlags & ReaderFlags.ContextTypeMask); } 107internal ReaderFlags ContextFlags 116get { return CheckFlag(ReaderFlags.NeedToAddToTree); } 122ContextFlags = ((ContextFlags | ReaderFlags.AddedToTree) & ~ReaderFlags.NeedToAddToTree); 127internal bool CheckFlag(ReaderFlags flag) 133internal void SetFlag(ReaderFlags flag) 139internal void ClearFlag(ReaderFlags flag) 149return ContextType == ReaderFlags.DependencyObject 151ContextType == ReaderFlags.ClrObject;