525 references to BamlRecordType
PresentationFramework (525)
System\Windows\Markup\BamlReader.cs (111)
416
if (info.RecordType ==
BamlRecordType
.XmlnsProperty)
420
else if (info.RecordType ==
BamlRecordType
.DefAttribute)
424
else if (info.RecordType ==
BamlRecordType
.PresentationOptionsAttribute)
568
case
BamlRecordType
.AssemblyInfo:
573
case
BamlRecordType
.TypeInfo:
574
case
BamlRecordType
.TypeSerializerInfo:
579
case
BamlRecordType
.AttributeInfo:
584
case
BamlRecordType
.StringInfo:
589
case
BamlRecordType
.ContentProperty:
596
case
BamlRecordType
.DocumentStart:
600
case
BamlRecordType
.DocumentEnd:
604
case
BamlRecordType
.PIMapping:
608
case
BamlRecordType
.LiteralContent:
612
case
BamlRecordType
.ElementStart:
613
case
BamlRecordType
.StaticResourceStart:
617
case
BamlRecordType
.ElementEnd:
618
case
BamlRecordType
.StaticResourceEnd:
622
case
BamlRecordType
.PropertyComplexStart:
623
case
BamlRecordType
.PropertyArrayStart:
624
case
BamlRecordType
.PropertyIListStart:
625
case
BamlRecordType
.PropertyIDictionaryStart:
629
case
BamlRecordType
.PropertyComplexEnd:
630
case
BamlRecordType
.PropertyArrayEnd:
631
case
BamlRecordType
.PropertyIListEnd:
632
case
BamlRecordType
.PropertyIDictionaryEnd:
636
case
BamlRecordType
.Text:
637
case
BamlRecordType
.TextWithId:
638
case
BamlRecordType
.TextWithConverter:
642
case
BamlRecordType
.DeferableContentStart:
647
case
BamlRecordType
.ConstructorParametersStart:
651
case
BamlRecordType
.ConstructorParametersEnd:
655
case
BamlRecordType
.ConnectionId:
659
case
BamlRecordType
.StaticResourceId:
712
case
BamlRecordType
.AssemblyInfo:
716
case
BamlRecordType
.TypeInfo:
717
case
BamlRecordType
.TypeSerializerInfo:
721
case
BamlRecordType
.AttributeInfo:
725
case
BamlRecordType
.StringInfo:
730
case
BamlRecordType
.XmlnsProperty:
734
case
BamlRecordType
.ConnectionId:
738
case
BamlRecordType
.Property:
739
case
BamlRecordType
.PropertyWithConverter:
743
case
BamlRecordType
.ContentProperty:
748
case
BamlRecordType
.PropertyStringReference:
752
case
BamlRecordType
.PropertyTypeReference:
756
case
BamlRecordType
.PropertyWithExtension:
760
case
BamlRecordType
.PropertyWithStaticResourceId:
764
case
BamlRecordType
.PropertyCustom:
768
case
BamlRecordType
.DefAttribute:
772
case
BamlRecordType
.PresentationOptionsAttribute:
776
case
BamlRecordType
.DefAttributeKeyType:
780
case
BamlRecordType
.RoutedEvent:
784
case
BamlRecordType
.ClrEvent:
788
case
BamlRecordType
.KeyElementStart:
833
info.RecordType =
BamlRecordType
.XmlnsProperty;
1113
info.RecordType =
BamlRecordType
.DefAttribute;
1140
info.RecordType =
BamlRecordType
.PresentationOptionsAttribute;
1167
info.RecordType =
BamlRecordType
.DefAttribute;
1256
case
BamlRecordType
.DefAttributeKeyString:
1283
info.RecordType =
BamlRecordType
.DefAttribute;
1289
case
BamlRecordType
.DefAttributeKeyType:
1332
info.RecordType =
BamlRecordType
.DefAttribute;
1338
case
BamlRecordType
.KeyElementStart:
1357
case
BamlRecordType
.StaticResourceStart:
1358
case
BamlRecordType
.OptimizedStaticResource:
1368
if (_currentBamlRecord.RecordType ==
BamlRecordType
.StaticResourceStart)
1402
info.RecordType =
BamlRecordType
.DefAttribute;
1476
case
BamlRecordType
.AssemblyInfo:
1480
case
BamlRecordType
.TypeInfo:
1481
case
BamlRecordType
.TypeSerializerInfo:
1485
case
BamlRecordType
.AttributeInfo:
1489
case
BamlRecordType
.StringInfo:
1494
case
BamlRecordType
.PropertyComplexStart:
1505
case
BamlRecordType
.PropertyComplexEnd:
1508
case
BamlRecordType
.Text:
1509
case
BamlRecordType
.TextWithId:
1535
case
BamlRecordType
.ElementStart:
1567
case
BamlRecordType
.ElementEnd:
1574
case
BamlRecordType
.ConstructorParametersStart:
1579
case
BamlRecordType
.ConstructorParametersEnd:
1586
case
BamlRecordType
.ConstructorParameterType:
1601
case
BamlRecordType
.Property:
1602
case
BamlRecordType
.PropertyWithConverter:
1615
case
BamlRecordType
.PropertyCustom:
1627
case
BamlRecordType
.PropertyStringReference:
1640
case
BamlRecordType
.PropertyTypeReference:
1654
case
BamlRecordType
.PropertyWithExtension:
1668
case
BamlRecordType
.KeyElementEnd:
1691
info.RecordType =
BamlRecordType
.DefAttribute;
1724
if (_currentBamlRecord.RecordType ==
BamlRecordType
.StaticResourceEnd)
1828
nodeInfo.RecordType =
BamlRecordType
.DocumentStart;
1846
if (nodeInfo.RecordType !=
BamlRecordType
.DocumentStart)
1972
nodeInfo.RecordType =
BamlRecordType
.ElementStart;
2029
if (nodeInfo.RecordType !=
BamlRecordType
.ElementStart)
2033
BamlRecordType
.ElementEnd.ToString()));
2116
BamlRecordType
expectedType;
2119
case
BamlRecordType
.PropertyComplexStart:
2120
expectedType =
BamlRecordType
.PropertyComplexEnd;
2122
case
BamlRecordType
.PropertyArrayStart:
2123
expectedType =
BamlRecordType
.PropertyArrayEnd;
2125
case
BamlRecordType
.PropertyIListStart:
2126
expectedType =
BamlRecordType
.PropertyIListEnd;
2128
case
BamlRecordType
.PropertyIDictionaryStart:
2129
expectedType =
BamlRecordType
.PropertyIDictionaryEnd;
2132
expectedType =
BamlRecordType
.Unknown;
2220
nodeInfo.RecordType =
BamlRecordType
.ConstructorParametersStart;
2244
if (nodeInfo.RecordType !=
BamlRecordType
.ConstructorParametersStart)
2248
BamlRecordType
.ConstructorParametersEnd.ToString()));
2287
info.RecordType =
BamlRecordType
.DefAttribute;
2880
internal
BamlRecordType
RecordType
2937
private
BamlRecordType
_recordType;
System\Windows\Markup\BamlRecordHelper.cs (67)
26
static internal bool IsMapTableRecordType(
BamlRecordType
bamlRecordType )
30
case
BamlRecordType
.PIMapping:
31
case
BamlRecordType
.AssemblyInfo:
32
case
BamlRecordType
.TypeInfo:
33
case
BamlRecordType
.TypeSerializerInfo:
34
case
BamlRecordType
.AttributeInfo:
35
case
BamlRecordType
.StringInfo:
43
internal static bool IsDebugBamlRecordType(
BamlRecordType
recordType)
45
if ( recordType ==
BamlRecordType
.LineNumberAndPosition
46
|| recordType ==
BamlRecordType
.LinePosition )
67
internal static bool DoesRecordTypeHaveDebugExtension(
BamlRecordType
recordType)
71
case
BamlRecordType
.ElementStart:
72
case
BamlRecordType
.ElementEnd:
73
case
BamlRecordType
.Property:
74
case
BamlRecordType
.PropertyComplexStart:
75
case
BamlRecordType
.PropertyArrayStart:
76
case
BamlRecordType
.PropertyIListStart:
77
case
BamlRecordType
.PropertyIDictionaryStart:
78
case
BamlRecordType
.XmlnsProperty:
79
case
BamlRecordType
.PIMapping:
80
case
BamlRecordType
.PropertyTypeReference:
81
case
BamlRecordType
.PropertyWithExtension:
82
case
BamlRecordType
.PropertyWithConverter:
83
case
BamlRecordType
.KeyElementStart:
84
case
BamlRecordType
.ConnectionId:
85
case
BamlRecordType
.ContentProperty:
86
case
BamlRecordType
.StaticResourceStart:
87
case
BamlRecordType
.PresentationOptionsAttribute:
90
case
BamlRecordType
.DocumentStart:
91
case
BamlRecordType
.DocumentEnd: // End record
92
case
BamlRecordType
.PropertyCustom: // The "custom" size of this is a problem
93
case
BamlRecordType
.PropertyComplexEnd: // End record
94
case
BamlRecordType
.PropertyArrayEnd: // End record
95
case
BamlRecordType
.PropertyIListEnd: // End record
96
case
BamlRecordType
.PropertyIDictionaryEnd: // End record
97
case
BamlRecordType
.LiteralContent: // Not needed
98
case
BamlRecordType
.Text: // Not needed
99
case
BamlRecordType
.TextWithConverter: // Not common enough
100
case
BamlRecordType
.RoutedEvent: // Not common enough
101
case
BamlRecordType
.ClrEvent: // Not common enough
102
case
BamlRecordType
.XmlAttribute: // Not common enough
103
case
BamlRecordType
.ProcessingInstruction: // Not common enough
104
case
BamlRecordType
.Comment: // Not common enough
105
case
BamlRecordType
.DefTag: // Not common enough
106
case
BamlRecordType
.DefAttribute: // Not common enough
107
case
BamlRecordType
.EndAttributes: // Not common enough
108
case
BamlRecordType
.AssemblyInfo: // Info records (in general) don't advance file position
109
case
BamlRecordType
.TypeInfo: // Info records (in general) don't advance file position
110
case
BamlRecordType
.TypeSerializerInfo: // Not common enough
111
case
BamlRecordType
.AttributeInfo: // Info records (in general) don't advance file position
112
case
BamlRecordType
.StringInfo: // Info records (in general) don't advance file position
113
case
BamlRecordType
.PropertyStringReference: // Not common enough
114
case
BamlRecordType
.DeferableContentStart: // This would complicate Deferable Content Size
115
case
BamlRecordType
.ConstructorParametersStart: // Not Needed
116
case
BamlRecordType
.ConstructorParametersEnd: // End record
117
case
BamlRecordType
.ConstructorParameterType: // Not Needed
118
case
BamlRecordType
.NamedElementStart: // Not common enough
119
case
BamlRecordType
.TextWithId: // Not Needed
120
case
BamlRecordType
.LineNumberAndPosition: // This would become recursive
121
case
BamlRecordType
.LinePosition: // This would become recursive
122
case
BamlRecordType
.DefAttributeKeyString:
123
case
BamlRecordType
.DefAttributeKeyType:
124
case
BamlRecordType
.KeyElementEnd:
125
case
BamlRecordType
.StaticResourceEnd:
126
case
BamlRecordType
.StaticResourceId:
127
case
BamlRecordType
.OptimizedStaticResource:
128
case
BamlRecordType
.PropertyWithStaticResourceId:
System\Windows\Markup\BamlRecordReader.cs (70)
227
BamlRecordType
recordType = (
BamlRecordType
)BinaryReader.ReadByte();
265
BamlRecordType
recordType = (
BamlRecordType
)BinaryReader.ReadByte();
295
BamlRecordType
recordType)
316
BamlRecordType
nextRecordType = (
BamlRecordType
)BinaryReader.ReadByte();
334
if(bamlRecord.RecordType ==
BamlRecordType
.LineNumberAndPosition)
342
Debug.Assert(bamlRecord.RecordType ==
BamlRecordType
.LinePosition);
351
internal
BamlRecordType
GetNextRecordType()
353
BamlRecordType
bamlRecordType;
357
bamlRecordType = (
BamlRecordType
)BinaryReader.PeekChar();
575
case
BamlRecordType
.DocumentStart:
579
case
BamlRecordType
.DocumentEnd:
584
case
BamlRecordType
.XmlnsProperty:
588
case
BamlRecordType
.PIMapping:
604
case
BamlRecordType
.AssemblyInfo:
608
case
BamlRecordType
.TypeInfo:
609
case
BamlRecordType
.TypeSerializerInfo:
613
case
BamlRecordType
.AttributeInfo:
617
case
BamlRecordType
.StringInfo:
621
case
BamlRecordType
.LiteralContent:
625
case
BamlRecordType
.ElementStart:
626
case
BamlRecordType
.StaticResourceStart:
637
case
BamlRecordType
.NamedElementStart:
643
case
BamlRecordType
.ConnectionId:
647
case
BamlRecordType
.ElementEnd:
648
case
BamlRecordType
.StaticResourceEnd:
659
case
BamlRecordType
.PropertyComplexStart:
663
case
BamlRecordType
.PropertyComplexEnd:
667
case
BamlRecordType
.Property:
671
case
BamlRecordType
.PropertyStringReference:
675
case
BamlRecordType
.PropertyTypeReference:
679
case
BamlRecordType
.PropertyWithExtension:
683
case
BamlRecordType
.PropertyWithConverter:
687
case
BamlRecordType
.PropertyCustom:
691
case
BamlRecordType
.PropertyArrayStart:
695
case
BamlRecordType
.PropertyArrayEnd:
699
case
BamlRecordType
.PropertyIListStart:
703
case
BamlRecordType
.PropertyIListEnd:
707
case
BamlRecordType
.PropertyIDictionaryStart:
711
case
BamlRecordType
.PropertyIDictionaryEnd:
715
case
BamlRecordType
.DefAttribute:
719
case
BamlRecordType
.DefAttributeKeyType:
723
case
BamlRecordType
.PresentationOptionsAttribute:
727
case
BamlRecordType
.RoutedEvent:
737
case
BamlRecordType
.Text:
738
case
BamlRecordType
.TextWithId:
739
case
BamlRecordType
.TextWithConverter:
743
case
BamlRecordType
.DeferableContentStart:
747
case
BamlRecordType
.KeyElementStart:
751
case
BamlRecordType
.KeyElementEnd:
755
case
BamlRecordType
.ConstructorParametersStart:
759
case
BamlRecordType
.ConstructorParametersEnd:
763
case
BamlRecordType
.ConstructorParameterType:
767
case
BamlRecordType
.ContentProperty:
771
case
BamlRecordType
.StaticResourceId:
775
case
BamlRecordType
.PropertyWithStaticResourceId:
779
case
BamlRecordType
.LineNumberAndPosition: // Should be skipped in ReadNextRecordWithDebugExtension.
780
case
BamlRecordType
.LinePosition: // Should be skipped in ReadNextRecordWithDebugExtension.
1755
BamlRecordType
nextType = GetNextRecordType();
1756
while (nextType ==
BamlRecordType
.DefAttributeKeyString ||
1757
nextType ==
BamlRecordType
.DefAttributeKeyType ||
1758
nextType ==
BamlRecordType
.KeyElementStart)
1762
if (nextType ==
BamlRecordType
.KeyElementStart)
1842
while (nextType ==
BamlRecordType
.StaticResourceStart ||
1843
nextType ==
BamlRecordType
.OptimizedStaticResource)
1846
if (nextType ==
BamlRecordType
.StaticResourceStart)
1856
if (nestedBamlRecord.RecordType ==
BamlRecordType
.StaticResourceEnd)
1899
while (nextType ==
BamlRecordType
.StaticResourceId)
System\Windows\Markup\BamlRecords.cs (178)
388
BamlRecordType
recordType)
398
case
BamlRecordType
.AssemblyInfo:
401
case
BamlRecordType
.TypeInfo:
404
case
BamlRecordType
.TypeSerializerInfo:
407
case
BamlRecordType
.AttributeInfo:
410
case
BamlRecordType
.StringInfo:
413
case
BamlRecordType
.DefAttributeKeyString:
416
case
BamlRecordType
.DefAttributeKeyType:
419
case
BamlRecordType
.KeyElementStart:
478
static internal
BamlRecordType
GetPropertyStartRecordType(Type propertyType, bool propertyCanWrite)
480
BamlRecordType
recordType;
483
recordType =
BamlRecordType
.PropertyArrayStart;
496
recordType =
BamlRecordType
.PropertyIDictionaryStart;
508
recordType =
BamlRecordType
.PropertyIListStart;
512
recordType =
BamlRecordType
.PropertyComplexStart;
525
case
BamlRecordType
.ElementStart:
536
case
BamlRecordType
.PropertyCustom:
559
private BamlRecord AllocateWriteRecord(
BamlRecordType
recordType)
565
case
BamlRecordType
.PropertyCustom:
578
private BamlRecord AllocateRecord(
BamlRecordType
recordType)
584
case
BamlRecordType
.DocumentStart:
587
case
BamlRecordType
.DocumentEnd:
590
case
BamlRecordType
.ConnectionId:
593
case
BamlRecordType
.ElementStart:
596
case
BamlRecordType
.ElementEnd:
599
case
BamlRecordType
.DeferableContentStart:
602
case
BamlRecordType
.DefAttributeKeyString:
605
case
BamlRecordType
.DefAttributeKeyType:
608
case
BamlRecordType
.LiteralContent:
611
case
BamlRecordType
.Property:
614
case
BamlRecordType
.PropertyWithConverter:
617
case
BamlRecordType
.PropertyStringReference:
620
case
BamlRecordType
.PropertyTypeReference:
623
case
BamlRecordType
.PropertyWithExtension:
626
case
BamlRecordType
.PropertyCustom:
629
case
BamlRecordType
.PropertyComplexStart:
632
case
BamlRecordType
.PropertyComplexEnd:
635
case
BamlRecordType
.RoutedEvent:
638
case
BamlRecordType
.PropertyArrayStart:
641
case
BamlRecordType
.PropertyArrayEnd:
644
case
BamlRecordType
.PropertyIListStart:
647
case
BamlRecordType
.PropertyIListEnd:
650
case
BamlRecordType
.PropertyIDictionaryStart:
653
case
BamlRecordType
.PropertyIDictionaryEnd:
656
case
BamlRecordType
.Text:
659
case
BamlRecordType
.TextWithConverter:
662
case
BamlRecordType
.TextWithId:
665
case
BamlRecordType
.XmlnsProperty:
668
case
BamlRecordType
.PIMapping:
671
case
BamlRecordType
.DefAttribute:
674
case
BamlRecordType
.PresentationOptionsAttribute:
677
case
BamlRecordType
.KeyElementStart:
680
case
BamlRecordType
.KeyElementEnd:
683
case
BamlRecordType
.ConstructorParametersStart:
686
case
BamlRecordType
.ConstructorParametersEnd:
689
case
BamlRecordType
.ConstructorParameterType:
692
case
BamlRecordType
.ContentProperty:
695
case
BamlRecordType
.AssemblyInfo:
696
case
BamlRecordType
.TypeInfo:
697
case
BamlRecordType
.TypeSerializerInfo:
698
case
BamlRecordType
.AttributeInfo:
699
case
BamlRecordType
.StringInfo:
703
case
BamlRecordType
.StaticResourceStart:
706
case
BamlRecordType
.StaticResourceEnd:
709
case
BamlRecordType
.StaticResourceId:
712
case
BamlRecordType
.LineNumberAndPosition:
715
case
BamlRecordType
.LinePosition:
718
case
BamlRecordType
.OptimizedStaticResource:
721
case
BamlRecordType
.PropertyWithStaticResourceId:
735
internal BamlRecord GetWriteRecord(
BamlRecordType
recordType)
741
_writeCache = new BamlRecord[(int)
BamlRecordType
.LastRecordType];
793
BamlRecord[] _readCache = new BamlRecord[(int)
BamlRecordType
.LastRecordType];
873
internal virtual
BamlRecordType
RecordType
878
return
BamlRecordType
.Unknown;
1004
internal static bool IsContentRecord(
BamlRecordType
bamlRecordType )
1006
return bamlRecordType ==
BamlRecordType
.PropertyComplexStart
1008
bamlRecordType ==
BamlRecordType
.PropertyArrayStart
1010
bamlRecordType ==
BamlRecordType
.PropertyIListStart
1012
bamlRecordType ==
BamlRecordType
.PropertyIDictionaryStart
1014
bamlRecordType ==
BamlRecordType
.Text;
1234
internal override
BamlRecordType
RecordType
1236
get { return
BamlRecordType
.XmlnsProperty; }
1305
internal override
BamlRecordType
RecordType
1307
get { return
BamlRecordType
.PIMapping; }
1543
internal override
BamlRecordType
RecordType
1545
get { return
BamlRecordType
.DefAttributeKeyType; }
1727
internal override
BamlRecordType
RecordType
1729
get { return
BamlRecordType
.DefAttributeKeyString; }
1886
internal override
BamlRecordType
RecordType
1888
get { return
BamlRecordType
.DefAttribute; }
1974
internal override
BamlRecordType
RecordType
1976
get { return
BamlRecordType
.PresentationOptionsAttribute; }
2047
internal override
BamlRecordType
RecordType
2049
get { return
BamlRecordType
.PropertyComplexStart; }
2115
internal override
BamlRecordType
RecordType
2117
get { return
BamlRecordType
.PropertyStringReference; }
2178
internal override
BamlRecordType
RecordType
2180
get { return
BamlRecordType
.PropertyTypeReference; }
2249
internal override
BamlRecordType
RecordType
2251
get { return
BamlRecordType
.PropertyWithConverter; }
2299
internal override
BamlRecordType
RecordType
2301
get { return
BamlRecordType
.Property; }
2380
internal override
BamlRecordType
RecordType
2382
get { return
BamlRecordType
.PropertyWithExtension; }
2832
internal override
BamlRecordType
RecordType
2834
get { return
BamlRecordType
.PropertyCustom; }
2920
internal override
BamlRecordType
RecordType
2922
get { return
BamlRecordType
.PropertyArrayEnd; }
2932
internal override
BamlRecordType
RecordType
2934
get { return
BamlRecordType
.ConstructorParametersStart; }
2944
internal override
BamlRecordType
RecordType
2946
get { return
BamlRecordType
.ConstructorParametersEnd; }
2982
internal override
BamlRecordType
RecordType
2984
get { return
BamlRecordType
.ConstructorParameterType; }
3010
internal override
BamlRecordType
RecordType
3012
get { return
BamlRecordType
.PropertyIListEnd; }
3022
internal override
BamlRecordType
RecordType
3024
get { return
BamlRecordType
.PropertyIDictionaryEnd; }
3034
internal override
BamlRecordType
RecordType
3036
get { return
BamlRecordType
.PropertyComplexEnd; }
3047
internal override
BamlRecordType
RecordType
3049
get { return
BamlRecordType
.PropertyArrayStart; }
3059
internal override
BamlRecordType
RecordType
3061
get { return
BamlRecordType
.PropertyIListStart; }
3071
internal override
BamlRecordType
RecordType
3073
get { return
BamlRecordType
.PropertyIDictionaryStart; }
3111
internal override
BamlRecordType
RecordType
3113
get { return
BamlRecordType
.RoutedEvent; }
3161
internal override
BamlRecordType
RecordType
3163
get { return
BamlRecordType
.LiteralContent; }
3195
internal override
BamlRecordType
RecordType
3197
get { return
BamlRecordType
.ConnectionId; }
3243
internal override
BamlRecordType
RecordType
3245
get { return
BamlRecordType
.ElementStart; }
3475
internal override
BamlRecordType
RecordType
3477
get { return
BamlRecordType
.DeferableContentStart; }
3549
internal override
BamlRecordType
RecordType
3551
get { return
BamlRecordType
.StaticResourceStart; }
3569
internal override
BamlRecordType
RecordType
3571
get { return
BamlRecordType
.StaticResourceEnd; }
3629
internal override
BamlRecordType
RecordType
3631
get { return
BamlRecordType
.OptimizedStaticResource; }
3741
internal override
BamlRecordType
RecordType
3743
get { return
BamlRecordType
.StaticResourceId; }
3819
internal override
BamlRecordType
RecordType
3821
get { return
BamlRecordType
.PropertyWithStaticResourceId; }
3861
internal override
BamlRecordType
RecordType
3863
get { return
BamlRecordType
.Text; }
3900
internal override
BamlRecordType
RecordType
3902
get { return
BamlRecordType
.TextWithId; }
3963
internal override
BamlRecordType
RecordType
3965
get { return
BamlRecordType
.TextWithConverter; }
4055
internal override
BamlRecordType
RecordType
4057
get { return
BamlRecordType
.DocumentStart; }
4103
internal override
BamlRecordType
RecordType
4105
get { return
BamlRecordType
.ElementEnd; }
4121
internal override
BamlRecordType
RecordType
4123
get { return
BamlRecordType
.KeyElementStart; }
4134
internal override
BamlRecordType
RecordType
4136
get { return
BamlRecordType
.KeyElementEnd; }
4147
internal override
BamlRecordType
RecordType
4149
get { return
BamlRecordType
.DocumentEnd; }
4254
internal override
BamlRecordType
RecordType
4256
get { return
BamlRecordType
.AssemblyInfo; }
4377
internal override
BamlRecordType
RecordType
4379
get { return
BamlRecordType
.TypeInfo; }
4531
internal override
BamlRecordType
RecordType
4533
get { return
BamlRecordType
.TypeSerializerInfo; }
4657
internal override
BamlRecordType
RecordType
4659
get { return
BamlRecordType
.AttributeInfo; }
5034
internal override
BamlRecordType
RecordType
5036
get { return
BamlRecordType
.StringInfo; }
5120
internal override
BamlRecordType
RecordType
5122
get { return
BamlRecordType
.ContentProperty; }
5172
internal override
BamlRecordType
RecordType
5174
get { return
BamlRecordType
.LineNumberAndPosition; }
5241
internal override
BamlRecordType
RecordType
5243
get { return
BamlRecordType
.LinePosition; }
System\Windows\Markup\BamlRecordWriter.cs (44)
219
DocumentStartRecord = (BamlDocumentStartRecord) BamlRecordManager.GetWriteRecord(
BamlRecordType
.DocumentStart);
235
(BamlDocumentEndRecord) BamlRecordManager.GetWriteRecord(
BamlRecordType
.DocumentEnd);
248
(BamlConnectionIdRecord)BamlRecordManager.GetWriteRecord(
BamlRecordType
.ConnectionId);
260
(BamlElementStartRecord) BamlRecordManager.GetWriteRecord(
BamlRecordType
.ElementStart);
397
(BamlElementEndRecord) BamlRecordManager.GetWriteRecord(
BamlRecordType
.ElementEnd);
457
(BamlLiteralContentRecord) BamlRecordManager.GetWriteRecord(
BamlRecordType
.LiteralContent);
487
BamlRecordType
.DefAttributeKeyType)
577
(BamlDefAttributeKeyStringRecord) BamlRecordManager.GetWriteRecord(
BamlRecordType
.DefAttributeKeyString);
613
(BamlDefAttributeKeyStringRecord) BamlRecordManager.GetWriteRecord(
BamlRecordType
.DefAttributeKeyString);
636
(BamlDefAttributeRecord) BamlRecordManager.GetWriteRecord(
BamlRecordType
.DefAttribute);
661
BamlRecordType
.PresentationOptionsAttribute);
676
(BamlXmlnsPropertyRecord) BamlRecordManager.GetWriteRecord(
BamlRecordType
.XmlnsProperty);
736
(BamlPIMappingRecord) BamlRecordManager.GetWriteRecord(
BamlRecordType
.PIMapping);
758
BamlRecordType
.PropertyComplexStart);
778
BamlRecordType
.PropertyComplexEnd);
807
BamlRecordType
.KeyElementStart);
873
(BamlKeyElementEndRecord) BamlRecordManager.GetWriteRecord(
BamlRecordType
.KeyElementEnd);
927
BamlRecordType
.ConstructorParametersStart);
941
BamlRecordType
.ConstructorParametersEnd);
949
(BamlContentPropertyRecord)BamlRecordManager.GetWriteRecord(
BamlRecordType
.ContentProperty);
998
(BamlPropertyCustomWriteInfoRecord)BamlRecordManager.GetWriteRecord(
BamlRecordType
.PropertyCustom);
1050
BamlRecordType
.PropertyWithConverter);
1160
(BamlOptimizedStaticResourceRecord)BamlRecordManager.GetWriteRecord(
BamlRecordType
.OptimizedStaticResource);
1178
(BamlPropertyWithStaticResourceIdRecord) BamlRecordManager.GetWriteRecord(
BamlRecordType
.PropertyWithStaticResourceId);
1193
(BamlPropertyWithExtensionRecord)BamlRecordManager.GetWriteRecord(
BamlRecordType
.PropertyWithExtension);
1236
BamlRecordType
.PropertyTypeReference) as BamlPropertyTypeReferenceRecord;
1259
(BamlPropertyRecord)BamlRecordManager.GetWriteRecord(
BamlRecordType
.Property);
1279
(BamlPropertyArrayStartRecord) BamlRecordManager.GetWriteRecord(
BamlRecordType
.PropertyArrayStart);
1299
(BamlPropertyArrayEndRecord) BamlRecordManager.GetWriteRecord(
BamlRecordType
.PropertyArrayEnd);
1310
(BamlPropertyIListStartRecord) BamlRecordManager.GetWriteRecord(
BamlRecordType
.PropertyIListStart);
1330
(BamlPropertyIListEndRecord) BamlRecordManager.GetWriteRecord(
BamlRecordType
.PropertyIListEnd);
1341
(BamlPropertyIDictionaryStartRecord) BamlRecordManager.GetWriteRecord(
BamlRecordType
.PropertyIDictionaryStart);
1361
(BamlPropertyIDictionaryEndRecord) BamlRecordManager.GetWriteRecord(
BamlRecordType
.PropertyIDictionaryEnd);
1372
(BamlRoutedEventRecord) BamlRecordManager.GetWriteRecord(
BamlRecordType
.RoutedEvent);
1402
bamlText = (BamlTextRecord) BamlRecordManager.GetWriteRecord(
BamlRecordType
.Text);
1406
bamlText = (BamlTextWithIdRecord) BamlRecordManager.GetWriteRecord(
BamlRecordType
.TextWithId);
1423
bamlText = (BamlTextWithConverterRecord)BamlRecordManager.GetWriteRecord(
BamlRecordType
.TextWithConverter);
1543
(BamlDeferableContentStartRecord)BamlRecordManager.GetWriteRecord(
BamlRecordType
.DeferableContentStart);
1652
(BamlElementEndRecord)BamlRecordManager.GetWriteRecord(
BamlRecordType
.ElementEnd);
1675
valueDeferRecord.Record.RecordType ==
BamlRecordType
.ElementStart &&
1680
(BamlStaticResourceStartRecord)BamlRecordManager.GetWriteRecord(
BamlRecordType
.StaticResourceStart);
1686
Debug.Assert(valueDeferRecord.Record != null && valueDeferRecord.Record.RecordType ==
BamlRecordType
.ElementEnd,
1690
(BamlStaticResourceEndRecord) BamlRecordManager.GetWriteRecord(
BamlRecordType
.StaticResourceEnd);
1699
(BamlStaticResourceIdRecord) BamlRecordManager.GetWriteRecord(
BamlRecordType
.StaticResourceId);
System\Windows\Markup\BamlWriter.cs (42)
170
Push(
BamlRecordType
.DocumentStart);
181
VerifyEndTagState(
BamlRecordType
.DocumentStart,
182
BamlRecordType
.DocumentEnd);
224
Push(
BamlRecordType
.ElementStart, elementType);
249
VerifyEndTagState(
BamlRecordType
.ElementStart,
250
BamlRecordType
.ElementEnd);
267
Push(
BamlRecordType
.ConstructorParametersStart);
281
VerifyEndTagState(
BamlRecordType
.ConstructorParametersStart,
282
BamlRecordType
.ConstructorParametersEnd);
313
BamlRecordType
parentType = PeekRecordType();
314
if (parentType !=
BamlRecordType
.ElementStart)
476
BamlRecordType
parentType = PeekRecordType();
477
if (parentType !=
BamlRecordType
.ElementStart &&
478
parentType !=
BamlRecordType
.PropertyComplexStart &&
479
parentType !=
BamlRecordType
.PropertyArrayStart &&
480
parentType !=
BamlRecordType
.PropertyIListStart &&
481
parentType !=
BamlRecordType
.PropertyIDictionaryStart)
513
BamlRecordType
parentType = PeekRecordType();
514
if (parentType !=
BamlRecordType
.ElementStart &&
681
Push(
BamlRecordType
.PropertyComplexStart);
694
BamlRecordType
recordType = BamlRecordManager.GetPropertyStartRecordType(propertyType, propertyCanWrite);
699
case
BamlRecordType
.PropertyArrayStart:
712
case
BamlRecordType
.PropertyIDictionaryStart:
726
case
BamlRecordType
.PropertyIListStart:
766
BamlRecordType
startTagType = Pop();
770
case
BamlRecordType
.PropertyArrayStart:
779
case
BamlRecordType
.PropertyIListStart:
788
case
BamlRecordType
.PropertyIDictionaryStart:
797
case
BamlRecordType
.PropertyComplexStart:
810
BamlRecordType
.PropertyComplexEnd.ToString()));
1048
BamlRecordType
expectedStartTag,
1049
BamlRecordType
endTagBeingWritten)
1053
BamlRecordType
startTagState = Pop();
1270
private void Push(
BamlRecordType
recordType)
1276
private void Push(
BamlRecordType
recordType, Type elementType)
1283
private
BamlRecordType
Pop()
1291
private
BamlRecordType
PeekRecordType()
1314
parentNode.RecordType ==
BamlRecordType
.ElementStart)
1338
BamlRecordType
recordType)
1345
BamlRecordType
recordType,
1351
public
BamlRecordType
RecordType
1368
BamlRecordType
_recordType;
System\Windows\Markup\MarkupExtensionParser.cs (4)
649
BamlRecordType
propertyRecordType = BamlRecordManager.GetPropertyStartRecordType(propertyType, propertyCanWrite);
658
case
BamlRecordType
.PropertyArrayStart:
675
case
BamlRecordType
.PropertyIDictionaryStart:
691
case
BamlRecordType
.PropertyIListStart:
System\Windows\Markup\XamlStyleSerializer.cs (4)
100
if (record.RecordType ==
BamlRecordType
.ElementStart)
115
else if (record.RecordType ==
BamlRecordType
.Property && numberOfElements == 1)
124
else if (record.RecordType ==
BamlRecordType
.PropertyComplexStart ||
125
record.RecordType ==
BamlRecordType
.PropertyIListStart)
System\Windows\Markup\XamlTemplateSerializer.cs (5)
97
if (record.RecordType ==
BamlRecordType
.ElementStart)
112
else if (record.RecordType ==
BamlRecordType
.Property && numberOfElements == 1)
142
else if (record.RecordType ==
BamlRecordType
.PropertyComplexStart ||
143
record.RecordType ==
BamlRecordType
.PropertyIListStart ||
144
record.RecordType ==
BamlRecordType
.ElementEnd)