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