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