525 references to BamlRecordType
PresentationFramework (525)
src\Framework\System\Windows\Markup\BamlReader.cs (111)
425
if (info.RecordType ==
BamlRecordType
.XmlnsProperty)
429
else if (info.RecordType ==
BamlRecordType
.DefAttribute)
433
else if (info.RecordType ==
BamlRecordType
.PresentationOptionsAttribute)
577
case
BamlRecordType
.AssemblyInfo:
582
case
BamlRecordType
.TypeInfo:
583
case
BamlRecordType
.TypeSerializerInfo:
588
case
BamlRecordType
.AttributeInfo:
593
case
BamlRecordType
.StringInfo:
598
case
BamlRecordType
.ContentProperty:
605
case
BamlRecordType
.DocumentStart:
609
case
BamlRecordType
.DocumentEnd:
613
case
BamlRecordType
.PIMapping:
617
case
BamlRecordType
.LiteralContent:
621
case
BamlRecordType
.ElementStart:
622
case
BamlRecordType
.StaticResourceStart:
626
case
BamlRecordType
.ElementEnd:
627
case
BamlRecordType
.StaticResourceEnd:
631
case
BamlRecordType
.PropertyComplexStart:
632
case
BamlRecordType
.PropertyArrayStart:
633
case
BamlRecordType
.PropertyIListStart:
634
case
BamlRecordType
.PropertyIDictionaryStart:
638
case
BamlRecordType
.PropertyComplexEnd:
639
case
BamlRecordType
.PropertyArrayEnd:
640
case
BamlRecordType
.PropertyIListEnd:
641
case
BamlRecordType
.PropertyIDictionaryEnd:
645
case
BamlRecordType
.Text:
646
case
BamlRecordType
.TextWithId:
647
case
BamlRecordType
.TextWithConverter:
651
case
BamlRecordType
.DeferableContentStart:
656
case
BamlRecordType
.ConstructorParametersStart:
660
case
BamlRecordType
.ConstructorParametersEnd:
664
case
BamlRecordType
.ConnectionId:
668
case
BamlRecordType
.StaticResourceId:
724
case
BamlRecordType
.AssemblyInfo:
728
case
BamlRecordType
.TypeInfo:
729
case
BamlRecordType
.TypeSerializerInfo:
733
case
BamlRecordType
.AttributeInfo:
737
case
BamlRecordType
.StringInfo:
742
case
BamlRecordType
.XmlnsProperty:
746
case
BamlRecordType
.ConnectionId:
750
case
BamlRecordType
.Property:
751
case
BamlRecordType
.PropertyWithConverter:
755
case
BamlRecordType
.ContentProperty:
760
case
BamlRecordType
.PropertyStringReference:
764
case
BamlRecordType
.PropertyTypeReference:
768
case
BamlRecordType
.PropertyWithExtension:
772
case
BamlRecordType
.PropertyWithStaticResourceId:
776
case
BamlRecordType
.PropertyCustom:
780
case
BamlRecordType
.DefAttribute:
784
case
BamlRecordType
.PresentationOptionsAttribute:
788
case
BamlRecordType
.DefAttributeKeyType:
792
case
BamlRecordType
.RoutedEvent:
796
case
BamlRecordType
.ClrEvent:
800
case
BamlRecordType
.KeyElementStart:
845
info.RecordType =
BamlRecordType
.XmlnsProperty;
1125
info.RecordType =
BamlRecordType
.DefAttribute;
1152
info.RecordType =
BamlRecordType
.PresentationOptionsAttribute;
1179
info.RecordType =
BamlRecordType
.DefAttribute;
1268
case
BamlRecordType
.DefAttributeKeyString:
1295
info.RecordType =
BamlRecordType
.DefAttribute;
1301
case
BamlRecordType
.DefAttributeKeyType:
1344
info.RecordType =
BamlRecordType
.DefAttribute;
1350
case
BamlRecordType
.KeyElementStart:
1369
case
BamlRecordType
.StaticResourceStart:
1370
case
BamlRecordType
.OptimizedStaticResource:
1380
if (_currentBamlRecord.RecordType ==
BamlRecordType
.StaticResourceStart)
1414
info.RecordType =
BamlRecordType
.DefAttribute;
1488
case
BamlRecordType
.AssemblyInfo:
1492
case
BamlRecordType
.TypeInfo:
1493
case
BamlRecordType
.TypeSerializerInfo:
1497
case
BamlRecordType
.AttributeInfo:
1501
case
BamlRecordType
.StringInfo:
1506
case
BamlRecordType
.PropertyComplexStart:
1517
case
BamlRecordType
.PropertyComplexEnd:
1520
case
BamlRecordType
.Text:
1521
case
BamlRecordType
.TextWithId:
1547
case
BamlRecordType
.ElementStart:
1579
case
BamlRecordType
.ElementEnd:
1586
case
BamlRecordType
.ConstructorParametersStart:
1591
case
BamlRecordType
.ConstructorParametersEnd:
1598
case
BamlRecordType
.ConstructorParameterType:
1613
case
BamlRecordType
.Property:
1614
case
BamlRecordType
.PropertyWithConverter:
1627
case
BamlRecordType
.PropertyCustom:
1639
case
BamlRecordType
.PropertyStringReference:
1652
case
BamlRecordType
.PropertyTypeReference:
1666
case
BamlRecordType
.PropertyWithExtension:
1680
case
BamlRecordType
.KeyElementEnd:
1703
info.RecordType =
BamlRecordType
.DefAttribute;
1737
if (_currentBamlRecord.RecordType ==
BamlRecordType
.StaticResourceEnd)
1841
nodeInfo.RecordType =
BamlRecordType
.DocumentStart;
1859
if (nodeInfo.RecordType !=
BamlRecordType
.DocumentStart)
1994
nodeInfo.RecordType =
BamlRecordType
.ElementStart;
2051
if (nodeInfo.RecordType !=
BamlRecordType
.ElementStart)
2055
BamlRecordType
.ElementEnd.ToString()));
2139
BamlRecordType
expectedType;
2142
case
BamlRecordType
.PropertyComplexStart:
2143
expectedType =
BamlRecordType
.PropertyComplexEnd;
2145
case
BamlRecordType
.PropertyArrayStart:
2146
expectedType =
BamlRecordType
.PropertyArrayEnd;
2148
case
BamlRecordType
.PropertyIListStart:
2149
expectedType =
BamlRecordType
.PropertyIListEnd;
2151
case
BamlRecordType
.PropertyIDictionaryStart:
2152
expectedType =
BamlRecordType
.PropertyIDictionaryEnd;
2155
expectedType =
BamlRecordType
.Unknown;
2243
nodeInfo.RecordType =
BamlRecordType
.ConstructorParametersStart;
2267
if (nodeInfo.RecordType !=
BamlRecordType
.ConstructorParametersStart)
2271
BamlRecordType
.ConstructorParametersEnd.ToString()));
2310
info.RecordType =
BamlRecordType
.DefAttribute;
2909
internal
BamlRecordType
RecordType
2966
private
BamlRecordType
_recordType;
src\Framework\System\Windows\Markup\BamlRecordHelper.cs (67)
29
static internal bool IsMapTableRecordType(
BamlRecordType
bamlRecordType )
33
case
BamlRecordType
.PIMapping:
34
case
BamlRecordType
.AssemblyInfo:
35
case
BamlRecordType
.TypeInfo:
36
case
BamlRecordType
.TypeSerializerInfo:
37
case
BamlRecordType
.AttributeInfo:
38
case
BamlRecordType
.StringInfo:
46
internal static bool IsDebugBamlRecordType(
BamlRecordType
recordType)
48
if ( recordType ==
BamlRecordType
.LineNumberAndPosition
49
|| recordType ==
BamlRecordType
.LinePosition )
70
internal static bool DoesRecordTypeHaveDebugExtension(
BamlRecordType
recordType)
74
case
BamlRecordType
.ElementStart:
75
case
BamlRecordType
.ElementEnd:
76
case
BamlRecordType
.Property:
77
case
BamlRecordType
.PropertyComplexStart:
78
case
BamlRecordType
.PropertyArrayStart:
79
case
BamlRecordType
.PropertyIListStart:
80
case
BamlRecordType
.PropertyIDictionaryStart:
81
case
BamlRecordType
.XmlnsProperty:
82
case
BamlRecordType
.PIMapping:
83
case
BamlRecordType
.PropertyTypeReference:
84
case
BamlRecordType
.PropertyWithExtension:
85
case
BamlRecordType
.PropertyWithConverter:
86
case
BamlRecordType
.KeyElementStart:
87
case
BamlRecordType
.ConnectionId:
88
case
BamlRecordType
.ContentProperty:
89
case
BamlRecordType
.StaticResourceStart:
90
case
BamlRecordType
.PresentationOptionsAttribute:
93
case
BamlRecordType
.DocumentStart:
94
case
BamlRecordType
.DocumentEnd: // End record
95
case
BamlRecordType
.PropertyCustom: // The "custom" size of this is a problem
96
case
BamlRecordType
.PropertyComplexEnd: // End record
97
case
BamlRecordType
.PropertyArrayEnd: // End record
98
case
BamlRecordType
.PropertyIListEnd: // End record
99
case
BamlRecordType
.PropertyIDictionaryEnd: // End record
100
case
BamlRecordType
.LiteralContent: // Not needed
101
case
BamlRecordType
.Text: // Not needed
102
case
BamlRecordType
.TextWithConverter: // Not common enough
103
case
BamlRecordType
.RoutedEvent: // Not common enough
104
case
BamlRecordType
.ClrEvent: // Not common enough
105
case
BamlRecordType
.XmlAttribute: // Not common enough
106
case
BamlRecordType
.ProcessingInstruction: // Not common enough
107
case
BamlRecordType
.Comment: // Not common enough
108
case
BamlRecordType
.DefTag: // Not common enough
109
case
BamlRecordType
.DefAttribute: // Not common enough
110
case
BamlRecordType
.EndAttributes: // Not common enough
111
case
BamlRecordType
.AssemblyInfo: // Info records (in general) don't advance file position
112
case
BamlRecordType
.TypeInfo: // Info records (in general) don't advance file position
113
case
BamlRecordType
.TypeSerializerInfo: // Not common enough
114
case
BamlRecordType
.AttributeInfo: // Info records (in general) don't advance file position
115
case
BamlRecordType
.StringInfo: // Info records (in general) don't advance file position
116
case
BamlRecordType
.PropertyStringReference: // Not common enough
117
case
BamlRecordType
.DeferableContentStart: // This would complicate Deferable Content Size
118
case
BamlRecordType
.ConstructorParametersStart: // Not Needed
119
case
BamlRecordType
.ConstructorParametersEnd: // End record
120
case
BamlRecordType
.ConstructorParameterType: // Not Needed
121
case
BamlRecordType
.NamedElementStart: // Not common enough
122
case
BamlRecordType
.TextWithId: // Not Needed
123
case
BamlRecordType
.LineNumberAndPosition: // This would become recursive
124
case
BamlRecordType
.LinePosition: // This would become recursive
125
case
BamlRecordType
.DefAttributeKeyString:
126
case
BamlRecordType
.DefAttributeKeyType:
127
case
BamlRecordType
.KeyElementEnd:
128
case
BamlRecordType
.StaticResourceEnd:
129
case
BamlRecordType
.StaticResourceId:
130
case
BamlRecordType
.OptimizedStaticResource:
131
case
BamlRecordType
.PropertyWithStaticResourceId:
src\Framework\System\Windows\Markup\BamlRecordReader.cs (70)
240
BamlRecordType
recordType = (
BamlRecordType
)BinaryReader.ReadByte();
279
BamlRecordType
recordType = (
BamlRecordType
)BinaryReader.ReadByte();
309
BamlRecordType
recordType)
330
BamlRecordType
nextRecordType = (
BamlRecordType
)BinaryReader.ReadByte();
348
if(bamlRecord.RecordType ==
BamlRecordType
.LineNumberAndPosition)
356
Debug.Assert(bamlRecord.RecordType ==
BamlRecordType
.LinePosition);
365
internal
BamlRecordType
GetNextRecordType()
367
BamlRecordType
bamlRecordType;
371
bamlRecordType = (
BamlRecordType
)BinaryReader.PeekChar();
589
case
BamlRecordType
.DocumentStart:
593
case
BamlRecordType
.DocumentEnd:
598
case
BamlRecordType
.XmlnsProperty:
602
case
BamlRecordType
.PIMapping:
618
case
BamlRecordType
.AssemblyInfo:
622
case
BamlRecordType
.TypeInfo:
623
case
BamlRecordType
.TypeSerializerInfo:
627
case
BamlRecordType
.AttributeInfo:
631
case
BamlRecordType
.StringInfo:
635
case
BamlRecordType
.LiteralContent:
639
case
BamlRecordType
.ElementStart:
640
case
BamlRecordType
.StaticResourceStart:
651
case
BamlRecordType
.NamedElementStart:
657
case
BamlRecordType
.ConnectionId:
661
case
BamlRecordType
.ElementEnd:
662
case
BamlRecordType
.StaticResourceEnd:
673
case
BamlRecordType
.PropertyComplexStart:
677
case
BamlRecordType
.PropertyComplexEnd:
681
case
BamlRecordType
.Property:
685
case
BamlRecordType
.PropertyStringReference:
689
case
BamlRecordType
.PropertyTypeReference:
693
case
BamlRecordType
.PropertyWithExtension:
697
case
BamlRecordType
.PropertyWithConverter:
701
case
BamlRecordType
.PropertyCustom:
705
case
BamlRecordType
.PropertyArrayStart:
709
case
BamlRecordType
.PropertyArrayEnd:
713
case
BamlRecordType
.PropertyIListStart:
717
case
BamlRecordType
.PropertyIListEnd:
721
case
BamlRecordType
.PropertyIDictionaryStart:
725
case
BamlRecordType
.PropertyIDictionaryEnd:
729
case
BamlRecordType
.DefAttribute:
733
case
BamlRecordType
.DefAttributeKeyType:
737
case
BamlRecordType
.PresentationOptionsAttribute:
741
case
BamlRecordType
.RoutedEvent:
755
case
BamlRecordType
.Text:
756
case
BamlRecordType
.TextWithId:
757
case
BamlRecordType
.TextWithConverter:
761
case
BamlRecordType
.DeferableContentStart:
765
case
BamlRecordType
.KeyElementStart:
769
case
BamlRecordType
.KeyElementEnd:
773
case
BamlRecordType
.ConstructorParametersStart:
777
case
BamlRecordType
.ConstructorParametersEnd:
781
case
BamlRecordType
.ConstructorParameterType:
785
case
BamlRecordType
.ContentProperty:
789
case
BamlRecordType
.StaticResourceId:
793
case
BamlRecordType
.PropertyWithStaticResourceId:
797
case
BamlRecordType
.LineNumberAndPosition: // Should be skipped in ReadNextRecordWithDebugExtension.
798
case
BamlRecordType
.LinePosition: // Should be skipped in ReadNextRecordWithDebugExtension.
1785
BamlRecordType
nextType = GetNextRecordType();
1786
while (nextType ==
BamlRecordType
.DefAttributeKeyString ||
1787
nextType ==
BamlRecordType
.DefAttributeKeyType ||
1788
nextType ==
BamlRecordType
.KeyElementStart)
1792
if (nextType ==
BamlRecordType
.KeyElementStart)
1873
while (nextType ==
BamlRecordType
.StaticResourceStart ||
1874
nextType ==
BamlRecordType
.OptimizedStaticResource)
1877
if (nextType ==
BamlRecordType
.StaticResourceStart)
1887
if (nestedBamlRecord.RecordType ==
BamlRecordType
.StaticResourceEnd)
1930
while (nextType ==
BamlRecordType
.StaticResourceId)
src\Framework\System\Windows\Markup\BamlRecords.cs (178)
397
BamlRecordType
recordType)
407
case
BamlRecordType
.AssemblyInfo:
410
case
BamlRecordType
.TypeInfo:
413
case
BamlRecordType
.TypeSerializerInfo:
416
case
BamlRecordType
.AttributeInfo:
419
case
BamlRecordType
.StringInfo:
422
case
BamlRecordType
.DefAttributeKeyString:
425
case
BamlRecordType
.DefAttributeKeyType:
428
case
BamlRecordType
.KeyElementStart:
487
static internal
BamlRecordType
GetPropertyStartRecordType(Type propertyType, bool propertyCanWrite)
489
BamlRecordType
recordType;
492
recordType =
BamlRecordType
.PropertyArrayStart;
496
recordType =
BamlRecordType
.PropertyIDictionaryStart;
507
recordType =
BamlRecordType
.PropertyIListStart;
511
recordType =
BamlRecordType
.PropertyComplexStart;
524
case
BamlRecordType
.ElementStart:
535
case
BamlRecordType
.PropertyCustom:
558
private BamlRecord AllocateWriteRecord(
BamlRecordType
recordType)
564
case
BamlRecordType
.PropertyCustom:
577
private BamlRecord AllocateRecord(
BamlRecordType
recordType)
583
case
BamlRecordType
.DocumentStart:
586
case
BamlRecordType
.DocumentEnd:
589
case
BamlRecordType
.ConnectionId:
592
case
BamlRecordType
.ElementStart:
595
case
BamlRecordType
.ElementEnd:
598
case
BamlRecordType
.DeferableContentStart:
601
case
BamlRecordType
.DefAttributeKeyString:
604
case
BamlRecordType
.DefAttributeKeyType:
607
case
BamlRecordType
.LiteralContent:
610
case
BamlRecordType
.Property:
613
case
BamlRecordType
.PropertyWithConverter:
616
case
BamlRecordType
.PropertyStringReference:
619
case
BamlRecordType
.PropertyTypeReference:
622
case
BamlRecordType
.PropertyWithExtension:
625
case
BamlRecordType
.PropertyCustom:
628
case
BamlRecordType
.PropertyComplexStart:
631
case
BamlRecordType
.PropertyComplexEnd:
634
case
BamlRecordType
.RoutedEvent:
637
case
BamlRecordType
.PropertyArrayStart:
640
case
BamlRecordType
.PropertyArrayEnd:
643
case
BamlRecordType
.PropertyIListStart:
646
case
BamlRecordType
.PropertyIListEnd:
649
case
BamlRecordType
.PropertyIDictionaryStart:
652
case
BamlRecordType
.PropertyIDictionaryEnd:
655
case
BamlRecordType
.Text:
658
case
BamlRecordType
.TextWithConverter:
661
case
BamlRecordType
.TextWithId:
664
case
BamlRecordType
.XmlnsProperty:
667
case
BamlRecordType
.PIMapping:
670
case
BamlRecordType
.DefAttribute:
673
case
BamlRecordType
.PresentationOptionsAttribute:
676
case
BamlRecordType
.KeyElementStart:
679
case
BamlRecordType
.KeyElementEnd:
682
case
BamlRecordType
.ConstructorParametersStart:
685
case
BamlRecordType
.ConstructorParametersEnd:
688
case
BamlRecordType
.ConstructorParameterType:
691
case
BamlRecordType
.ContentProperty:
694
case
BamlRecordType
.AssemblyInfo:
695
case
BamlRecordType
.TypeInfo:
696
case
BamlRecordType
.TypeSerializerInfo:
697
case
BamlRecordType
.AttributeInfo:
698
case
BamlRecordType
.StringInfo:
702
case
BamlRecordType
.StaticResourceStart:
705
case
BamlRecordType
.StaticResourceEnd:
708
case
BamlRecordType
.StaticResourceId:
711
case
BamlRecordType
.LineNumberAndPosition:
714
case
BamlRecordType
.LinePosition:
717
case
BamlRecordType
.OptimizedStaticResource:
720
case
BamlRecordType
.PropertyWithStaticResourceId:
734
internal BamlRecord GetWriteRecord(
BamlRecordType
recordType)
740
_writeCache = new BamlRecord[(int)
BamlRecordType
.LastRecordType];
792
BamlRecord[] _readCache = new BamlRecord[(int)
BamlRecordType
.LastRecordType];
874
internal virtual
BamlRecordType
RecordType
879
return
BamlRecordType
.Unknown;
1006
internal static bool IsContentRecord(
BamlRecordType
bamlRecordType )
1008
return bamlRecordType ==
BamlRecordType
.PropertyComplexStart
1010
bamlRecordType ==
BamlRecordType
.PropertyArrayStart
1012
bamlRecordType ==
BamlRecordType
.PropertyIListStart
1014
bamlRecordType ==
BamlRecordType
.PropertyIDictionaryStart
1016
bamlRecordType ==
BamlRecordType
.Text;
1247
internal override
BamlRecordType
RecordType
1249
get { return
BamlRecordType
.XmlnsProperty; }
1324
internal override
BamlRecordType
RecordType
1326
get { return
BamlRecordType
.PIMapping; }
1573
internal override
BamlRecordType
RecordType
1575
get { return
BamlRecordType
.DefAttributeKeyType; }
1761
internal override
BamlRecordType
RecordType
1763
get { return
BamlRecordType
.DefAttributeKeyString; }
1927
internal override
BamlRecordType
RecordType
1929
get { return
BamlRecordType
.DefAttribute; }
2021
internal override
BamlRecordType
RecordType
2023
get { return
BamlRecordType
.PresentationOptionsAttribute; }
2101
internal override
BamlRecordType
RecordType
2103
get { return
BamlRecordType
.PropertyComplexStart; }
2175
internal override
BamlRecordType
RecordType
2177
get { return
BamlRecordType
.PropertyStringReference; }
2242
internal override
BamlRecordType
RecordType
2244
get { return
BamlRecordType
.PropertyTypeReference; }
2317
internal override
BamlRecordType
RecordType
2319
get { return
BamlRecordType
.PropertyWithConverter; }
2372
internal override
BamlRecordType
RecordType
2374
get { return
BamlRecordType
.Property; }
2459
internal override
BamlRecordType
RecordType
2461
get { return
BamlRecordType
.PropertyWithExtension; }
2920
internal override
BamlRecordType
RecordType
2922
get { return
BamlRecordType
.PropertyCustom; }
3013
internal override
BamlRecordType
RecordType
3015
get { return
BamlRecordType
.PropertyArrayEnd; }
3030
internal override
BamlRecordType
RecordType
3032
get { return
BamlRecordType
.ConstructorParametersStart; }
3048
internal override
BamlRecordType
RecordType
3050
get { return
BamlRecordType
.ConstructorParametersEnd; }
3091
internal override
BamlRecordType
RecordType
3093
get { return
BamlRecordType
.ConstructorParameterType; }
3124
internal override
BamlRecordType
RecordType
3126
get { return
BamlRecordType
.PropertyIListEnd; }
3142
internal override
BamlRecordType
RecordType
3144
get { return
BamlRecordType
.PropertyIDictionaryEnd; }
3160
internal override
BamlRecordType
RecordType
3162
get { return
BamlRecordType
.PropertyComplexEnd; }
3179
internal override
BamlRecordType
RecordType
3181
get { return
BamlRecordType
.PropertyArrayStart; }
3197
internal override
BamlRecordType
RecordType
3199
get { return
BamlRecordType
.PropertyIListStart; }
3215
internal override
BamlRecordType
RecordType
3217
get { return
BamlRecordType
.PropertyIDictionaryStart; }
3261
internal override
BamlRecordType
RecordType
3263
get { return
BamlRecordType
.RoutedEvent; }
3322
internal override
BamlRecordType
RecordType
3324
get { return
BamlRecordType
.LiteralContent; }
3361
internal override
BamlRecordType
RecordType
3363
get { return
BamlRecordType
.ConnectionId; }
3414
internal override
BamlRecordType
RecordType
3416
get { return
BamlRecordType
.ElementStart; }
3656
internal override
BamlRecordType
RecordType
3658
get { return
BamlRecordType
.DeferableContentStart; }
3731
internal override
BamlRecordType
RecordType
3733
get { return
BamlRecordType
.StaticResourceStart; }
3753
internal override
BamlRecordType
RecordType
3755
get { return
BamlRecordType
.StaticResourceEnd; }
3815
internal override
BamlRecordType
RecordType
3817
get { return
BamlRecordType
.OptimizedStaticResource; }
3929
internal override
BamlRecordType
RecordType
3931
get { return
BamlRecordType
.StaticResourceId; }
4009
internal override
BamlRecordType
RecordType
4011
get { return
BamlRecordType
.PropertyWithStaticResourceId; }
4056
internal override
BamlRecordType
RecordType
4058
get { return
BamlRecordType
.Text; }
4099
internal override
BamlRecordType
RecordType
4101
get { return
BamlRecordType
.TextWithId; }
4166
internal override
BamlRecordType
RecordType
4168
get { return
BamlRecordType
.TextWithConverter; }
4263
internal override
BamlRecordType
RecordType
4265
get { return
BamlRecordType
.DocumentStart; }
4316
internal override
BamlRecordType
RecordType
4318
get { return
BamlRecordType
.ElementEnd; }
4335
internal override
BamlRecordType
RecordType
4337
get { return
BamlRecordType
.KeyElementStart; }
4350
internal override
BamlRecordType
RecordType
4352
get { return
BamlRecordType
.KeyElementEnd; }
4369
internal override
BamlRecordType
RecordType
4371
get { return
BamlRecordType
.DocumentEnd; }
4483
internal override
BamlRecordType
RecordType
4485
get { return
BamlRecordType
.AssemblyInfo; }
4613
internal override
BamlRecordType
RecordType
4615
get { return
BamlRecordType
.TypeInfo; }
4771
internal override
BamlRecordType
RecordType
4773
get { return
BamlRecordType
.TypeSerializerInfo; }
4901
internal override
BamlRecordType
RecordType
4903
get { return
BamlRecordType
.AttributeInfo; }
5283
internal override
BamlRecordType
RecordType
5285
get { return
BamlRecordType
.StringInfo; }
5374
internal override
BamlRecordType
RecordType
5376
get { return
BamlRecordType
.ContentProperty; }
5431
internal override
BamlRecordType
RecordType
5433
get { return
BamlRecordType
.LineNumberAndPosition; }
5505
internal override
BamlRecordType
RecordType
5507
get { return
BamlRecordType
.LinePosition; }
src\Framework\System\Windows\Markup\BamlRecordWriter.cs (44)
226
DocumentStartRecord = (BamlDocumentStartRecord) BamlRecordManager.GetWriteRecord(
BamlRecordType
.DocumentStart);
242
(BamlDocumentEndRecord) BamlRecordManager.GetWriteRecord(
BamlRecordType
.DocumentEnd);
255
(BamlConnectionIdRecord)BamlRecordManager.GetWriteRecord(
BamlRecordType
.ConnectionId);
267
(BamlElementStartRecord) BamlRecordManager.GetWriteRecord(
BamlRecordType
.ElementStart);
405
(BamlElementEndRecord) BamlRecordManager.GetWriteRecord(
BamlRecordType
.ElementEnd);
465
(BamlLiteralContentRecord) BamlRecordManager.GetWriteRecord(
BamlRecordType
.LiteralContent);
495
BamlRecordType
.DefAttributeKeyType)
586
(BamlDefAttributeKeyStringRecord) BamlRecordManager.GetWriteRecord(
BamlRecordType
.DefAttributeKeyString);
622
(BamlDefAttributeKeyStringRecord) BamlRecordManager.GetWriteRecord(
BamlRecordType
.DefAttributeKeyString);
645
(BamlDefAttributeRecord) BamlRecordManager.GetWriteRecord(
BamlRecordType
.DefAttribute);
670
BamlRecordType
.PresentationOptionsAttribute);
685
(BamlXmlnsPropertyRecord) BamlRecordManager.GetWriteRecord(
BamlRecordType
.XmlnsProperty);
745
(BamlPIMappingRecord) BamlRecordManager.GetWriteRecord(
BamlRecordType
.PIMapping);
767
BamlRecordType
.PropertyComplexStart);
787
BamlRecordType
.PropertyComplexEnd);
816
BamlRecordType
.KeyElementStart);
882
(BamlKeyElementEndRecord) BamlRecordManager.GetWriteRecord(
BamlRecordType
.KeyElementEnd);
936
BamlRecordType
.ConstructorParametersStart);
950
BamlRecordType
.ConstructorParametersEnd);
958
(BamlContentPropertyRecord)BamlRecordManager.GetWriteRecord(
BamlRecordType
.ContentProperty);
1007
(BamlPropertyCustomWriteInfoRecord)BamlRecordManager.GetWriteRecord(
BamlRecordType
.PropertyCustom);
1059
BamlRecordType
.PropertyWithConverter);
1169
(BamlOptimizedStaticResourceRecord)BamlRecordManager.GetWriteRecord(
BamlRecordType
.OptimizedStaticResource);
1187
(BamlPropertyWithStaticResourceIdRecord) BamlRecordManager.GetWriteRecord(
BamlRecordType
.PropertyWithStaticResourceId);
1202
(BamlPropertyWithExtensionRecord)BamlRecordManager.GetWriteRecord(
BamlRecordType
.PropertyWithExtension);
1245
BamlRecordType
.PropertyTypeReference) as BamlPropertyTypeReferenceRecord;
1268
(BamlPropertyRecord)BamlRecordManager.GetWriteRecord(
BamlRecordType
.Property);
1288
(BamlPropertyArrayStartRecord) BamlRecordManager.GetWriteRecord(
BamlRecordType
.PropertyArrayStart);
1308
(BamlPropertyArrayEndRecord) BamlRecordManager.GetWriteRecord(
BamlRecordType
.PropertyArrayEnd);
1319
(BamlPropertyIListStartRecord) BamlRecordManager.GetWriteRecord(
BamlRecordType
.PropertyIListStart);
1339
(BamlPropertyIListEndRecord) BamlRecordManager.GetWriteRecord(
BamlRecordType
.PropertyIListEnd);
1350
(BamlPropertyIDictionaryStartRecord) BamlRecordManager.GetWriteRecord(
BamlRecordType
.PropertyIDictionaryStart);
1370
(BamlPropertyIDictionaryEndRecord) BamlRecordManager.GetWriteRecord(
BamlRecordType
.PropertyIDictionaryEnd);
1381
(BamlRoutedEventRecord) BamlRecordManager.GetWriteRecord(
BamlRecordType
.RoutedEvent);
1411
bamlText = (BamlTextRecord) BamlRecordManager.GetWriteRecord(
BamlRecordType
.Text);
1415
bamlText = (BamlTextWithIdRecord) BamlRecordManager.GetWriteRecord(
BamlRecordType
.TextWithId);
1432
bamlText = (BamlTextWithConverterRecord)BamlRecordManager.GetWriteRecord(
BamlRecordType
.TextWithConverter);
1552
(BamlDeferableContentStartRecord)BamlRecordManager.GetWriteRecord(
BamlRecordType
.DeferableContentStart);
1661
(BamlElementEndRecord)BamlRecordManager.GetWriteRecord(
BamlRecordType
.ElementEnd);
1685
valueDeferRecord.Record.RecordType ==
BamlRecordType
.ElementStart &&
1690
(BamlStaticResourceStartRecord)BamlRecordManager.GetWriteRecord(
BamlRecordType
.StaticResourceStart);
1696
Debug.Assert(valueDeferRecord.Record != null && valueDeferRecord.Record.RecordType ==
BamlRecordType
.ElementEnd,
1700
(BamlStaticResourceEndRecord) BamlRecordManager.GetWriteRecord(
BamlRecordType
.StaticResourceEnd);
1709
(BamlStaticResourceIdRecord) BamlRecordManager.GetWriteRecord(
BamlRecordType
.StaticResourceId);
src\Framework\System\Windows\Markup\BamlWriter.cs (42)
182
Push(
BamlRecordType
.DocumentStart);
193
VerifyEndTagState(
BamlRecordType
.DocumentStart,
194
BamlRecordType
.DocumentEnd);
236
Push(
BamlRecordType
.ElementStart, elementType);
261
VerifyEndTagState(
BamlRecordType
.ElementStart,
262
BamlRecordType
.ElementEnd);
279
Push(
BamlRecordType
.ConstructorParametersStart);
293
VerifyEndTagState(
BamlRecordType
.ConstructorParametersStart,
294
BamlRecordType
.ConstructorParametersEnd);
325
BamlRecordType
parentType = PeekRecordType();
326
if (parentType !=
BamlRecordType
.ElementStart)
488
BamlRecordType
parentType = PeekRecordType();
489
if (parentType !=
BamlRecordType
.ElementStart &&
490
parentType !=
BamlRecordType
.PropertyComplexStart &&
491
parentType !=
BamlRecordType
.PropertyArrayStart &&
492
parentType !=
BamlRecordType
.PropertyIListStart &&
493
parentType !=
BamlRecordType
.PropertyIDictionaryStart)
525
BamlRecordType
parentType = PeekRecordType();
526
if (parentType !=
BamlRecordType
.ElementStart &&
693
Push(
BamlRecordType
.PropertyComplexStart);
706
BamlRecordType
recordType = BamlRecordManager.GetPropertyStartRecordType(propertyType, propertyCanWrite);
711
case
BamlRecordType
.PropertyArrayStart:
724
case
BamlRecordType
.PropertyIDictionaryStart:
738
case
BamlRecordType
.PropertyIListStart:
778
BamlRecordType
startTagType = Pop();
782
case
BamlRecordType
.PropertyArrayStart:
791
case
BamlRecordType
.PropertyIListStart:
800
case
BamlRecordType
.PropertyIDictionaryStart:
809
case
BamlRecordType
.PropertyComplexStart:
822
BamlRecordType
.PropertyComplexEnd.ToString()));
1060
BamlRecordType
expectedStartTag,
1061
BamlRecordType
endTagBeingWritten)
1065
BamlRecordType
startTagState = Pop();
1283
private void Push(
BamlRecordType
recordType)
1289
private void Push(
BamlRecordType
recordType, Type elementType)
1296
private
BamlRecordType
Pop()
1304
private
BamlRecordType
PeekRecordType()
1327
parentNode.RecordType ==
BamlRecordType
.ElementStart)
1351
BamlRecordType
recordType)
1358
BamlRecordType
recordType,
1364
public
BamlRecordType
RecordType
1381
BamlRecordType
_recordType;
src\Framework\System\Windows\Markup\MarkupExtensionParser.cs (4)
663
BamlRecordType
propertyRecordType = BamlRecordManager.GetPropertyStartRecordType(propertyType, propertyCanWrite);
672
case
BamlRecordType
.PropertyArrayStart:
689
case
BamlRecordType
.PropertyIDictionaryStart:
705
case
BamlRecordType
.PropertyIListStart:
src\Framework\System\Windows\Markup\XamlStyleSerializer.cs (4)
104
if (record.RecordType ==
BamlRecordType
.ElementStart)
119
else if (record.RecordType ==
BamlRecordType
.Property && numberOfElements == 1)
128
else if (record.RecordType ==
BamlRecordType
.PropertyComplexStart ||
129
record.RecordType ==
BamlRecordType
.PropertyIListStart)
src\Framework\System\Windows\Markup\XamlTemplateSerializer.cs (5)
102
if (record.RecordType ==
BamlRecordType
.ElementStart)
117
else if (record.RecordType ==
BamlRecordType
.Property && numberOfElements == 1)
148
else if (record.RecordType ==
BamlRecordType
.PropertyComplexStart ||
149
record.RecordType ==
BamlRecordType
.PropertyIListStart ||
150
record.RecordType ==
BamlRecordType
.ElementEnd)