2 writes to _stack
System.Xaml (2)
System\Xaml\Context\ObjectWriterContext.cs (2)
32
_stack
= new XamlContextStack<ObjectWriterFrame>(savedContext.Stack, false);
82
_stack
= new XamlContextStack<ObjectWriterFrame>(() => new ObjectWriterFrame());
80 references to _stack
System.Xaml (80)
System\Xaml\Context\ObjectWriterContext.cs (80)
64
_stack
.PushScope();
65
_savedDepth =
_stack
.Depth;
66
_stack
.CurrentFrame.NameScopeDictionary = rootNameScopeDictionary;
67
_stack
.PushScope();
73
_savedDepth =
_stack
.Depth - 1;
99
_stack
.CurrentFrame.NameScopeDictionary = rootNameScopeDictionary;
100
_stack
.PushScope(); // put a blank sentinal frame on the stack.
220
_stack
.CurrentFrame.AddNamespace(prefix, xamlNS);
226
ObjectWriterFrame frame =
_stack
.CurrentFrame;
243
ObjectWriterFrame frame =
_stack
.CurrentFrame;
287
ObjectWriterFrame frame =
_stack
.CurrentFrame;
328
ObjectWriterFrame frame =
_stack
.PreviousFrame;
329
ObjectWriterFrame lowerFrame =
_stack
.CurrentFrame;
441
ObjectWriterFrame frame =
_stack
.PreviousFrame;
473
_stack
.PushScope();
479
_stack
.Depth--;
485
_stack
.Depth++;
490
_stack
.PopScope();
498
get { return
_stack
.Depth; }
519
get { return
_stack
.CurrentFrame.XamlType; }
520
set {
_stack
.CurrentFrame.XamlType = value; }
525
get { return
_stack
.PreviousFrame.XamlType; }
530
get { return
_stack
.PreviousPreviousFrame?.XamlType; }
535
get { return
_stack
.CurrentFrame.Member; }
536
set {
_stack
.CurrentFrame.Member = value; }
541
get { return
_stack
.PreviousFrame.Member; }
546
get { return
_stack
.PreviousPreviousFrame.Member; }
551
get { return
_stack
.CurrentFrame.Instance; }
552
set {
_stack
.CurrentFrame.Instance = value; }
557
get { return
_stack
.PreviousFrame.Instance; }
562
get { return
_stack
.PreviousPreviousFrame?.Instance; }
567
get { return
_stack
.CurrentFrame.Collection; }
568
set {
_stack
.CurrentFrame.Collection = value; }
573
get { return
_stack
.PreviousFrame.Collection; }
578
get { return
_stack
.CurrentFrame.WasAssignedAtCreation; }
579
set {
_stack
.CurrentFrame.WasAssignedAtCreation = value; }
584
get { return
_stack
.CurrentFrame.IsObjectFromMember; }
585
set {
_stack
.CurrentFrame.IsObjectFromMember = value; }
590
get { return
_stack
.PreviousFrame.IsObjectFromMember; }
595
get { return (
_stack
.PreviousPreviousFrame is not null) ?
_stack
.PreviousPreviousFrame.IsObjectFromMember : false; }
601
set {
_stack
.CurrentFrame.IsPropertyValueSet = value; }
606
get { return
_stack
.PreviousFrame.IsPropertyValueSet; }
607
set {
_stack
.PreviousFrame.IsPropertyValueSet = value; }
612
get { return
_stack
.CurrentFrame.IsTypeConvertedObject; }
613
set {
_stack
.CurrentFrame.IsTypeConvertedObject = value; }
618
get { return
_stack
.CurrentFrame.PreconstructionPropertyValues; }
623
get { return
_stack
.CurrentFrame.HasPreconstructionPropertyValuesDictionary; }
628
get { return
_stack
.PreviousFrame.PreconstructionPropertyValues; }
633
get { return
_stack
.CurrentFrame.AssignedProperties; }
638
get { return
_stack
.PreviousFrame.AssignedProperties; }
643
get { return
_stack
.CurrentFrame.InstanceRegisteredName; }
644
set {
_stack
.CurrentFrame.InstanceRegisteredName = value; }
649
get { return
_stack
.PreviousFrame.InstanceRegisteredName; }
650
set {
_stack
.PreviousFrame.InstanceRegisteredName = value; }
674
return LookupNameScopeDictionary((ObjectWriterFrame)
_stack
.CurrentFrame);
682
return LookupNameScopeDictionary((ObjectWriterFrame)
_stack
.PreviousFrame);
690
return LookupNameScopeDictionary((ObjectWriterFrame)
_stack
.PreviousPreviousFrame);
698
ObjectWriterFrame rootFrame =
_stack
.GetFrame(SavedDepth + 1);
708
get { return
_stack
.CurrentFrame.PositionalCtorArgs; }
709
set {
_stack
.CurrentFrame.PositionalCtorArgs = value; }
714
get { return
_stack
.CurrentFrame.Key; }
719
get { return
_stack
.CurrentFrame.IsKeySet; }
724
get { return
_stack
.PreviousFrame.Key; }
727
_stack
.PreviousFrame.Key = value;
733
get { return
_stack
.CurrentFrame.KeyIsUnconverted; }
734
set {
_stack
.CurrentFrame.KeyIsUnconverted = value; }
740
set {
_stack
.PreviousFrame.KeyIsUnconverted = value; }
745
get { return
_stack
.PreviousFrame.ShouldConvertChildKeys; }
746
set {
_stack
.PreviousPreviousFrame.ShouldConvertChildKeys = value; }
751
get { return
_stack
.PreviousPreviousFrame.ShouldConvertChildKeys; }
752
set {
_stack
.PreviousPreviousFrame.ShouldConvertChildKeys = value; }
757
get { return
_stack
.PreviousFrame.ShouldNotConvertChildKeys; }
758
set {
_stack
.PreviousPreviousFrame.ShouldNotConvertChildKeys = value; }
763
get { return
_stack
.PreviousPreviousFrame.ShouldNotConvertChildKeys; }
784
if (
_stack
.Depth == 0)
789
XamlFrame frame =
_stack
.CurrentFrame;
838
var frame = (ObjectWriterFrame)
_stack
.CurrentFrame;
864
var frame = (ObjectWriterFrame)
_stack
.CurrentFrame;
959
var newStack = new XamlContextStack<ObjectWriterFrame>(
_stack
, true);