141 references to ReaderFlags
PresentationFramework (141)
System\Windows\Markup\BamlRecordReader.cs (128)
456PushContext(ReaderFlags.RealizeDeferContent, null, null, 0); 614CurrentContext.SetFlag(ReaderFlags.InjectedElement); 634if (CurrentContext.CheckFlag(ReaderFlags.InjectedElement)) 636CurrentContext.ClearFlag(ReaderFlags.InjectedElement); 714Debug.Assert(ReaderFlags.DependencyObject == CurrentContext.ContextType); 796Debug.Assert(ReaderFlags.DependencyObject == CurrentContext.ContextType || 797ReaderFlags.ClrObject == CurrentContext.ContextType || 798ReaderFlags.PropertyComplexClr == CurrentContext.ContextType || 799ReaderFlags.PropertyComplexDP == CurrentContext.ContextType); 802if (ReaderFlags.DependencyObject == CurrentContext.ContextType || 803ReaderFlags.ClrObject == CurrentContext.ContextType || 804ReaderFlags.PropertyComplexClr == CurrentContext.ContextType || 805ReaderFlags.PropertyComplexDP == CurrentContext.ContextType) 819if (ReaderFlags.DependencyObject == CurrentContext.ContextType) 832out ReaderFlags flags, 842flags = ReaderFlags.Unknown; 875protected ReaderFlags GetFlagsFromType(Type elementType) 877ReaderFlags flags = (typeof(DependencyObject).IsAssignableFrom(elementType) ? ReaderFlags.DependencyObject : 878ReaderFlags.ClrObject); 882flags |= ReaderFlags.IDictionary; 886flags |= ReaderFlags.IList; 890flags |= ReaderFlags.ArrayExt; 894flags |= ReaderFlags.IAddChild; 902internal static void CheckForTreeAdd(ref ReaderFlags flags, ReaderContextStackData context) 908(context.ContextType != ReaderFlags.ConstructorParams && 909context.ContextType != ReaderFlags.RealizeDeferContent)) 911flags |= ReaderFlags.NeedToAddToTree; 996ReaderFlags flags = ReaderFlags.Unknown; 1009(ReaderFlags.PropertyComplexClr == currentContext.ContextType || 1010ReaderFlags.PropertyComplexDP == currentContext.ContextType) && 1103else if (CurrentContext.CheckFlag(ReaderFlags.IDictionary)) 1173(ReaderFlags.DependencyObject != CurrentContext.ContextType && 1174ReaderFlags.ClrObject != CurrentContext.ContextType)) 1204Debug.Assert(!CurrentContext.CheckFlag(ReaderFlags.NeedToAddToTree), "Failed to add Element to tree before popping stack"); 1206ReaderFlags flags = CurrentContext.ContextFlags; 1215if ((flags & (ReaderFlags.AddedToTree)) == 0 && 1218Debug.Assert( CurrentContext.ContextType != ReaderFlags.PropertyComplexClr ); 1219Debug.Assert( CurrentContext.ContextType != ReaderFlags.PropertyComplexDP ); 1223case ReaderFlags.RealizeDeferContent: 1228case ReaderFlags.ConstructorParams: 1243ReaderFlags flags = (elementType.IsAssignableFrom(typeof(DependencyObject)) ? 1244ReaderFlags.DependencyObject : 1245ReaderFlags.ClrObject) | 1246ReaderFlags.NeedToAddToTree; 1271Debug.Assert(CurrentContext.ContextType == ReaderFlags.ConstructorParams); 1376PushContext(ReaderFlags.ConstructorParams, null, null, 0); 1400if (CurrentContext.CheckFlag(ReaderFlags.SingletonConstructorParam)) 1918PushContext(ReaderFlags.ClrObject | ReaderFlags.NeedToAddToTree, value, null, 0); 1932(ReaderFlags.DependencyObject != CurrentContext.ContextType && 1933ReaderFlags.ClrObject != CurrentContext.ContextType)) 1985else if ( (CurrentContext.ContextType == ReaderFlags.PropertyComplexClr) 1986|| (CurrentContext.ContextType == ReaderFlags.PropertyComplexDP) ) 2033!(ReaderFlags.ClrObject == CurrentContext.ContextType || 2034ReaderFlags.DependencyObject == CurrentContext.ContextType)) 2044ReaderFlags.DependencyObject == CurrentContext.ContextType /*targetIsDependencyObject*/ ); 2053PushContext(ReaderFlags.PropertyComplexDP, propertyDefinition.AttributeInfo, propertyDefinition.PropertyType, 0); 2058PushContext(ReaderFlags.PropertyComplexClr, propertyDefinition.PropertyInfo, propertyDefinition.PropertyType, 0); 2063PushContext(ReaderFlags.PropertyComplexClr, propertyDefinition.AttachedPropertySetter, propertyDefinition.PropertyType, 0); 2068PushContext(ReaderFlags.PropertyComplexClr, propertyDefinition.AttachedPropertyGetter, propertyDefinition.PropertyType, 0); 2181(ReaderFlags.DependencyObject != CurrentContext.ContextType && 2182ReaderFlags.ClrObject != CurrentContext.ContextType)) 2272(ReaderFlags.DependencyObject != CurrentContext.ContextType && 2273ReaderFlags.ClrObject != CurrentContext.ContextType)) 2287(ReaderFlags.DependencyObject != CurrentContext.ContextType && 2288ReaderFlags.ClrObject != CurrentContext.ContextType)) 2303(ReaderFlags.DependencyObject != CurrentContext.ContextType && 2304ReaderFlags.ClrObject != CurrentContext.ContextType)) 2426(ReaderFlags.DependencyObject != CurrentContext.ContextType && 2427ReaderFlags.ClrObject != CurrentContext.ContextType)) 2627(ReaderFlags.DependencyObject != CurrentContext.ContextType && 2628ReaderFlags.ClrObject != CurrentContext.ContextType)) 2983PushContext(ReaderFlags.PropertyArray | ReaderFlags.CollectionHolder, holder, holder.PropertyType, 0); 3030ReaderFlags flags = ReaderFlags.Unknown; 3033flags = ReaderFlags.PropertyIList; 3037flags = ReaderFlags.PropertyIAddChild; 3044flags = ReaderFlags.PropertyIAddChild; 3056PushContext(flags | ReaderFlags.CollectionHolder, holder, expectedType, 0); 3080PushContext(ReaderFlags.PropertyIDictionary | ReaderFlags.CollectionHolder, holder, holder.PropertyType, 0); 3127if (context.ContextType == ReaderFlags.PropertyArray) 3180if (context.CheckFlag(ReaderFlags.IDictionary)) 3184else if (context.ContextType == ReaderFlags.PropertyIDictionary) 3201if (context.CheckFlag(ReaderFlags.IList)) 3205else if (context.ContextType == ReaderFlags.PropertyIList) 3222if (context.CheckFlag(ReaderFlags.IAddChild)) 3226else if (context.ContextType == ReaderFlags.PropertyIAddChild) 3245if (context.CheckFlag(ReaderFlags.ArrayExt)) 3249else if (context.ContextType == ReaderFlags.PropertyArray) 3380if (parentContext.CheckFlag(ReaderFlags.CollectionHolder)) 3442case ReaderFlags.DependencyObject: 3443case ReaderFlags.ClrObject: 3498case ReaderFlags.PropertyComplexDP: 3531case ReaderFlags.PropertyComplexClr: 3555case ReaderFlags.PropertyIAddChild: 3569case ReaderFlags.PropertyIList: 3582case ReaderFlags.ConstructorParams: 3633ReaderFlags.PropertyComplexDP == CurrentContext.ContextType && 3837ReaderFlags.PropertyComplexClr == CurrentContext.ContextType && 3886ReaderFlags.ConstructorParams == CurrentContext.ContextType); 3899CurrentContext.SetFlag(ReaderFlags.SingletonConstructorParam); 3901else if (CurrentContext.CheckFlag(ReaderFlags.SingletonConstructorParam)) 3907CurrentContext.ClearFlag(ReaderFlags.SingletonConstructorParam); 4086else if (stackData.ContextType == ReaderFlags.DependencyObject) 4102else if (stackData.CheckFlag(ReaderFlags.StyleObject)) 4108else if (stackData.CheckFlag(ReaderFlags.FrameworkTemplateObject)) 4277ReaderFlags contextFlags, 4287ReaderFlags contextFlags, 4519ReaderFlags parentContextType = parentContext != null ? parentContext.ContextType : ReaderFlags.Unknown; 4521if (parentContextType == ReaderFlags.PropertyComplexClr || 4522parentContextType == ReaderFlags.PropertyComplexDP || 4523parentContextType == ReaderFlags.PropertyIList || 4524parentContextType == ReaderFlags.PropertyIDictionary || 4525parentContextType == ReaderFlags.PropertyArray || 4526parentContextType == ReaderFlags.PropertyIAddChild) 4577(ReaderFlags.DependencyObject != currentContext.ContextType && 4578ReaderFlags.ClrObject != currentContext.ContextType)) 4741if( parentContext.ContextType == ReaderFlags.PropertyComplexClr ) 4751if( parentContext.ContextType == ReaderFlags.PropertyComplexDP ) 4801if (parentContext.CheckFlag(ReaderFlags.CollectionHolder)) 4843parentContext.CheckFlag(ReaderFlags.CollectionHolder) && 4854if (currentContext.CheckFlag(ReaderFlags.ArrayExt)) 5304ParentContext.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;