141 references to ReaderFlags
PresentationFramework (141)
System\Windows\Markup\BamlRecordReader.cs (128)
471PushContext(ReaderFlags.RealizeDeferContent, null, null, 0); 629CurrentContext.SetFlag(ReaderFlags.InjectedElement); 649if (CurrentContext.CheckFlag(ReaderFlags.InjectedElement)) 651CurrentContext.ClearFlag(ReaderFlags.InjectedElement); 729Debug.Assert(ReaderFlags.DependencyObject == CurrentContext.ContextType); 811Debug.Assert(ReaderFlags.DependencyObject == CurrentContext.ContextType || 812ReaderFlags.ClrObject == CurrentContext.ContextType || 813ReaderFlags.PropertyComplexClr == CurrentContext.ContextType || 814ReaderFlags.PropertyComplexDP == CurrentContext.ContextType); 817if (ReaderFlags.DependencyObject == CurrentContext.ContextType || 818ReaderFlags.ClrObject == CurrentContext.ContextType || 819ReaderFlags.PropertyComplexClr == CurrentContext.ContextType || 820ReaderFlags.PropertyComplexDP == CurrentContext.ContextType) 834if (ReaderFlags.DependencyObject == CurrentContext.ContextType) 847out ReaderFlags flags, 857flags = ReaderFlags.Unknown; 890protected ReaderFlags GetFlagsFromType(Type elementType) 892ReaderFlags flags = (typeof(DependencyObject).IsAssignableFrom(elementType) ? ReaderFlags.DependencyObject : 893ReaderFlags.ClrObject); 897flags |= ReaderFlags.IDictionary; 901flags |= ReaderFlags.IList; 905flags |= ReaderFlags.ArrayExt; 909flags |= ReaderFlags.IAddChild; 917internal static void CheckForTreeAdd(ref ReaderFlags flags, ReaderContextStackData context) 923(context.ContextType != ReaderFlags.ConstructorParams && 924context.ContextType != ReaderFlags.RealizeDeferContent)) 926flags |= ReaderFlags.NeedToAddToTree; 1011ReaderFlags flags = ReaderFlags.Unknown; 1024(ReaderFlags.PropertyComplexClr == currentContext.ContextType || 1025ReaderFlags.PropertyComplexDP == currentContext.ContextType) && 1118else if (CurrentContext.CheckFlag(ReaderFlags.IDictionary)) 1188(ReaderFlags.DependencyObject != CurrentContext.ContextType && 1189ReaderFlags.ClrObject != CurrentContext.ContextType)) 1219Debug.Assert(!CurrentContext.CheckFlag(ReaderFlags.NeedToAddToTree), "Failed to add Element to tree before popping stack"); 1221ReaderFlags flags = CurrentContext.ContextFlags; 1230if ((flags & (ReaderFlags.AddedToTree)) == 0 && 1233Debug.Assert( CurrentContext.ContextType != ReaderFlags.PropertyComplexClr ); 1234Debug.Assert( CurrentContext.ContextType != ReaderFlags.PropertyComplexDP ); 1238case ReaderFlags.RealizeDeferContent: 1243case ReaderFlags.ConstructorParams: 1258ReaderFlags flags = (elementType.IsAssignableFrom(typeof(DependencyObject)) ? 1259ReaderFlags.DependencyObject : 1260ReaderFlags.ClrObject) | 1261ReaderFlags.NeedToAddToTree; 1286Debug.Assert(CurrentContext.ContextType == ReaderFlags.ConstructorParams); 1391PushContext(ReaderFlags.ConstructorParams, null, null, 0); 1415if (CurrentContext.CheckFlag(ReaderFlags.SingletonConstructorParam)) 1933PushContext(ReaderFlags.ClrObject | ReaderFlags.NeedToAddToTree, value, null, 0); 1947(ReaderFlags.DependencyObject != CurrentContext.ContextType && 1948ReaderFlags.ClrObject != CurrentContext.ContextType)) 2000else if ( (CurrentContext.ContextType == ReaderFlags.PropertyComplexClr) 2001|| (CurrentContext.ContextType == ReaderFlags.PropertyComplexDP) ) 2048!(ReaderFlags.ClrObject == CurrentContext.ContextType || 2049ReaderFlags.DependencyObject == CurrentContext.ContextType)) 2059ReaderFlags.DependencyObject == CurrentContext.ContextType /*targetIsDependencyObject*/ ); 2068PushContext(ReaderFlags.PropertyComplexDP, propertyDefinition.AttributeInfo, propertyDefinition.PropertyType, 0); 2073PushContext(ReaderFlags.PropertyComplexClr, propertyDefinition.PropertyInfo, propertyDefinition.PropertyType, 0); 2078PushContext(ReaderFlags.PropertyComplexClr, propertyDefinition.AttachedPropertySetter, propertyDefinition.PropertyType, 0); 2083PushContext(ReaderFlags.PropertyComplexClr, propertyDefinition.AttachedPropertyGetter, propertyDefinition.PropertyType, 0); 2196(ReaderFlags.DependencyObject != CurrentContext.ContextType && 2197ReaderFlags.ClrObject != CurrentContext.ContextType)) 2287(ReaderFlags.DependencyObject != CurrentContext.ContextType && 2288ReaderFlags.ClrObject != CurrentContext.ContextType)) 2302(ReaderFlags.DependencyObject != CurrentContext.ContextType && 2303ReaderFlags.ClrObject != CurrentContext.ContextType)) 2318(ReaderFlags.DependencyObject != CurrentContext.ContextType && 2319ReaderFlags.ClrObject != CurrentContext.ContextType)) 2439(ReaderFlags.DependencyObject != CurrentContext.ContextType && 2440ReaderFlags.ClrObject != CurrentContext.ContextType)) 2640(ReaderFlags.DependencyObject != CurrentContext.ContextType && 2641ReaderFlags.ClrObject != CurrentContext.ContextType)) 2996PushContext(ReaderFlags.PropertyArray | ReaderFlags.CollectionHolder, holder, holder.PropertyType, 0); 3043ReaderFlags flags = ReaderFlags.Unknown; 3046flags = ReaderFlags.PropertyIList; 3050flags = ReaderFlags.PropertyIAddChild; 3057flags = ReaderFlags.PropertyIAddChild; 3069PushContext(flags | ReaderFlags.CollectionHolder, holder, expectedType, 0); 3093PushContext(ReaderFlags.PropertyIDictionary | ReaderFlags.CollectionHolder, holder, holder.PropertyType, 0); 3140if (context.ContextType == ReaderFlags.PropertyArray) 3191if (context.CheckFlag(ReaderFlags.IDictionary)) 3195else if (context.ContextType == ReaderFlags.PropertyIDictionary) 3212if (context.CheckFlag(ReaderFlags.IList)) 3216else if (context.ContextType == ReaderFlags.PropertyIList) 3233if (context.CheckFlag(ReaderFlags.IAddChild)) 3237else if (context.ContextType == ReaderFlags.PropertyIAddChild) 3256if (context.CheckFlag(ReaderFlags.ArrayExt)) 3260else if (context.ContextType == ReaderFlags.PropertyArray) 3391if (parentContext.CheckFlag(ReaderFlags.CollectionHolder)) 3453case ReaderFlags.DependencyObject: 3454case ReaderFlags.ClrObject: 3509case ReaderFlags.PropertyComplexDP: 3542case ReaderFlags.PropertyComplexClr: 3566case ReaderFlags.PropertyIAddChild: 3580case ReaderFlags.PropertyIList: 3593case ReaderFlags.ConstructorParams: 3644ReaderFlags.PropertyComplexDP == CurrentContext.ContextType && 3849ReaderFlags.PropertyComplexClr == CurrentContext.ContextType && 3898ReaderFlags.ConstructorParams == CurrentContext.ContextType); 3911CurrentContext.SetFlag(ReaderFlags.SingletonConstructorParam); 3913else if (CurrentContext.CheckFlag(ReaderFlags.SingletonConstructorParam)) 3919CurrentContext.ClearFlag(ReaderFlags.SingletonConstructorParam); 4098else if (stackData.ContextType == ReaderFlags.DependencyObject) 4114else if (stackData.CheckFlag(ReaderFlags.StyleObject)) 4120else if (stackData.CheckFlag(ReaderFlags.FrameworkTemplateObject)) 4289ReaderFlags contextFlags, 4299ReaderFlags contextFlags, 4531ReaderFlags parentContextType = parentContext != null ? parentContext.ContextType : ReaderFlags.Unknown; 4533if (parentContextType == ReaderFlags.PropertyComplexClr || 4534parentContextType == ReaderFlags.PropertyComplexDP || 4535parentContextType == ReaderFlags.PropertyIList || 4536parentContextType == ReaderFlags.PropertyIDictionary || 4537parentContextType == ReaderFlags.PropertyArray || 4538parentContextType == ReaderFlags.PropertyIAddChild) 4589(ReaderFlags.DependencyObject != currentContext.ContextType && 4590ReaderFlags.ClrObject != currentContext.ContextType)) 4753if( parentContext.ContextType == ReaderFlags.PropertyComplexClr ) 4763if( parentContext.ContextType == ReaderFlags.PropertyComplexDP ) 4813if (parentContext.CheckFlag(ReaderFlags.CollectionHolder)) 4855parentContext.CheckFlag(ReaderFlags.CollectionHolder) && 4866if (currentContext.CheckFlag(ReaderFlags.ArrayExt)) 5316ParentContext.ContextType == ReaderFlags.PropertyComplexDP)
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;