525 references to BamlRecordType
PresentationFramework (525)
System\Windows\Markup\BamlReader.cs (111)
406
if (info.RecordType ==
BamlRecordType
.XmlnsProperty)
410
else if (info.RecordType ==
BamlRecordType
.DefAttribute)
414
else if (info.RecordType ==
BamlRecordType
.PresentationOptionsAttribute)
558
case
BamlRecordType
.AssemblyInfo:
563
case
BamlRecordType
.TypeInfo:
564
case
BamlRecordType
.TypeSerializerInfo:
569
case
BamlRecordType
.AttributeInfo:
574
case
BamlRecordType
.StringInfo:
579
case
BamlRecordType
.ContentProperty:
586
case
BamlRecordType
.DocumentStart:
590
case
BamlRecordType
.DocumentEnd:
594
case
BamlRecordType
.PIMapping:
598
case
BamlRecordType
.LiteralContent:
602
case
BamlRecordType
.ElementStart:
603
case
BamlRecordType
.StaticResourceStart:
607
case
BamlRecordType
.ElementEnd:
608
case
BamlRecordType
.StaticResourceEnd:
612
case
BamlRecordType
.PropertyComplexStart:
613
case
BamlRecordType
.PropertyArrayStart:
614
case
BamlRecordType
.PropertyIListStart:
615
case
BamlRecordType
.PropertyIDictionaryStart:
619
case
BamlRecordType
.PropertyComplexEnd:
620
case
BamlRecordType
.PropertyArrayEnd:
621
case
BamlRecordType
.PropertyIListEnd:
622
case
BamlRecordType
.PropertyIDictionaryEnd:
626
case
BamlRecordType
.Text:
627
case
BamlRecordType
.TextWithId:
628
case
BamlRecordType
.TextWithConverter:
632
case
BamlRecordType
.DeferableContentStart:
637
case
BamlRecordType
.ConstructorParametersStart:
641
case
BamlRecordType
.ConstructorParametersEnd:
645
case
BamlRecordType
.ConnectionId:
649
case
BamlRecordType
.StaticResourceId:
702
case
BamlRecordType
.AssemblyInfo:
706
case
BamlRecordType
.TypeInfo:
707
case
BamlRecordType
.TypeSerializerInfo:
711
case
BamlRecordType
.AttributeInfo:
715
case
BamlRecordType
.StringInfo:
720
case
BamlRecordType
.XmlnsProperty:
724
case
BamlRecordType
.ConnectionId:
728
case
BamlRecordType
.Property:
729
case
BamlRecordType
.PropertyWithConverter:
733
case
BamlRecordType
.ContentProperty:
738
case
BamlRecordType
.PropertyStringReference:
742
case
BamlRecordType
.PropertyTypeReference:
746
case
BamlRecordType
.PropertyWithExtension:
750
case
BamlRecordType
.PropertyWithStaticResourceId:
754
case
BamlRecordType
.PropertyCustom:
758
case
BamlRecordType
.DefAttribute:
762
case
BamlRecordType
.PresentationOptionsAttribute:
766
case
BamlRecordType
.DefAttributeKeyType:
770
case
BamlRecordType
.RoutedEvent:
774
case
BamlRecordType
.ClrEvent:
778
case
BamlRecordType
.KeyElementStart:
823
info.RecordType =
BamlRecordType
.XmlnsProperty;
1103
info.RecordType =
BamlRecordType
.DefAttribute;
1130
info.RecordType =
BamlRecordType
.PresentationOptionsAttribute;
1157
info.RecordType =
BamlRecordType
.DefAttribute;
1246
case
BamlRecordType
.DefAttributeKeyString:
1273
info.RecordType =
BamlRecordType
.DefAttribute;
1279
case
BamlRecordType
.DefAttributeKeyType:
1322
info.RecordType =
BamlRecordType
.DefAttribute;
1328
case
BamlRecordType
.KeyElementStart:
1347
case
BamlRecordType
.StaticResourceStart:
1348
case
BamlRecordType
.OptimizedStaticResource:
1358
if (_currentBamlRecord.RecordType ==
BamlRecordType
.StaticResourceStart)
1392
info.RecordType =
BamlRecordType
.DefAttribute;
1466
case
BamlRecordType
.AssemblyInfo:
1470
case
BamlRecordType
.TypeInfo:
1471
case
BamlRecordType
.TypeSerializerInfo:
1475
case
BamlRecordType
.AttributeInfo:
1479
case
BamlRecordType
.StringInfo:
1484
case
BamlRecordType
.PropertyComplexStart:
1495
case
BamlRecordType
.PropertyComplexEnd:
1498
case
BamlRecordType
.Text:
1499
case
BamlRecordType
.TextWithId:
1525
case
BamlRecordType
.ElementStart:
1557
case
BamlRecordType
.ElementEnd:
1564
case
BamlRecordType
.ConstructorParametersStart:
1569
case
BamlRecordType
.ConstructorParametersEnd:
1576
case
BamlRecordType
.ConstructorParameterType:
1591
case
BamlRecordType
.Property:
1592
case
BamlRecordType
.PropertyWithConverter:
1605
case
BamlRecordType
.PropertyCustom:
1617
case
BamlRecordType
.PropertyStringReference:
1630
case
BamlRecordType
.PropertyTypeReference:
1644
case
BamlRecordType
.PropertyWithExtension:
1658
case
BamlRecordType
.KeyElementEnd:
1681
info.RecordType =
BamlRecordType
.DefAttribute;
1714
if (_currentBamlRecord.RecordType ==
BamlRecordType
.StaticResourceEnd)
1818
nodeInfo.RecordType =
BamlRecordType
.DocumentStart;
1836
if (nodeInfo.RecordType !=
BamlRecordType
.DocumentStart)
1962
nodeInfo.RecordType =
BamlRecordType
.ElementStart;
2019
if (nodeInfo.RecordType !=
BamlRecordType
.ElementStart)
2023
BamlRecordType
.ElementEnd.ToString()));
2106
BamlRecordType
expectedType;
2109
case
BamlRecordType
.PropertyComplexStart:
2110
expectedType =
BamlRecordType
.PropertyComplexEnd;
2112
case
BamlRecordType
.PropertyArrayStart:
2113
expectedType =
BamlRecordType
.PropertyArrayEnd;
2115
case
BamlRecordType
.PropertyIListStart:
2116
expectedType =
BamlRecordType
.PropertyIListEnd;
2118
case
BamlRecordType
.PropertyIDictionaryStart:
2119
expectedType =
BamlRecordType
.PropertyIDictionaryEnd;
2122
expectedType =
BamlRecordType
.Unknown;
2210
nodeInfo.RecordType =
BamlRecordType
.ConstructorParametersStart;
2234
if (nodeInfo.RecordType !=
BamlRecordType
.ConstructorParametersStart)
2238
BamlRecordType
.ConstructorParametersEnd.ToString()));
2277
info.RecordType =
BamlRecordType
.DefAttribute;
2870
internal
BamlRecordType
RecordType
2927
private
BamlRecordType
_recordType;
System\Windows\Markup\BamlRecordHelper.cs (67)
25
static internal bool IsMapTableRecordType(
BamlRecordType
bamlRecordType )
29
case
BamlRecordType
.PIMapping:
30
case
BamlRecordType
.AssemblyInfo:
31
case
BamlRecordType
.TypeInfo:
32
case
BamlRecordType
.TypeSerializerInfo:
33
case
BamlRecordType
.AttributeInfo:
34
case
BamlRecordType
.StringInfo:
42
internal static bool IsDebugBamlRecordType(
BamlRecordType
recordType)
44
if ( recordType ==
BamlRecordType
.LineNumberAndPosition
45
|| recordType ==
BamlRecordType
.LinePosition )
66
internal static bool DoesRecordTypeHaveDebugExtension(
BamlRecordType
recordType)
70
case
BamlRecordType
.ElementStart:
71
case
BamlRecordType
.ElementEnd:
72
case
BamlRecordType
.Property:
73
case
BamlRecordType
.PropertyComplexStart:
74
case
BamlRecordType
.PropertyArrayStart:
75
case
BamlRecordType
.PropertyIListStart:
76
case
BamlRecordType
.PropertyIDictionaryStart:
77
case
BamlRecordType
.XmlnsProperty:
78
case
BamlRecordType
.PIMapping:
79
case
BamlRecordType
.PropertyTypeReference:
80
case
BamlRecordType
.PropertyWithExtension:
81
case
BamlRecordType
.PropertyWithConverter:
82
case
BamlRecordType
.KeyElementStart:
83
case
BamlRecordType
.ConnectionId:
84
case
BamlRecordType
.ContentProperty:
85
case
BamlRecordType
.StaticResourceStart:
86
case
BamlRecordType
.PresentationOptionsAttribute:
89
case
BamlRecordType
.DocumentStart:
90
case
BamlRecordType
.DocumentEnd: // End record
91
case
BamlRecordType
.PropertyCustom: // The "custom" size of this is a problem
92
case
BamlRecordType
.PropertyComplexEnd: // End record
93
case
BamlRecordType
.PropertyArrayEnd: // End record
94
case
BamlRecordType
.PropertyIListEnd: // End record
95
case
BamlRecordType
.PropertyIDictionaryEnd: // End record
96
case
BamlRecordType
.LiteralContent: // Not needed
97
case
BamlRecordType
.Text: // Not needed
98
case
BamlRecordType
.TextWithConverter: // Not common enough
99
case
BamlRecordType
.RoutedEvent: // Not common enough
100
case
BamlRecordType
.ClrEvent: // Not common enough
101
case
BamlRecordType
.XmlAttribute: // Not common enough
102
case
BamlRecordType
.ProcessingInstruction: // Not common enough
103
case
BamlRecordType
.Comment: // Not common enough
104
case
BamlRecordType
.DefTag: // Not common enough
105
case
BamlRecordType
.DefAttribute: // Not common enough
106
case
BamlRecordType
.EndAttributes: // Not common enough
107
case
BamlRecordType
.AssemblyInfo: // Info records (in general) don't advance file position
108
case
BamlRecordType
.TypeInfo: // Info records (in general) don't advance file position
109
case
BamlRecordType
.TypeSerializerInfo: // Not common enough
110
case
BamlRecordType
.AttributeInfo: // Info records (in general) don't advance file position
111
case
BamlRecordType
.StringInfo: // Info records (in general) don't advance file position
112
case
BamlRecordType
.PropertyStringReference: // Not common enough
113
case
BamlRecordType
.DeferableContentStart: // This would complicate Deferable Content Size
114
case
BamlRecordType
.ConstructorParametersStart: // Not Needed
115
case
BamlRecordType
.ConstructorParametersEnd: // End record
116
case
BamlRecordType
.ConstructorParameterType: // Not Needed
117
case
BamlRecordType
.NamedElementStart: // Not common enough
118
case
BamlRecordType
.TextWithId: // Not Needed
119
case
BamlRecordType
.LineNumberAndPosition: // This would become recursive
120
case
BamlRecordType
.LinePosition: // This would become recursive
121
case
BamlRecordType
.DefAttributeKeyString:
122
case
BamlRecordType
.DefAttributeKeyType:
123
case
BamlRecordType
.KeyElementEnd:
124
case
BamlRecordType
.StaticResourceEnd:
125
case
BamlRecordType
.StaticResourceId:
126
case
BamlRecordType
.OptimizedStaticResource:
127
case
BamlRecordType
.PropertyWithStaticResourceId:
System\Windows\Markup\BamlRecordReader.cs (70)
218
BamlRecordType
recordType = (
BamlRecordType
)BinaryReader.ReadByte();
256
BamlRecordType
recordType = (
BamlRecordType
)BinaryReader.ReadByte();
286
BamlRecordType
recordType)
307
BamlRecordType
nextRecordType = (
BamlRecordType
)BinaryReader.ReadByte();
325
if(bamlRecord.RecordType ==
BamlRecordType
.LineNumberAndPosition)
333
Debug.Assert(bamlRecord.RecordType ==
BamlRecordType
.LinePosition);
342
internal
BamlRecordType
GetNextRecordType()
344
BamlRecordType
bamlRecordType;
348
bamlRecordType = (
BamlRecordType
)BinaryReader.PeekChar();
566
case
BamlRecordType
.DocumentStart:
570
case
BamlRecordType
.DocumentEnd:
575
case
BamlRecordType
.XmlnsProperty:
579
case
BamlRecordType
.PIMapping:
595
case
BamlRecordType
.AssemblyInfo:
599
case
BamlRecordType
.TypeInfo:
600
case
BamlRecordType
.TypeSerializerInfo:
604
case
BamlRecordType
.AttributeInfo:
608
case
BamlRecordType
.StringInfo:
612
case
BamlRecordType
.LiteralContent:
616
case
BamlRecordType
.ElementStart:
617
case
BamlRecordType
.StaticResourceStart:
628
case
BamlRecordType
.NamedElementStart:
634
case
BamlRecordType
.ConnectionId:
638
case
BamlRecordType
.ElementEnd:
639
case
BamlRecordType
.StaticResourceEnd:
650
case
BamlRecordType
.PropertyComplexStart:
654
case
BamlRecordType
.PropertyComplexEnd:
658
case
BamlRecordType
.Property:
662
case
BamlRecordType
.PropertyStringReference:
666
case
BamlRecordType
.PropertyTypeReference:
670
case
BamlRecordType
.PropertyWithExtension:
674
case
BamlRecordType
.PropertyWithConverter:
678
case
BamlRecordType
.PropertyCustom:
682
case
BamlRecordType
.PropertyArrayStart:
686
case
BamlRecordType
.PropertyArrayEnd:
690
case
BamlRecordType
.PropertyIListStart:
694
case
BamlRecordType
.PropertyIListEnd:
698
case
BamlRecordType
.PropertyIDictionaryStart:
702
case
BamlRecordType
.PropertyIDictionaryEnd:
706
case
BamlRecordType
.DefAttribute:
710
case
BamlRecordType
.DefAttributeKeyType:
714
case
BamlRecordType
.PresentationOptionsAttribute:
718
case
BamlRecordType
.RoutedEvent:
728
case
BamlRecordType
.Text:
729
case
BamlRecordType
.TextWithId:
730
case
BamlRecordType
.TextWithConverter:
734
case
BamlRecordType
.DeferableContentStart:
738
case
BamlRecordType
.KeyElementStart:
742
case
BamlRecordType
.KeyElementEnd:
746
case
BamlRecordType
.ConstructorParametersStart:
750
case
BamlRecordType
.ConstructorParametersEnd:
754
case
BamlRecordType
.ConstructorParameterType:
758
case
BamlRecordType
.ContentProperty:
762
case
BamlRecordType
.StaticResourceId:
766
case
BamlRecordType
.PropertyWithStaticResourceId:
770
case
BamlRecordType
.LineNumberAndPosition: // Should be skipped in ReadNextRecordWithDebugExtension.
771
case
BamlRecordType
.LinePosition: // Should be skipped in ReadNextRecordWithDebugExtension.
1746
BamlRecordType
nextType = GetNextRecordType();
1747
while (nextType ==
BamlRecordType
.DefAttributeKeyString ||
1748
nextType ==
BamlRecordType
.DefAttributeKeyType ||
1749
nextType ==
BamlRecordType
.KeyElementStart)
1753
if (nextType ==
BamlRecordType
.KeyElementStart)
1833
while (nextType ==
BamlRecordType
.StaticResourceStart ||
1834
nextType ==
BamlRecordType
.OptimizedStaticResource)
1837
if (nextType ==
BamlRecordType
.StaticResourceStart)
1847
if (nestedBamlRecord.RecordType ==
BamlRecordType
.StaticResourceEnd)
1890
while (nextType ==
BamlRecordType
.StaticResourceId)
System\Windows\Markup\BamlRecords.cs (178)
382
BamlRecordType
recordType)
392
case
BamlRecordType
.AssemblyInfo:
395
case
BamlRecordType
.TypeInfo:
398
case
BamlRecordType
.TypeSerializerInfo:
401
case
BamlRecordType
.AttributeInfo:
404
case
BamlRecordType
.StringInfo:
407
case
BamlRecordType
.DefAttributeKeyString:
410
case
BamlRecordType
.DefAttributeKeyType:
413
case
BamlRecordType
.KeyElementStart:
472
static internal
BamlRecordType
GetPropertyStartRecordType(Type propertyType, bool propertyCanWrite)
474
BamlRecordType
recordType;
477
recordType =
BamlRecordType
.PropertyArrayStart;
490
recordType =
BamlRecordType
.PropertyIDictionaryStart;
502
recordType =
BamlRecordType
.PropertyIListStart;
506
recordType =
BamlRecordType
.PropertyComplexStart;
519
case
BamlRecordType
.ElementStart:
530
case
BamlRecordType
.PropertyCustom:
553
private BamlRecord AllocateWriteRecord(
BamlRecordType
recordType)
559
case
BamlRecordType
.PropertyCustom:
572
private BamlRecord AllocateRecord(
BamlRecordType
recordType)
578
case
BamlRecordType
.DocumentStart:
581
case
BamlRecordType
.DocumentEnd:
584
case
BamlRecordType
.ConnectionId:
587
case
BamlRecordType
.ElementStart:
590
case
BamlRecordType
.ElementEnd:
593
case
BamlRecordType
.DeferableContentStart:
596
case
BamlRecordType
.DefAttributeKeyString:
599
case
BamlRecordType
.DefAttributeKeyType:
602
case
BamlRecordType
.LiteralContent:
605
case
BamlRecordType
.Property:
608
case
BamlRecordType
.PropertyWithConverter:
611
case
BamlRecordType
.PropertyStringReference:
614
case
BamlRecordType
.PropertyTypeReference:
617
case
BamlRecordType
.PropertyWithExtension:
620
case
BamlRecordType
.PropertyCustom:
623
case
BamlRecordType
.PropertyComplexStart:
626
case
BamlRecordType
.PropertyComplexEnd:
629
case
BamlRecordType
.RoutedEvent:
632
case
BamlRecordType
.PropertyArrayStart:
635
case
BamlRecordType
.PropertyArrayEnd:
638
case
BamlRecordType
.PropertyIListStart:
641
case
BamlRecordType
.PropertyIListEnd:
644
case
BamlRecordType
.PropertyIDictionaryStart:
647
case
BamlRecordType
.PropertyIDictionaryEnd:
650
case
BamlRecordType
.Text:
653
case
BamlRecordType
.TextWithConverter:
656
case
BamlRecordType
.TextWithId:
659
case
BamlRecordType
.XmlnsProperty:
662
case
BamlRecordType
.PIMapping:
665
case
BamlRecordType
.DefAttribute:
668
case
BamlRecordType
.PresentationOptionsAttribute:
671
case
BamlRecordType
.KeyElementStart:
674
case
BamlRecordType
.KeyElementEnd:
677
case
BamlRecordType
.ConstructorParametersStart:
680
case
BamlRecordType
.ConstructorParametersEnd:
683
case
BamlRecordType
.ConstructorParameterType:
686
case
BamlRecordType
.ContentProperty:
689
case
BamlRecordType
.AssemblyInfo:
690
case
BamlRecordType
.TypeInfo:
691
case
BamlRecordType
.TypeSerializerInfo:
692
case
BamlRecordType
.AttributeInfo:
693
case
BamlRecordType
.StringInfo:
697
case
BamlRecordType
.StaticResourceStart:
700
case
BamlRecordType
.StaticResourceEnd:
703
case
BamlRecordType
.StaticResourceId:
706
case
BamlRecordType
.LineNumberAndPosition:
709
case
BamlRecordType
.LinePosition:
712
case
BamlRecordType
.OptimizedStaticResource:
715
case
BamlRecordType
.PropertyWithStaticResourceId:
729
internal BamlRecord GetWriteRecord(
BamlRecordType
recordType)
735
_writeCache = new BamlRecord[(int)
BamlRecordType
.LastRecordType];
787
BamlRecord[] _readCache = new BamlRecord[(int)
BamlRecordType
.LastRecordType];
867
internal virtual
BamlRecordType
RecordType
872
return
BamlRecordType
.Unknown;
998
internal static bool IsContentRecord(
BamlRecordType
bamlRecordType )
1000
return bamlRecordType ==
BamlRecordType
.PropertyComplexStart
1002
bamlRecordType ==
BamlRecordType
.PropertyArrayStart
1004
bamlRecordType ==
BamlRecordType
.PropertyIListStart
1006
bamlRecordType ==
BamlRecordType
.PropertyIDictionaryStart
1008
bamlRecordType ==
BamlRecordType
.Text;
1228
internal override
BamlRecordType
RecordType
1230
get { return
BamlRecordType
.XmlnsProperty; }
1299
internal override
BamlRecordType
RecordType
1301
get { return
BamlRecordType
.PIMapping; }
1537
internal override
BamlRecordType
RecordType
1539
get { return
BamlRecordType
.DefAttributeKeyType; }
1721
internal override
BamlRecordType
RecordType
1723
get { return
BamlRecordType
.DefAttributeKeyString; }
1880
internal override
BamlRecordType
RecordType
1882
get { return
BamlRecordType
.DefAttribute; }
1968
internal override
BamlRecordType
RecordType
1970
get { return
BamlRecordType
.PresentationOptionsAttribute; }
2041
internal override
BamlRecordType
RecordType
2043
get { return
BamlRecordType
.PropertyComplexStart; }
2109
internal override
BamlRecordType
RecordType
2111
get { return
BamlRecordType
.PropertyStringReference; }
2172
internal override
BamlRecordType
RecordType
2174
get { return
BamlRecordType
.PropertyTypeReference; }
2243
internal override
BamlRecordType
RecordType
2245
get { return
BamlRecordType
.PropertyWithConverter; }
2293
internal override
BamlRecordType
RecordType
2295
get { return
BamlRecordType
.Property; }
2374
internal override
BamlRecordType
RecordType
2376
get { return
BamlRecordType
.PropertyWithExtension; }
2826
internal override
BamlRecordType
RecordType
2828
get { return
BamlRecordType
.PropertyCustom; }
2914
internal override
BamlRecordType
RecordType
2916
get { return
BamlRecordType
.PropertyArrayEnd; }
2926
internal override
BamlRecordType
RecordType
2928
get { return
BamlRecordType
.ConstructorParametersStart; }
2938
internal override
BamlRecordType
RecordType
2940
get { return
BamlRecordType
.ConstructorParametersEnd; }
2976
internal override
BamlRecordType
RecordType
2978
get { return
BamlRecordType
.ConstructorParameterType; }
3004
internal override
BamlRecordType
RecordType
3006
get { return
BamlRecordType
.PropertyIListEnd; }
3016
internal override
BamlRecordType
RecordType
3018
get { return
BamlRecordType
.PropertyIDictionaryEnd; }
3028
internal override
BamlRecordType
RecordType
3030
get { return
BamlRecordType
.PropertyComplexEnd; }
3041
internal override
BamlRecordType
RecordType
3043
get { return
BamlRecordType
.PropertyArrayStart; }
3053
internal override
BamlRecordType
RecordType
3055
get { return
BamlRecordType
.PropertyIListStart; }
3065
internal override
BamlRecordType
RecordType
3067
get { return
BamlRecordType
.PropertyIDictionaryStart; }
3105
internal override
BamlRecordType
RecordType
3107
get { return
BamlRecordType
.RoutedEvent; }
3155
internal override
BamlRecordType
RecordType
3157
get { return
BamlRecordType
.LiteralContent; }
3189
internal override
BamlRecordType
RecordType
3191
get { return
BamlRecordType
.ConnectionId; }
3237
internal override
BamlRecordType
RecordType
3239
get { return
BamlRecordType
.ElementStart; }
3469
internal override
BamlRecordType
RecordType
3471
get { return
BamlRecordType
.DeferableContentStart; }
3543
internal override
BamlRecordType
RecordType
3545
get { return
BamlRecordType
.StaticResourceStart; }
3563
internal override
BamlRecordType
RecordType
3565
get { return
BamlRecordType
.StaticResourceEnd; }
3623
internal override
BamlRecordType
RecordType
3625
get { return
BamlRecordType
.OptimizedStaticResource; }
3735
internal override
BamlRecordType
RecordType
3737
get { return
BamlRecordType
.StaticResourceId; }
3813
internal override
BamlRecordType
RecordType
3815
get { return
BamlRecordType
.PropertyWithStaticResourceId; }
3855
internal override
BamlRecordType
RecordType
3857
get { return
BamlRecordType
.Text; }
3894
internal override
BamlRecordType
RecordType
3896
get { return
BamlRecordType
.TextWithId; }
3957
internal override
BamlRecordType
RecordType
3959
get { return
BamlRecordType
.TextWithConverter; }
4049
internal override
BamlRecordType
RecordType
4051
get { return
BamlRecordType
.DocumentStart; }
4097
internal override
BamlRecordType
RecordType
4099
get { return
BamlRecordType
.ElementEnd; }
4115
internal override
BamlRecordType
RecordType
4117
get { return
BamlRecordType
.KeyElementStart; }
4128
internal override
BamlRecordType
RecordType
4130
get { return
BamlRecordType
.KeyElementEnd; }
4141
internal override
BamlRecordType
RecordType
4143
get { return
BamlRecordType
.DocumentEnd; }
4248
internal override
BamlRecordType
RecordType
4250
get { return
BamlRecordType
.AssemblyInfo; }
4371
internal override
BamlRecordType
RecordType
4373
get { return
BamlRecordType
.TypeInfo; }
4525
internal override
BamlRecordType
RecordType
4527
get { return
BamlRecordType
.TypeSerializerInfo; }
4651
internal override
BamlRecordType
RecordType
4653
get { return
BamlRecordType
.AttributeInfo; }
5028
internal override
BamlRecordType
RecordType
5030
get { return
BamlRecordType
.StringInfo; }
5114
internal override
BamlRecordType
RecordType
5116
get { return
BamlRecordType
.ContentProperty; }
5166
internal override
BamlRecordType
RecordType
5168
get { return
BamlRecordType
.LineNumberAndPosition; }
5235
internal override
BamlRecordType
RecordType
5237
get { return
BamlRecordType
.LinePosition; }
System\Windows\Markup\BamlRecordWriter.cs (44)
216
DocumentStartRecord = (BamlDocumentStartRecord) BamlRecordManager.GetWriteRecord(
BamlRecordType
.DocumentStart);
232
(BamlDocumentEndRecord) BamlRecordManager.GetWriteRecord(
BamlRecordType
.DocumentEnd);
245
(BamlConnectionIdRecord)BamlRecordManager.GetWriteRecord(
BamlRecordType
.ConnectionId);
257
(BamlElementStartRecord) BamlRecordManager.GetWriteRecord(
BamlRecordType
.ElementStart);
394
(BamlElementEndRecord) BamlRecordManager.GetWriteRecord(
BamlRecordType
.ElementEnd);
454
(BamlLiteralContentRecord) BamlRecordManager.GetWriteRecord(
BamlRecordType
.LiteralContent);
484
BamlRecordType
.DefAttributeKeyType)
574
(BamlDefAttributeKeyStringRecord) BamlRecordManager.GetWriteRecord(
BamlRecordType
.DefAttributeKeyString);
610
(BamlDefAttributeKeyStringRecord) BamlRecordManager.GetWriteRecord(
BamlRecordType
.DefAttributeKeyString);
633
(BamlDefAttributeRecord) BamlRecordManager.GetWriteRecord(
BamlRecordType
.DefAttribute);
658
BamlRecordType
.PresentationOptionsAttribute);
673
(BamlXmlnsPropertyRecord) BamlRecordManager.GetWriteRecord(
BamlRecordType
.XmlnsProperty);
733
(BamlPIMappingRecord) BamlRecordManager.GetWriteRecord(
BamlRecordType
.PIMapping);
755
BamlRecordType
.PropertyComplexStart);
775
BamlRecordType
.PropertyComplexEnd);
804
BamlRecordType
.KeyElementStart);
870
(BamlKeyElementEndRecord) BamlRecordManager.GetWriteRecord(
BamlRecordType
.KeyElementEnd);
924
BamlRecordType
.ConstructorParametersStart);
938
BamlRecordType
.ConstructorParametersEnd);
946
(BamlContentPropertyRecord)BamlRecordManager.GetWriteRecord(
BamlRecordType
.ContentProperty);
995
(BamlPropertyCustomWriteInfoRecord)BamlRecordManager.GetWriteRecord(
BamlRecordType
.PropertyCustom);
1047
BamlRecordType
.PropertyWithConverter);
1157
(BamlOptimizedStaticResourceRecord)BamlRecordManager.GetWriteRecord(
BamlRecordType
.OptimizedStaticResource);
1175
(BamlPropertyWithStaticResourceIdRecord) BamlRecordManager.GetWriteRecord(
BamlRecordType
.PropertyWithStaticResourceId);
1190
(BamlPropertyWithExtensionRecord)BamlRecordManager.GetWriteRecord(
BamlRecordType
.PropertyWithExtension);
1233
BamlRecordType
.PropertyTypeReference) as BamlPropertyTypeReferenceRecord;
1256
(BamlPropertyRecord)BamlRecordManager.GetWriteRecord(
BamlRecordType
.Property);
1276
(BamlPropertyArrayStartRecord) BamlRecordManager.GetWriteRecord(
BamlRecordType
.PropertyArrayStart);
1296
(BamlPropertyArrayEndRecord) BamlRecordManager.GetWriteRecord(
BamlRecordType
.PropertyArrayEnd);
1307
(BamlPropertyIListStartRecord) BamlRecordManager.GetWriteRecord(
BamlRecordType
.PropertyIListStart);
1327
(BamlPropertyIListEndRecord) BamlRecordManager.GetWriteRecord(
BamlRecordType
.PropertyIListEnd);
1338
(BamlPropertyIDictionaryStartRecord) BamlRecordManager.GetWriteRecord(
BamlRecordType
.PropertyIDictionaryStart);
1358
(BamlPropertyIDictionaryEndRecord) BamlRecordManager.GetWriteRecord(
BamlRecordType
.PropertyIDictionaryEnd);
1369
(BamlRoutedEventRecord) BamlRecordManager.GetWriteRecord(
BamlRecordType
.RoutedEvent);
1399
bamlText = (BamlTextRecord) BamlRecordManager.GetWriteRecord(
BamlRecordType
.Text);
1403
bamlText = (BamlTextWithIdRecord) BamlRecordManager.GetWriteRecord(
BamlRecordType
.TextWithId);
1420
bamlText = (BamlTextWithConverterRecord)BamlRecordManager.GetWriteRecord(
BamlRecordType
.TextWithConverter);
1540
(BamlDeferableContentStartRecord)BamlRecordManager.GetWriteRecord(
BamlRecordType
.DeferableContentStart);
1649
(BamlElementEndRecord)BamlRecordManager.GetWriteRecord(
BamlRecordType
.ElementEnd);
1672
valueDeferRecord.Record.RecordType ==
BamlRecordType
.ElementStart &&
1677
(BamlStaticResourceStartRecord)BamlRecordManager.GetWriteRecord(
BamlRecordType
.StaticResourceStart);
1683
Debug.Assert(valueDeferRecord.Record != null && valueDeferRecord.Record.RecordType ==
BamlRecordType
.ElementEnd,
1687
(BamlStaticResourceEndRecord) BamlRecordManager.GetWriteRecord(
BamlRecordType
.StaticResourceEnd);
1696
(BamlStaticResourceIdRecord) BamlRecordManager.GetWriteRecord(
BamlRecordType
.StaticResourceId);
System\Windows\Markup\BamlWriter.cs (42)
156
Push(
BamlRecordType
.DocumentStart);
167
VerifyEndTagState(
BamlRecordType
.DocumentStart,
168
BamlRecordType
.DocumentEnd);
210
Push(
BamlRecordType
.ElementStart, elementType);
235
VerifyEndTagState(
BamlRecordType
.ElementStart,
236
BamlRecordType
.ElementEnd);
253
Push(
BamlRecordType
.ConstructorParametersStart);
267
VerifyEndTagState(
BamlRecordType
.ConstructorParametersStart,
268
BamlRecordType
.ConstructorParametersEnd);
299
BamlRecordType
parentType = PeekRecordType();
300
if (parentType !=
BamlRecordType
.ElementStart)
462
BamlRecordType
parentType = PeekRecordType();
463
if (parentType !=
BamlRecordType
.ElementStart &&
464
parentType !=
BamlRecordType
.PropertyComplexStart &&
465
parentType !=
BamlRecordType
.PropertyArrayStart &&
466
parentType !=
BamlRecordType
.PropertyIListStart &&
467
parentType !=
BamlRecordType
.PropertyIDictionaryStart)
499
BamlRecordType
parentType = PeekRecordType();
500
if (parentType !=
BamlRecordType
.ElementStart &&
667
Push(
BamlRecordType
.PropertyComplexStart);
680
BamlRecordType
recordType = BamlRecordManager.GetPropertyStartRecordType(propertyType, propertyCanWrite);
685
case
BamlRecordType
.PropertyArrayStart:
698
case
BamlRecordType
.PropertyIDictionaryStart:
712
case
BamlRecordType
.PropertyIListStart:
752
BamlRecordType
startTagType = Pop();
756
case
BamlRecordType
.PropertyArrayStart:
765
case
BamlRecordType
.PropertyIListStart:
774
case
BamlRecordType
.PropertyIDictionaryStart:
783
case
BamlRecordType
.PropertyComplexStart:
796
BamlRecordType
.PropertyComplexEnd.ToString()));
1034
BamlRecordType
expectedStartTag,
1035
BamlRecordType
endTagBeingWritten)
1039
BamlRecordType
startTagState = Pop();
1256
private void Push(
BamlRecordType
recordType)
1262
private void Push(
BamlRecordType
recordType, Type elementType)
1269
private
BamlRecordType
Pop()
1277
private
BamlRecordType
PeekRecordType()
1300
parentNode.RecordType ==
BamlRecordType
.ElementStart)
1324
BamlRecordType
recordType)
1331
BamlRecordType
recordType,
1337
public
BamlRecordType
RecordType
1354
BamlRecordType
_recordType;
System\Windows\Markup\MarkupExtensionParser.cs (4)
642
BamlRecordType
propertyRecordType = BamlRecordManager.GetPropertyStartRecordType(propertyType, propertyCanWrite);
651
case
BamlRecordType
.PropertyArrayStart:
668
case
BamlRecordType
.PropertyIDictionaryStart:
684
case
BamlRecordType
.PropertyIListStart:
System\Windows\Markup\XamlStyleSerializer.cs (4)
89
if (record.RecordType ==
BamlRecordType
.ElementStart)
104
else if (record.RecordType ==
BamlRecordType
.Property && numberOfElements == 1)
113
else if (record.RecordType ==
BamlRecordType
.PropertyComplexStart ||
114
record.RecordType ==
BamlRecordType
.PropertyIListStart)
System\Windows\Markup\XamlTemplateSerializer.cs (5)
86
if (record.RecordType ==
BamlRecordType
.ElementStart)
101
else if (record.RecordType ==
BamlRecordType
.Property && numberOfElements == 1)
131
else if (record.RecordType ==
BamlRecordType
.PropertyComplexStart ||
132
record.RecordType ==
BamlRecordType
.PropertyIListStart ||
133
record.RecordType ==
BamlRecordType
.ElementEnd)