141 references to ReaderFlags
PresentationFramework (141)
src\Framework\System\Windows\Markup\BamlRecordReader.cs (128)
485
PushContext(
ReaderFlags
.RealizeDeferContent, null, null, 0);
643
CurrentContext.SetFlag(
ReaderFlags
.InjectedElement);
663
if (CurrentContext.CheckFlag(
ReaderFlags
.InjectedElement))
665
CurrentContext.ClearFlag(
ReaderFlags
.InjectedElement);
743
Debug.Assert(
ReaderFlags
.DependencyObject == CurrentContext.ContextType);
831
Debug.Assert(
ReaderFlags
.DependencyObject == CurrentContext.ContextType ||
832
ReaderFlags
.ClrObject == CurrentContext.ContextType ||
833
ReaderFlags
.PropertyComplexClr == CurrentContext.ContextType ||
834
ReaderFlags
.PropertyComplexDP == CurrentContext.ContextType);
837
if (
ReaderFlags
.DependencyObject == CurrentContext.ContextType ||
838
ReaderFlags
.ClrObject == CurrentContext.ContextType ||
839
ReaderFlags
.PropertyComplexClr == CurrentContext.ContextType ||
840
ReaderFlags
.PropertyComplexDP == CurrentContext.ContextType)
854
if (
ReaderFlags
.DependencyObject == CurrentContext.ContextType)
867
out
ReaderFlags
flags,
877
flags =
ReaderFlags
.Unknown;
910
protected
ReaderFlags
GetFlagsFromType(Type elementType)
912
ReaderFlags
flags = (typeof(DependencyObject).IsAssignableFrom(elementType) ?
ReaderFlags
.DependencyObject :
913
ReaderFlags
.ClrObject);
917
flags |=
ReaderFlags
.IDictionary;
921
flags |=
ReaderFlags
.IList;
925
flags |=
ReaderFlags
.ArrayExt;
929
flags |=
ReaderFlags
.IAddChild;
937
internal static void CheckForTreeAdd(ref
ReaderFlags
flags, ReaderContextStackData context)
943
(context.ContextType !=
ReaderFlags
.ConstructorParams &&
944
context.ContextType !=
ReaderFlags
.RealizeDeferContent))
946
flags |=
ReaderFlags
.NeedToAddToTree;
1033
ReaderFlags
flags =
ReaderFlags
.Unknown;
1046
(
ReaderFlags
.PropertyComplexClr == currentContext.ContextType ||
1047
ReaderFlags
.PropertyComplexDP == currentContext.ContextType) &&
1141
else if (CurrentContext.CheckFlag(
ReaderFlags
.IDictionary))
1212
(
ReaderFlags
.DependencyObject != CurrentContext.ContextType &&
1213
ReaderFlags
.ClrObject != CurrentContext.ContextType))
1243
Debug.Assert(!CurrentContext.CheckFlag(
ReaderFlags
.NeedToAddToTree), "Failed to add Element to tree before popping stack");
1245
ReaderFlags
flags = CurrentContext.ContextFlags;
1254
if ((flags & (
ReaderFlags
.AddedToTree)) == 0 &&
1257
Debug.Assert( CurrentContext.ContextType !=
ReaderFlags
.PropertyComplexClr );
1258
Debug.Assert( CurrentContext.ContextType !=
ReaderFlags
.PropertyComplexDP );
1262
case
ReaderFlags
.RealizeDeferContent:
1267
case
ReaderFlags
.ConstructorParams:
1282
ReaderFlags
flags = (elementType.IsAssignableFrom(typeof(DependencyObject)) ?
1283
ReaderFlags
.DependencyObject :
1284
ReaderFlags
.ClrObject) |
1285
ReaderFlags
.NeedToAddToTree;
1310
Debug.Assert(CurrentContext.ContextType ==
ReaderFlags
.ConstructorParams);
1416
PushContext(
ReaderFlags
.ConstructorParams, null, null, 0);
1440
if (CurrentContext.CheckFlag(
ReaderFlags
.SingletonConstructorParam))
1964
PushContext(
ReaderFlags
.ClrObject |
ReaderFlags
.NeedToAddToTree, value, null, 0);
1978
(
ReaderFlags
.DependencyObject != CurrentContext.ContextType &&
1979
ReaderFlags
.ClrObject != CurrentContext.ContextType))
2031
else if ( (CurrentContext.ContextType ==
ReaderFlags
.PropertyComplexClr)
2032
|| (CurrentContext.ContextType ==
ReaderFlags
.PropertyComplexDP) )
2079
!(
ReaderFlags
.ClrObject == CurrentContext.ContextType ||
2080
ReaderFlags
.DependencyObject == CurrentContext.ContextType))
2090
ReaderFlags
.DependencyObject == CurrentContext.ContextType /*targetIsDependencyObject*/ );
2099
PushContext(
ReaderFlags
.PropertyComplexDP, propertyDefinition.AttributeInfo, propertyDefinition.PropertyType, 0);
2104
PushContext(
ReaderFlags
.PropertyComplexClr, propertyDefinition.PropertyInfo, propertyDefinition.PropertyType, 0);
2109
PushContext(
ReaderFlags
.PropertyComplexClr, propertyDefinition.AttachedPropertySetter, propertyDefinition.PropertyType, 0);
2114
PushContext(
ReaderFlags
.PropertyComplexClr, propertyDefinition.AttachedPropertyGetter, propertyDefinition.PropertyType, 0);
2227
(
ReaderFlags
.DependencyObject != CurrentContext.ContextType &&
2228
ReaderFlags
.ClrObject != CurrentContext.ContextType))
2318
(
ReaderFlags
.DependencyObject != CurrentContext.ContextType &&
2319
ReaderFlags
.ClrObject != CurrentContext.ContextType))
2333
(
ReaderFlags
.DependencyObject != CurrentContext.ContextType &&
2334
ReaderFlags
.ClrObject != CurrentContext.ContextType))
2349
(
ReaderFlags
.DependencyObject != CurrentContext.ContextType &&
2350
ReaderFlags
.ClrObject != CurrentContext.ContextType))
2470
(
ReaderFlags
.DependencyObject != CurrentContext.ContextType &&
2471
ReaderFlags
.ClrObject != CurrentContext.ContextType))
2673
(
ReaderFlags
.DependencyObject != CurrentContext.ContextType &&
2674
ReaderFlags
.ClrObject != CurrentContext.ContextType))
3031
PushContext(
ReaderFlags
.PropertyArray |
ReaderFlags
.CollectionHolder, holder, holder.PropertyType, 0);
3078
ReaderFlags
flags =
ReaderFlags
.Unknown;
3081
flags =
ReaderFlags
.PropertyIList;
3085
flags =
ReaderFlags
.PropertyIAddChild;
3092
flags =
ReaderFlags
.PropertyIAddChild;
3104
PushContext(flags |
ReaderFlags
.CollectionHolder, holder, expectedType, 0);
3128
PushContext(
ReaderFlags
.PropertyIDictionary |
ReaderFlags
.CollectionHolder, holder, holder.PropertyType, 0);
3175
if (context.ContextType ==
ReaderFlags
.PropertyArray)
3226
if (context.CheckFlag(
ReaderFlags
.IDictionary))
3230
else if (context.ContextType ==
ReaderFlags
.PropertyIDictionary)
3247
if (context.CheckFlag(
ReaderFlags
.IList))
3251
else if (context.ContextType ==
ReaderFlags
.PropertyIList)
3268
if (context.CheckFlag(
ReaderFlags
.IAddChild))
3272
else if (context.ContextType ==
ReaderFlags
.PropertyIAddChild)
3291
if (context.CheckFlag(
ReaderFlags
.ArrayExt))
3295
else if (context.ContextType ==
ReaderFlags
.PropertyArray)
3427
if (parentContext.CheckFlag(
ReaderFlags
.CollectionHolder))
3489
case
ReaderFlags
.DependencyObject:
3490
case
ReaderFlags
.ClrObject:
3545
case
ReaderFlags
.PropertyComplexDP:
3578
case
ReaderFlags
.PropertyComplexClr:
3602
case
ReaderFlags
.PropertyIAddChild:
3616
case
ReaderFlags
.PropertyIList:
3629
case
ReaderFlags
.ConstructorParams:
3680
ReaderFlags
.PropertyComplexDP == CurrentContext.ContextType &&
3887
ReaderFlags
.PropertyComplexClr == CurrentContext.ContextType &&
3937
ReaderFlags
.ConstructorParams == CurrentContext.ContextType);
3950
CurrentContext.SetFlag(
ReaderFlags
.SingletonConstructorParam);
3952
else if (CurrentContext.CheckFlag(
ReaderFlags
.SingletonConstructorParam))
3958
CurrentContext.ClearFlag(
ReaderFlags
.SingletonConstructorParam);
4139
else if (stackData.ContextType ==
ReaderFlags
.DependencyObject)
4155
else if (stackData.CheckFlag(
ReaderFlags
.StyleObject))
4161
else if (stackData.CheckFlag(
ReaderFlags
.FrameworkTemplateObject))
4332
ReaderFlags
contextFlags,
4342
ReaderFlags
contextFlags,
4577
ReaderFlags
parentContextType = parentContext != null ? parentContext.ContextType :
ReaderFlags
.Unknown;
4579
if (parentContextType ==
ReaderFlags
.PropertyComplexClr ||
4580
parentContextType ==
ReaderFlags
.PropertyComplexDP ||
4581
parentContextType ==
ReaderFlags
.PropertyIList ||
4582
parentContextType ==
ReaderFlags
.PropertyIDictionary ||
4583
parentContextType ==
ReaderFlags
.PropertyArray ||
4584
parentContextType ==
ReaderFlags
.PropertyIAddChild)
4636
(
ReaderFlags
.DependencyObject != currentContext.ContextType &&
4637
ReaderFlags
.ClrObject != currentContext.ContextType))
4800
if( parentContext.ContextType ==
ReaderFlags
.PropertyComplexClr )
4810
if( parentContext.ContextType ==
ReaderFlags
.PropertyComplexDP )
4861
if (parentContext.CheckFlag(
ReaderFlags
.CollectionHolder))
4904
parentContext.CheckFlag(
ReaderFlags
.CollectionHolder) &&
4915
if (currentContext.CheckFlag(
ReaderFlags
.ArrayExt))
5376
ParentContext.ContextType ==
ReaderFlags
.PropertyComplexDP)
src\Framework\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;