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)) 2973PushContext(ReaderFlags.PropertyArray | ReaderFlags.CollectionHolder, holder, holder.PropertyType, 0); 3020ReaderFlags flags = ReaderFlags.Unknown; 3023flags = ReaderFlags.PropertyIList; 3027flags = ReaderFlags.PropertyIAddChild; 3034flags = ReaderFlags.PropertyIAddChild; 3046PushContext(flags | ReaderFlags.CollectionHolder, holder, expectedType, 0); 3070PushContext(ReaderFlags.PropertyIDictionary | ReaderFlags.CollectionHolder, holder, holder.PropertyType, 0); 3117if (context.ContextType == ReaderFlags.PropertyArray) 3170if (context.CheckFlag(ReaderFlags.IDictionary)) 3174else if (context.ContextType == ReaderFlags.PropertyIDictionary) 3191if (context.CheckFlag(ReaderFlags.IList)) 3195else if (context.ContextType == ReaderFlags.PropertyIList) 3212if (context.CheckFlag(ReaderFlags.IAddChild)) 3216else if (context.ContextType == ReaderFlags.PropertyIAddChild) 3235if (context.CheckFlag(ReaderFlags.ArrayExt)) 3239else if (context.ContextType == ReaderFlags.PropertyArray) 3370if (parentContext.CheckFlag(ReaderFlags.CollectionHolder)) 3429case ReaderFlags.DependencyObject: 3430case ReaderFlags.ClrObject: 3485case ReaderFlags.PropertyComplexDP: 3518case ReaderFlags.PropertyComplexClr: 3542case ReaderFlags.PropertyIAddChild: 3556case ReaderFlags.PropertyIList: 3569case ReaderFlags.ConstructorParams: 3620ReaderFlags.PropertyComplexDP == CurrentContext.ContextType && 3824ReaderFlags.PropertyComplexClr == CurrentContext.ContextType && 3873ReaderFlags.ConstructorParams == CurrentContext.ContextType); 3886CurrentContext.SetFlag(ReaderFlags.SingletonConstructorParam); 3888else if (CurrentContext.CheckFlag(ReaderFlags.SingletonConstructorParam)) 3894CurrentContext.ClearFlag(ReaderFlags.SingletonConstructorParam); 4073else if (stackData.ContextType == ReaderFlags.DependencyObject) 4089else if (stackData.CheckFlag(ReaderFlags.StyleObject)) 4095else if (stackData.CheckFlag(ReaderFlags.FrameworkTemplateObject)) 4264ReaderFlags contextFlags, 4274ReaderFlags contextFlags, 4503ReaderFlags parentContextType = parentContext != null ? parentContext.ContextType : ReaderFlags.Unknown; 4505if (parentContextType == ReaderFlags.PropertyComplexClr || 4506parentContextType == ReaderFlags.PropertyComplexDP || 4507parentContextType == ReaderFlags.PropertyIList || 4508parentContextType == ReaderFlags.PropertyIDictionary || 4509parentContextType == ReaderFlags.PropertyArray || 4510parentContextType == ReaderFlags.PropertyIAddChild) 4561(ReaderFlags.DependencyObject != currentContext.ContextType && 4562ReaderFlags.ClrObject != currentContext.ContextType)) 4725if( parentContext.ContextType == ReaderFlags.PropertyComplexClr ) 4735if( parentContext.ContextType == ReaderFlags.PropertyComplexDP ) 4785if (parentContext.CheckFlag(ReaderFlags.CollectionHolder)) 4827parentContext.CheckFlag(ReaderFlags.CollectionHolder) && 4838if (currentContext.CheckFlag(ReaderFlags.ArrayExt)) 5288ParentContext.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;