525 references to BamlRecordType
PresentationFramework (525)
System\Windows\Markup\BamlReader.cs (111)
408
if (info.RecordType ==
BamlRecordType
.XmlnsProperty)
412
else if (info.RecordType ==
BamlRecordType
.DefAttribute)
416
else if (info.RecordType ==
BamlRecordType
.PresentationOptionsAttribute)
560
case
BamlRecordType
.AssemblyInfo:
565
case
BamlRecordType
.TypeInfo:
566
case
BamlRecordType
.TypeSerializerInfo:
571
case
BamlRecordType
.AttributeInfo:
576
case
BamlRecordType
.StringInfo:
581
case
BamlRecordType
.ContentProperty:
588
case
BamlRecordType
.DocumentStart:
592
case
BamlRecordType
.DocumentEnd:
596
case
BamlRecordType
.PIMapping:
600
case
BamlRecordType
.LiteralContent:
604
case
BamlRecordType
.ElementStart:
605
case
BamlRecordType
.StaticResourceStart:
609
case
BamlRecordType
.ElementEnd:
610
case
BamlRecordType
.StaticResourceEnd:
614
case
BamlRecordType
.PropertyComplexStart:
615
case
BamlRecordType
.PropertyArrayStart:
616
case
BamlRecordType
.PropertyIListStart:
617
case
BamlRecordType
.PropertyIDictionaryStart:
621
case
BamlRecordType
.PropertyComplexEnd:
622
case
BamlRecordType
.PropertyArrayEnd:
623
case
BamlRecordType
.PropertyIListEnd:
624
case
BamlRecordType
.PropertyIDictionaryEnd:
628
case
BamlRecordType
.Text:
629
case
BamlRecordType
.TextWithId:
630
case
BamlRecordType
.TextWithConverter:
634
case
BamlRecordType
.DeferableContentStart:
639
case
BamlRecordType
.ConstructorParametersStart:
643
case
BamlRecordType
.ConstructorParametersEnd:
647
case
BamlRecordType
.ConnectionId:
651
case
BamlRecordType
.StaticResourceId:
704
case
BamlRecordType
.AssemblyInfo:
708
case
BamlRecordType
.TypeInfo:
709
case
BamlRecordType
.TypeSerializerInfo:
713
case
BamlRecordType
.AttributeInfo:
717
case
BamlRecordType
.StringInfo:
722
case
BamlRecordType
.XmlnsProperty:
726
case
BamlRecordType
.ConnectionId:
730
case
BamlRecordType
.Property:
731
case
BamlRecordType
.PropertyWithConverter:
735
case
BamlRecordType
.ContentProperty:
740
case
BamlRecordType
.PropertyStringReference:
744
case
BamlRecordType
.PropertyTypeReference:
748
case
BamlRecordType
.PropertyWithExtension:
752
case
BamlRecordType
.PropertyWithStaticResourceId:
756
case
BamlRecordType
.PropertyCustom:
760
case
BamlRecordType
.DefAttribute:
764
case
BamlRecordType
.PresentationOptionsAttribute:
768
case
BamlRecordType
.DefAttributeKeyType:
772
case
BamlRecordType
.RoutedEvent:
776
case
BamlRecordType
.ClrEvent:
780
case
BamlRecordType
.KeyElementStart:
826
RecordType =
BamlRecordType
.XmlnsProperty
1109
info.RecordType =
BamlRecordType
.DefAttribute;
1138
info.RecordType =
BamlRecordType
.PresentationOptionsAttribute;
1167
info.RecordType =
BamlRecordType
.DefAttribute;
1256
case
BamlRecordType
.DefAttributeKeyString:
1285
info.RecordType =
BamlRecordType
.DefAttribute;
1291
case
BamlRecordType
.DefAttributeKeyType:
1336
info.RecordType =
BamlRecordType
.DefAttribute;
1342
case
BamlRecordType
.KeyElementStart:
1361
case
BamlRecordType
.StaticResourceStart:
1362
case
BamlRecordType
.OptimizedStaticResource:
1372
if (_currentBamlRecord.RecordType ==
BamlRecordType
.StaticResourceStart)
1408
info.RecordType =
BamlRecordType
.DefAttribute;
1482
case
BamlRecordType
.AssemblyInfo:
1486
case
BamlRecordType
.TypeInfo:
1487
case
BamlRecordType
.TypeSerializerInfo:
1491
case
BamlRecordType
.AttributeInfo:
1495
case
BamlRecordType
.StringInfo:
1500
case
BamlRecordType
.PropertyComplexStart:
1511
case
BamlRecordType
.PropertyComplexEnd:
1514
case
BamlRecordType
.Text:
1515
case
BamlRecordType
.TextWithId:
1541
case
BamlRecordType
.ElementStart:
1573
case
BamlRecordType
.ElementEnd:
1580
case
BamlRecordType
.ConstructorParametersStart:
1585
case
BamlRecordType
.ConstructorParametersEnd:
1592
case
BamlRecordType
.ConstructorParameterType:
1607
case
BamlRecordType
.Property:
1608
case
BamlRecordType
.PropertyWithConverter:
1621
case
BamlRecordType
.PropertyCustom:
1633
case
BamlRecordType
.PropertyStringReference:
1646
case
BamlRecordType
.PropertyTypeReference:
1660
case
BamlRecordType
.PropertyWithExtension:
1674
case
BamlRecordType
.KeyElementEnd:
1699
info.RecordType =
BamlRecordType
.DefAttribute;
1732
if (_currentBamlRecord.RecordType ==
BamlRecordType
.StaticResourceEnd)
1837
RecordType =
BamlRecordType
.DocumentStart
1856
if (nodeInfo.RecordType !=
BamlRecordType
.DocumentStart)
1983
RecordType =
BamlRecordType
.ElementStart
2041
if (nodeInfo.RecordType !=
BamlRecordType
.ElementStart)
2045
BamlRecordType
.ElementEnd.ToString()));
2128
BamlRecordType
expectedType;
2131
case
BamlRecordType
.PropertyComplexStart:
2132
expectedType =
BamlRecordType
.PropertyComplexEnd;
2134
case
BamlRecordType
.PropertyArrayStart:
2135
expectedType =
BamlRecordType
.PropertyArrayEnd;
2137
case
BamlRecordType
.PropertyIListStart:
2138
expectedType =
BamlRecordType
.PropertyIListEnd;
2140
case
BamlRecordType
.PropertyIDictionaryStart:
2141
expectedType =
BamlRecordType
.PropertyIDictionaryEnd;
2144
expectedType =
BamlRecordType
.Unknown;
2233
RecordType =
BamlRecordType
.ConstructorParametersStart
2258
if (nodeInfo.RecordType !=
BamlRecordType
.ConstructorParametersStart)
2262
BamlRecordType
.ConstructorParametersEnd.ToString()));
2303
info.RecordType =
BamlRecordType
.DefAttribute;
2896
internal
BamlRecordType
RecordType
2953
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)
212
BamlRecordType
recordType = (
BamlRecordType
)BinaryReader.ReadByte();
250
BamlRecordType
recordType = (
BamlRecordType
)BinaryReader.ReadByte();
280
BamlRecordType
recordType)
301
BamlRecordType
nextRecordType = (
BamlRecordType
)BinaryReader.ReadByte();
319
if(bamlRecord.RecordType ==
BamlRecordType
.LineNumberAndPosition)
327
Debug.Assert(bamlRecord.RecordType ==
BamlRecordType
.LinePosition);
336
internal
BamlRecordType
GetNextRecordType()
338
BamlRecordType
bamlRecordType;
342
bamlRecordType = (
BamlRecordType
)BinaryReader.PeekChar();
560
case
BamlRecordType
.DocumentStart:
564
case
BamlRecordType
.DocumentEnd:
569
case
BamlRecordType
.XmlnsProperty:
573
case
BamlRecordType
.PIMapping:
589
case
BamlRecordType
.AssemblyInfo:
593
case
BamlRecordType
.TypeInfo:
594
case
BamlRecordType
.TypeSerializerInfo:
598
case
BamlRecordType
.AttributeInfo:
602
case
BamlRecordType
.StringInfo:
606
case
BamlRecordType
.LiteralContent:
610
case
BamlRecordType
.ElementStart:
611
case
BamlRecordType
.StaticResourceStart:
622
case
BamlRecordType
.NamedElementStart:
628
case
BamlRecordType
.ConnectionId:
632
case
BamlRecordType
.ElementEnd:
633
case
BamlRecordType
.StaticResourceEnd:
644
case
BamlRecordType
.PropertyComplexStart:
648
case
BamlRecordType
.PropertyComplexEnd:
652
case
BamlRecordType
.Property:
656
case
BamlRecordType
.PropertyStringReference:
660
case
BamlRecordType
.PropertyTypeReference:
664
case
BamlRecordType
.PropertyWithExtension:
668
case
BamlRecordType
.PropertyWithConverter:
672
case
BamlRecordType
.PropertyCustom:
676
case
BamlRecordType
.PropertyArrayStart:
680
case
BamlRecordType
.PropertyArrayEnd:
684
case
BamlRecordType
.PropertyIListStart:
688
case
BamlRecordType
.PropertyIListEnd:
692
case
BamlRecordType
.PropertyIDictionaryStart:
696
case
BamlRecordType
.PropertyIDictionaryEnd:
700
case
BamlRecordType
.DefAttribute:
704
case
BamlRecordType
.DefAttributeKeyType:
708
case
BamlRecordType
.PresentationOptionsAttribute:
712
case
BamlRecordType
.RoutedEvent:
722
case
BamlRecordType
.Text:
723
case
BamlRecordType
.TextWithId:
724
case
BamlRecordType
.TextWithConverter:
728
case
BamlRecordType
.DeferableContentStart:
732
case
BamlRecordType
.KeyElementStart:
736
case
BamlRecordType
.KeyElementEnd:
740
case
BamlRecordType
.ConstructorParametersStart:
744
case
BamlRecordType
.ConstructorParametersEnd:
748
case
BamlRecordType
.ConstructorParameterType:
752
case
BamlRecordType
.ContentProperty:
756
case
BamlRecordType
.StaticResourceId:
760
case
BamlRecordType
.PropertyWithStaticResourceId:
764
case
BamlRecordType
.LineNumberAndPosition: // Should be skipped in ReadNextRecordWithDebugExtension.
765
case
BamlRecordType
.LinePosition: // Should be skipped in ReadNextRecordWithDebugExtension.
1740
BamlRecordType
nextType = GetNextRecordType();
1741
while (nextType ==
BamlRecordType
.DefAttributeKeyString ||
1742
nextType ==
BamlRecordType
.DefAttributeKeyType ||
1743
nextType ==
BamlRecordType
.KeyElementStart)
1747
if (nextType ==
BamlRecordType
.KeyElementStart)
1827
while (nextType ==
BamlRecordType
.StaticResourceStart ||
1828
nextType ==
BamlRecordType
.OptimizedStaticResource)
1831
if (nextType ==
BamlRecordType
.StaticResourceStart)
1841
if (nestedBamlRecord.RecordType ==
BamlRecordType
.StaticResourceEnd)
1884
while (nextType ==
BamlRecordType
.StaticResourceId)
System\Windows\Markup\BamlRecords.cs (178)
376
BamlRecordType
recordType)
386
case
BamlRecordType
.AssemblyInfo:
389
case
BamlRecordType
.TypeInfo:
392
case
BamlRecordType
.TypeSerializerInfo:
395
case
BamlRecordType
.AttributeInfo:
398
case
BamlRecordType
.StringInfo:
401
case
BamlRecordType
.DefAttributeKeyString:
404
case
BamlRecordType
.DefAttributeKeyType:
407
case
BamlRecordType
.KeyElementStart:
466
static internal
BamlRecordType
GetPropertyStartRecordType(Type propertyType, bool propertyCanWrite)
468
BamlRecordType
recordType;
471
recordType =
BamlRecordType
.PropertyArrayStart;
484
recordType =
BamlRecordType
.PropertyIDictionaryStart;
496
recordType =
BamlRecordType
.PropertyIListStart;
500
recordType =
BamlRecordType
.PropertyComplexStart;
513
case
BamlRecordType
.ElementStart:
524
case
BamlRecordType
.PropertyCustom:
547
private BamlRecord AllocateWriteRecord(
BamlRecordType
recordType)
553
case
BamlRecordType
.PropertyCustom:
566
private BamlRecord AllocateRecord(
BamlRecordType
recordType)
572
case
BamlRecordType
.DocumentStart:
575
case
BamlRecordType
.DocumentEnd:
578
case
BamlRecordType
.ConnectionId:
581
case
BamlRecordType
.ElementStart:
584
case
BamlRecordType
.ElementEnd:
587
case
BamlRecordType
.DeferableContentStart:
590
case
BamlRecordType
.DefAttributeKeyString:
593
case
BamlRecordType
.DefAttributeKeyType:
596
case
BamlRecordType
.LiteralContent:
599
case
BamlRecordType
.Property:
602
case
BamlRecordType
.PropertyWithConverter:
605
case
BamlRecordType
.PropertyStringReference:
608
case
BamlRecordType
.PropertyTypeReference:
611
case
BamlRecordType
.PropertyWithExtension:
614
case
BamlRecordType
.PropertyCustom:
617
case
BamlRecordType
.PropertyComplexStart:
620
case
BamlRecordType
.PropertyComplexEnd:
623
case
BamlRecordType
.RoutedEvent:
626
case
BamlRecordType
.PropertyArrayStart:
629
case
BamlRecordType
.PropertyArrayEnd:
632
case
BamlRecordType
.PropertyIListStart:
635
case
BamlRecordType
.PropertyIListEnd:
638
case
BamlRecordType
.PropertyIDictionaryStart:
641
case
BamlRecordType
.PropertyIDictionaryEnd:
644
case
BamlRecordType
.Text:
647
case
BamlRecordType
.TextWithConverter:
650
case
BamlRecordType
.TextWithId:
653
case
BamlRecordType
.XmlnsProperty:
656
case
BamlRecordType
.PIMapping:
659
case
BamlRecordType
.DefAttribute:
662
case
BamlRecordType
.PresentationOptionsAttribute:
665
case
BamlRecordType
.KeyElementStart:
668
case
BamlRecordType
.KeyElementEnd:
671
case
BamlRecordType
.ConstructorParametersStart:
674
case
BamlRecordType
.ConstructorParametersEnd:
677
case
BamlRecordType
.ConstructorParameterType:
680
case
BamlRecordType
.ContentProperty:
683
case
BamlRecordType
.AssemblyInfo:
684
case
BamlRecordType
.TypeInfo:
685
case
BamlRecordType
.TypeSerializerInfo:
686
case
BamlRecordType
.AttributeInfo:
687
case
BamlRecordType
.StringInfo:
691
case
BamlRecordType
.StaticResourceStart:
694
case
BamlRecordType
.StaticResourceEnd:
697
case
BamlRecordType
.StaticResourceId:
700
case
BamlRecordType
.LineNumberAndPosition:
703
case
BamlRecordType
.LinePosition:
706
case
BamlRecordType
.OptimizedStaticResource:
709
case
BamlRecordType
.PropertyWithStaticResourceId:
723
internal BamlRecord GetWriteRecord(
BamlRecordType
recordType)
729
_writeCache = new BamlRecord[(int)
BamlRecordType
.LastRecordType];
781
BamlRecord[] _readCache = new BamlRecord[(int)
BamlRecordType
.LastRecordType];
861
internal virtual
BamlRecordType
RecordType
866
return
BamlRecordType
.Unknown;
992
internal static bool IsContentRecord(
BamlRecordType
bamlRecordType )
994
return bamlRecordType ==
BamlRecordType
.PropertyComplexStart
996
bamlRecordType ==
BamlRecordType
.PropertyArrayStart
998
bamlRecordType ==
BamlRecordType
.PropertyIListStart
1000
bamlRecordType ==
BamlRecordType
.PropertyIDictionaryStart
1002
bamlRecordType ==
BamlRecordType
.Text;
1222
internal override
BamlRecordType
RecordType
1224
get { return
BamlRecordType
.XmlnsProperty; }
1293
internal override
BamlRecordType
RecordType
1295
get { return
BamlRecordType
.PIMapping; }
1531
internal override
BamlRecordType
RecordType
1533
get { return
BamlRecordType
.DefAttributeKeyType; }
1715
internal override
BamlRecordType
RecordType
1717
get { return
BamlRecordType
.DefAttributeKeyString; }
1874
internal override
BamlRecordType
RecordType
1876
get { return
BamlRecordType
.DefAttribute; }
1962
internal override
BamlRecordType
RecordType
1964
get { return
BamlRecordType
.PresentationOptionsAttribute; }
2035
internal override
BamlRecordType
RecordType
2037
get { return
BamlRecordType
.PropertyComplexStart; }
2103
internal override
BamlRecordType
RecordType
2105
get { return
BamlRecordType
.PropertyStringReference; }
2166
internal override
BamlRecordType
RecordType
2168
get { return
BamlRecordType
.PropertyTypeReference; }
2237
internal override
BamlRecordType
RecordType
2239
get { return
BamlRecordType
.PropertyWithConverter; }
2287
internal override
BamlRecordType
RecordType
2289
get { return
BamlRecordType
.Property; }
2368
internal override
BamlRecordType
RecordType
2370
get { return
BamlRecordType
.PropertyWithExtension; }
2820
internal override
BamlRecordType
RecordType
2822
get { return
BamlRecordType
.PropertyCustom; }
2908
internal override
BamlRecordType
RecordType
2910
get { return
BamlRecordType
.PropertyArrayEnd; }
2920
internal override
BamlRecordType
RecordType
2922
get { return
BamlRecordType
.ConstructorParametersStart; }
2932
internal override
BamlRecordType
RecordType
2934
get { return
BamlRecordType
.ConstructorParametersEnd; }
2970
internal override
BamlRecordType
RecordType
2972
get { return
BamlRecordType
.ConstructorParameterType; }
2998
internal override
BamlRecordType
RecordType
3000
get { return
BamlRecordType
.PropertyIListEnd; }
3010
internal override
BamlRecordType
RecordType
3012
get { return
BamlRecordType
.PropertyIDictionaryEnd; }
3022
internal override
BamlRecordType
RecordType
3024
get { return
BamlRecordType
.PropertyComplexEnd; }
3035
internal override
BamlRecordType
RecordType
3037
get { return
BamlRecordType
.PropertyArrayStart; }
3047
internal override
BamlRecordType
RecordType
3049
get { return
BamlRecordType
.PropertyIListStart; }
3059
internal override
BamlRecordType
RecordType
3061
get { return
BamlRecordType
.PropertyIDictionaryStart; }
3099
internal override
BamlRecordType
RecordType
3101
get { return
BamlRecordType
.RoutedEvent; }
3149
internal override
BamlRecordType
RecordType
3151
get { return
BamlRecordType
.LiteralContent; }
3183
internal override
BamlRecordType
RecordType
3185
get { return
BamlRecordType
.ConnectionId; }
3231
internal override
BamlRecordType
RecordType
3233
get { return
BamlRecordType
.ElementStart; }
3463
internal override
BamlRecordType
RecordType
3465
get { return
BamlRecordType
.DeferableContentStart; }
3537
internal override
BamlRecordType
RecordType
3539
get { return
BamlRecordType
.StaticResourceStart; }
3557
internal override
BamlRecordType
RecordType
3559
get { return
BamlRecordType
.StaticResourceEnd; }
3617
internal override
BamlRecordType
RecordType
3619
get { return
BamlRecordType
.OptimizedStaticResource; }
3729
internal override
BamlRecordType
RecordType
3731
get { return
BamlRecordType
.StaticResourceId; }
3807
internal override
BamlRecordType
RecordType
3809
get { return
BamlRecordType
.PropertyWithStaticResourceId; }
3849
internal override
BamlRecordType
RecordType
3851
get { return
BamlRecordType
.Text; }
3888
internal override
BamlRecordType
RecordType
3890
get { return
BamlRecordType
.TextWithId; }
3951
internal override
BamlRecordType
RecordType
3953
get { return
BamlRecordType
.TextWithConverter; }
4043
internal override
BamlRecordType
RecordType
4045
get { return
BamlRecordType
.DocumentStart; }
4091
internal override
BamlRecordType
RecordType
4093
get { return
BamlRecordType
.ElementEnd; }
4109
internal override
BamlRecordType
RecordType
4111
get { return
BamlRecordType
.KeyElementStart; }
4122
internal override
BamlRecordType
RecordType
4124
get { return
BamlRecordType
.KeyElementEnd; }
4135
internal override
BamlRecordType
RecordType
4137
get { return
BamlRecordType
.DocumentEnd; }
4242
internal override
BamlRecordType
RecordType
4244
get { return
BamlRecordType
.AssemblyInfo; }
4365
internal override
BamlRecordType
RecordType
4367
get { return
BamlRecordType
.TypeInfo; }
4519
internal override
BamlRecordType
RecordType
4521
get { return
BamlRecordType
.TypeSerializerInfo; }
4645
internal override
BamlRecordType
RecordType
4647
get { return
BamlRecordType
.AttributeInfo; }
5021
internal override
BamlRecordType
RecordType
5023
get { return
BamlRecordType
.StringInfo; }
5107
internal override
BamlRecordType
RecordType
5109
get { return
BamlRecordType
.ContentProperty; }
5159
internal override
BamlRecordType
RecordType
5161
get { return
BamlRecordType
.LineNumberAndPosition; }
5228
internal override
BamlRecordType
RecordType
5230
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)
572
(BamlDefAttributeKeyStringRecord)BamlRecordManager.GetWriteRecord(
BamlRecordType
.DefAttributeKeyString);
608
(BamlDefAttributeKeyStringRecord) BamlRecordManager.GetWriteRecord(
BamlRecordType
.DefAttributeKeyString);
631
(BamlDefAttributeRecord) BamlRecordManager.GetWriteRecord(
BamlRecordType
.DefAttribute);
656
BamlRecordType
.PresentationOptionsAttribute);
671
(BamlXmlnsPropertyRecord) BamlRecordManager.GetWriteRecord(
BamlRecordType
.XmlnsProperty);
731
(BamlPIMappingRecord) BamlRecordManager.GetWriteRecord(
BamlRecordType
.PIMapping);
753
BamlRecordType
.PropertyComplexStart);
773
BamlRecordType
.PropertyComplexEnd);
802
BamlRecordType
.KeyElementStart);
868
(BamlKeyElementEndRecord) BamlRecordManager.GetWriteRecord(
BamlRecordType
.KeyElementEnd);
922
BamlRecordType
.ConstructorParametersStart);
936
BamlRecordType
.ConstructorParametersEnd);
944
(BamlContentPropertyRecord)BamlRecordManager.GetWriteRecord(
BamlRecordType
.ContentProperty);
993
(BamlPropertyCustomWriteInfoRecord)BamlRecordManager.GetWriteRecord(
BamlRecordType
.PropertyCustom);
1045
BamlRecordType
.PropertyWithConverter);
1155
(BamlOptimizedStaticResourceRecord)BamlRecordManager.GetWriteRecord(
BamlRecordType
.OptimizedStaticResource);
1173
(BamlPropertyWithStaticResourceIdRecord) BamlRecordManager.GetWriteRecord(
BamlRecordType
.PropertyWithStaticResourceId);
1188
(BamlPropertyWithExtensionRecord)BamlRecordManager.GetWriteRecord(
BamlRecordType
.PropertyWithExtension);
1231
BamlRecordType
.PropertyTypeReference) as BamlPropertyTypeReferenceRecord;
1254
(BamlPropertyRecord)BamlRecordManager.GetWriteRecord(
BamlRecordType
.Property);
1274
(BamlPropertyArrayStartRecord) BamlRecordManager.GetWriteRecord(
BamlRecordType
.PropertyArrayStart);
1294
(BamlPropertyArrayEndRecord) BamlRecordManager.GetWriteRecord(
BamlRecordType
.PropertyArrayEnd);
1305
(BamlPropertyIListStartRecord) BamlRecordManager.GetWriteRecord(
BamlRecordType
.PropertyIListStart);
1325
(BamlPropertyIListEndRecord) BamlRecordManager.GetWriteRecord(
BamlRecordType
.PropertyIListEnd);
1336
(BamlPropertyIDictionaryStartRecord) BamlRecordManager.GetWriteRecord(
BamlRecordType
.PropertyIDictionaryStart);
1356
(BamlPropertyIDictionaryEndRecord) BamlRecordManager.GetWriteRecord(
BamlRecordType
.PropertyIDictionaryEnd);
1367
(BamlRoutedEventRecord) BamlRecordManager.GetWriteRecord(
BamlRecordType
.RoutedEvent);
1397
bamlText = (BamlTextRecord) BamlRecordManager.GetWriteRecord(
BamlRecordType
.Text);
1401
bamlText = (BamlTextWithIdRecord) BamlRecordManager.GetWriteRecord(
BamlRecordType
.TextWithId);
1418
bamlText = (BamlTextWithConverterRecord)BamlRecordManager.GetWriteRecord(
BamlRecordType
.TextWithConverter);
1538
(BamlDeferableContentStartRecord)BamlRecordManager.GetWriteRecord(
BamlRecordType
.DeferableContentStart);
1647
(BamlElementEndRecord)BamlRecordManager.GetWriteRecord(
BamlRecordType
.ElementEnd);
1670
valueDeferRecord.Record.RecordType ==
BamlRecordType
.ElementStart &&
1675
(BamlStaticResourceStartRecord)BamlRecordManager.GetWriteRecord(
BamlRecordType
.StaticResourceStart);
1681
Debug.Assert(valueDeferRecord.Record != null && valueDeferRecord.Record.RecordType ==
BamlRecordType
.ElementEnd,
1685
(BamlStaticResourceEndRecord) BamlRecordManager.GetWriteRecord(
BamlRecordType
.StaticResourceEnd);
1694
(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);
237
VerifyEndTagState(
BamlRecordType
.ElementStart,
238
BamlRecordType
.ElementEnd);
255
Push(
BamlRecordType
.ConstructorParametersStart);
269
VerifyEndTagState(
BamlRecordType
.ConstructorParametersStart,
270
BamlRecordType
.ConstructorParametersEnd);
301
BamlRecordType
parentType = PeekRecordType();
302
if (parentType !=
BamlRecordType
.ElementStart)
464
BamlRecordType
parentType = PeekRecordType();
465
if (parentType !=
BamlRecordType
.ElementStart &&
466
parentType !=
BamlRecordType
.PropertyComplexStart &&
467
parentType !=
BamlRecordType
.PropertyArrayStart &&
468
parentType !=
BamlRecordType
.PropertyIListStart &&
469
parentType !=
BamlRecordType
.PropertyIDictionaryStart)
501
BamlRecordType
parentType = PeekRecordType();
502
if (parentType !=
BamlRecordType
.ElementStart &&
669
Push(
BamlRecordType
.PropertyComplexStart);
682
BamlRecordType
recordType = BamlRecordManager.GetPropertyStartRecordType(propertyType, propertyCanWrite);
687
case
BamlRecordType
.PropertyArrayStart:
700
case
BamlRecordType
.PropertyIDictionaryStart:
714
case
BamlRecordType
.PropertyIListStart:
754
BamlRecordType
startTagType = Pop();
758
case
BamlRecordType
.PropertyArrayStart:
767
case
BamlRecordType
.PropertyIListStart:
776
case
BamlRecordType
.PropertyIDictionaryStart:
785
case
BamlRecordType
.PropertyComplexStart:
798
BamlRecordType
.PropertyComplexEnd.ToString()));
1036
BamlRecordType
expectedStartTag,
1037
BamlRecordType
endTagBeingWritten)
1041
BamlRecordType
startTagState = Pop();
1258
private void Push(
BamlRecordType
recordType)
1264
private void Push(
BamlRecordType
recordType, Type elementType)
1271
private
BamlRecordType
Pop()
1279
private
BamlRecordType
PeekRecordType()
1302
parentNode.RecordType ==
BamlRecordType
.ElementStart)
1326
BamlRecordType
recordType)
1333
BamlRecordType
recordType,
1339
public
BamlRecordType
RecordType
1356
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)
91
if (record.RecordType ==
BamlRecordType
.ElementStart)
106
else if (record.RecordType ==
BamlRecordType
.Property && numberOfElements == 1)
115
else if (record.RecordType ==
BamlRecordType
.PropertyComplexStart ||
116
record.RecordType ==
BamlRecordType
.PropertyIListStart)
System\Windows\Markup\XamlTemplateSerializer.cs (5)
88
if (record.RecordType ==
BamlRecordType
.ElementStart)
103
else if (record.RecordType ==
BamlRecordType
.Property && numberOfElements == 1)
133
else if (record.RecordType ==
BamlRecordType
.PropertyComplexStart ||
134
record.RecordType ==
BamlRecordType
.PropertyIListStart ||
135
record.RecordType ==
BamlRecordType
.ElementEnd)