// Token: 0x060020B2 RID: 8370 RVA: 0x00096920 File Offset: 0x00094B20 internal override void Copy(BamlRecord record) { base.Copy(record); BamlStringInfoRecord bamlStringInfoRecord = (BamlStringInfoRecord)record; bamlStringInfoRecord._value = this._value; }
// Token: 0x06001EE9 RID: 7913 RVA: 0x000941D8 File Offset: 0x000923D8 internal override void Copy(BamlRecord record) { base.Copy(record); BamlVariableSizedRecord bamlVariableSizedRecord = (BamlVariableSizedRecord)record; bamlVariableSizedRecord._recordSize = this._recordSize; }
// Token: 0x06001EC9 RID: 7881 RVA: 0x00093BE4 File Offset: 0x00091DE4 internal BamlRecord CloneRecord(BamlRecord record) { BamlRecordType recordType = record.RecordType; BamlRecord bamlRecord; if (recordType != BamlRecordType.ElementStart) { if (recordType != BamlRecordType.PropertyCustom) { bamlRecord = this.AllocateRecord(record.RecordType); } else if (record is BamlPropertyCustomWriteInfoRecord) { bamlRecord = new BamlPropertyCustomWriteInfoRecord(); } else { bamlRecord = new BamlPropertyCustomRecord(); } } else if (record is BamlNamedElementStartRecord) { bamlRecord = new BamlNamedElementStartRecord(); } else { bamlRecord = new BamlElementStartRecord(); } record.Copy(bamlRecord); return(bamlRecord); }
// Token: 0x06001FDB RID: 8155 RVA: 0x0009572C File Offset: 0x0009392C internal override void Copy(BamlRecord record) { base.Copy(record); BamlRoutedEventRecord bamlRoutedEventRecord = (BamlRoutedEventRecord)record; bamlRoutedEventRecord._attributeId = this._attributeId; }
// Token: 0x06002016 RID: 8214 RVA: 0x00095C14 File Offset: 0x00093E14 internal override void Copy(BamlRecord record) { base.Copy(record); BamlOptimizedStaticResourceRecord bamlOptimizedStaticResourceRecord = (BamlOptimizedStaticResourceRecord)record; bamlOptimizedStaticResourceRecord._valueId = this._valueId; }
// Token: 0x06001F82 RID: 8066 RVA: 0x00094CFC File Offset: 0x00092EFC internal override void Copy(BamlRecord record) { base.Copy(record); BamlPropertyRecord bamlPropertyRecord = (BamlPropertyRecord)record; bamlPropertyRecord._attributeId = this._attributeId; }
// Token: 0x06002027 RID: 8231 RVA: 0x00095D40 File Offset: 0x00093F40 internal override void Copy(BamlRecord record) { base.Copy(record); BamlStaticResourceIdRecord bamlStaticResourceIdRecord = (BamlStaticResourceIdRecord)record; bamlStaticResourceIdRecord._staticResourceId = this._staticResourceId; }
// Token: 0x06001F72 RID: 8050 RVA: 0x00094C1C File Offset: 0x00092E1C internal override void Copy(BamlRecord record) { base.Copy(record); BamlPropertyTypeReferenceRecord bamlPropertyTypeReferenceRecord = (BamlPropertyTypeReferenceRecord)record; bamlPropertyTypeReferenceRecord._typeId = this._typeId; }
// Token: 0x0600203D RID: 8253 RVA: 0x00095EAC File Offset: 0x000940AC internal override void Copy(BamlRecord record) { base.Copy(record); BamlTextWithIdRecord bamlTextWithIdRecord = (BamlTextWithIdRecord)record; bamlTextWithIdRecord._valueId = this._valueId; }
// Token: 0x06001FE6 RID: 8166 RVA: 0x000957DC File Offset: 0x000939DC internal override void Copy(BamlRecord record) { base.Copy(record); BamlConnectionIdRecord bamlConnectionIdRecord = (BamlConnectionIdRecord)record; bamlConnectionIdRecord._connectionId = this._connectionId; }
// Token: 0x06002031 RID: 8241 RVA: 0x00095DF4 File Offset: 0x00093FF4 internal override void Copy(BamlRecord record) { base.Copy(record); BamlPropertyWithStaticResourceIdRecord bamlPropertyWithStaticResourceIdRecord = (BamlPropertyWithStaticResourceIdRecord)record; bamlPropertyWithStaticResourceIdRecord._attributeId = this._attributeId; }
// Token: 0x060020D1 RID: 8401 RVA: 0x00096B98 File Offset: 0x00094D98 internal override void Copy(BamlRecord record) { base.Copy(record); BamlLinePositionRecord bamlLinePositionRecord = (BamlLinePositionRecord)record; bamlLinePositionRecord._linePosition = this._linePosition; }
// Token: 0x06002044 RID: 8260 RVA: 0x00095F1C File Offset: 0x0009411C internal override void Copy(BamlRecord record) { base.Copy(record); BamlTextWithConverterRecord bamlTextWithConverterRecord = (BamlTextWithConverterRecord)record; bamlTextWithConverterRecord._converterTypeId = this._converterTypeId; }
// Token: 0x06001F69 RID: 8041 RVA: 0x00094BA0 File Offset: 0x00092DA0 internal override void Copy(BamlRecord record) { base.Copy(record); BamlPropertyStringReferenceRecord bamlPropertyStringReferenceRecord = (BamlPropertyStringReferenceRecord)record; bamlPropertyStringReferenceRecord._stringId = this._stringId; }
// Token: 0x06001FC6 RID: 8134 RVA: 0x000956A8 File Offset: 0x000938A8 internal override void Copy(BamlRecord record) { base.Copy(record); BamlConstructorParameterTypeRecord bamlConstructorParameterTypeRecord = (BamlConstructorParameterTypeRecord)record; bamlConstructorParameterTypeRecord._typeId = this._typeId; }
// Token: 0x06002063 RID: 8291 RVA: 0x00096108 File Offset: 0x00094308 internal override void Copy(BamlRecord record) { base.Copy(record); BamlAssemblyInfoRecord bamlAssemblyInfoRecord = (BamlAssemblyInfoRecord)record; bamlAssemblyInfoRecord._assemblyFullName = this._assemblyFullName; bamlAssemblyInfoRecord._assembly = this._assembly; }
// Token: 0x06001FF8 RID: 8184 RVA: 0x00095969 File Offset: 0x00093B69 public override string ToString() { return(string.Format(CultureInfo.InvariantCulture, "{0} typeId={1}", new object[] { this.RecordType, BamlRecord.GetTypeName((int)this.TypeId) })); }
// Token: 0x06001FFE RID: 8190 RVA: 0x00095A38 File Offset: 0x00093C38 internal override void Copy(BamlRecord record) { base.Copy(record); BamlNamedElementStartRecord bamlNamedElementStartRecord = (BamlNamedElementStartRecord)record; bamlNamedElementStartRecord._isTemplateChild = this._isTemplateChild; bamlNamedElementStartRecord._runtimeName = this._runtimeName; }
// Token: 0x06002083 RID: 8323 RVA: 0x0009646C File Offset: 0x0009466C internal override void Copy(BamlRecord record) { base.Copy(record); BamlTypeInfoWithSerializerRecord bamlTypeInfoWithSerializerRecord = (BamlTypeInfoWithSerializerRecord)record; bamlTypeInfoWithSerializerRecord._serializerTypeId = this._serializerTypeId; bamlTypeInfoWithSerializerRecord._serializerType = this._serializerType; }
// Token: 0x06001EFB RID: 7931 RVA: 0x000943BC File Offset: 0x000925BC internal override void Copy(BamlRecord record) { base.Copy(record); BamlPIMappingRecord bamlPIMappingRecord = (BamlPIMappingRecord)record; bamlPIMappingRecord._xmlns = this._xmlns; bamlPIMappingRecord._clrns = this._clrns; }
// Token: 0x06001F55 RID: 8021 RVA: 0x00094A38 File Offset: 0x00092C38 internal override void Copy(BamlRecord record) { base.Copy(record); BamlPresentationOptionsAttributeRecord bamlPresentationOptionsAttributeRecord = (BamlPresentationOptionsAttributeRecord)record; bamlPresentationOptionsAttributeRecord._name = this._name; bamlPresentationOptionsAttributeRecord._nameId = this._nameId; }
// Token: 0x06001F8A RID: 8074 RVA: 0x00094E40 File Offset: 0x00093040 internal override void Copy(BamlRecord record) { base.Copy(record); BamlPropertyWithExtensionRecord bamlPropertyWithExtensionRecord = (BamlPropertyWithExtensionRecord)record; bamlPropertyWithExtensionRecord._attributeId = this._attributeId; bamlPropertyWithExtensionRecord._extensionTypeId = this._extensionTypeId; bamlPropertyWithExtensionRecord._valueId = this._valueId; }
// Token: 0x06002007 RID: 8199 RVA: 0x00095B00 File Offset: 0x00093D00 internal override void Copy(BamlRecord record) { base.Copy(record); BamlDeferableContentStartRecord bamlDeferableContentStartRecord = (BamlDeferableContentStartRecord)record; bamlDeferableContentStartRecord._contentSize = this._contentSize; bamlDeferableContentStartRecord._contentSizePosition = this._contentSizePosition; bamlDeferableContentStartRecord._valuesBuffer = this._valuesBuffer; }
// Token: 0x06001FAD RID: 8109 RVA: 0x00095530 File Offset: 0x00093730 internal override void Copy(BamlRecord record) { base.Copy(record); BamlPropertyCustomRecord bamlPropertyCustomRecord = (BamlPropertyCustomRecord)record; bamlPropertyCustomRecord._valueObject = this._valueObject; bamlPropertyCustomRecord._attributeId = this._attributeId; bamlPropertyCustomRecord._serializerTypeId = this._serializerTypeId; }
// Token: 0x06001EF0 RID: 7920 RVA: 0x000942F0 File Offset: 0x000924F0 internal override void Copy(BamlRecord record) { base.Copy(record); BamlXmlnsPropertyRecord bamlXmlnsPropertyRecord = (BamlXmlnsPropertyRecord)record; bamlXmlnsPropertyRecord._prefix = this._prefix; bamlXmlnsPropertyRecord._xmlNamespace = this._xmlNamespace; bamlXmlnsPropertyRecord._assemblyIds = this._assemblyIds; }
// Token: 0x06001F49 RID: 8009 RVA: 0x00094928 File Offset: 0x00092B28 internal override void Copy(BamlRecord record) { base.Copy(record); BamlDefAttributeRecord bamlDefAttributeRecord = (BamlDefAttributeRecord)record; bamlDefAttributeRecord._name = this._name; bamlDefAttributeRecord._nameId = this._nameId; bamlDefAttributeRecord._attributeUsage = this._attributeUsage; }
// Token: 0x06002070 RID: 8304 RVA: 0x000962A4 File Offset: 0x000944A4 internal override void Copy(BamlRecord record) { base.Copy(record); BamlTypeInfoRecord bamlTypeInfoRecord = (BamlTypeInfoRecord)record; bamlTypeInfoRecord._typeInfoFlags = this._typeInfoFlags; bamlTypeInfoRecord._assemblyId = this._assemblyId; bamlTypeInfoRecord._typeFullName = this._typeFullName; bamlTypeInfoRecord._type = this._type; }
// Token: 0x06001F21 RID: 7969 RVA: 0x000945C4 File Offset: 0x000927C4 internal override void Copy(BamlRecord record) { base.Copy(record); BamlDefAttributeKeyTypeRecord bamlDefAttributeKeyTypeRecord = (BamlDefAttributeKeyTypeRecord)record; bamlDefAttributeKeyTypeRecord._valuePosition = this._valuePosition; bamlDefAttributeKeyTypeRecord._valuePositionPosition = this._valuePositionPosition; bamlDefAttributeKeyTypeRecord._keyObject = this._keyObject; bamlDefAttributeKeyTypeRecord._staticResourceValues = this._staticResourceValues; }
// Token: 0x060020AD RID: 8365 RVA: 0x00096860 File Offset: 0x00094A60 public override string ToString() { return(string.Format(CultureInfo.InvariantCulture, "{0} owner={1} attr({2}) is '{3}'", new object[] { this.RecordType, BamlRecord.GetTypeName((int)this.OwnerTypeId), this.AttributeId, this._name })); }
// Token: 0x0600204D RID: 8269 RVA: 0x00096000 File Offset: 0x00094200 internal override void Copy(BamlRecord record) { base.Copy(record); BamlDocumentStartRecord bamlDocumentStartRecord = (BamlDocumentStartRecord)record; bamlDocumentStartRecord._maxAsyncRecords = this._maxAsyncRecords; bamlDocumentStartRecord._loadAsync = this._loadAsync; bamlDocumentStartRecord._filePos = this._filePos; bamlDocumentStartRecord._debugBaml = this._debugBaml; }
internal void ProcessDebugBamlRecord(BamlRecord bamlRecord) { if(bamlRecord.RecordType == BamlRecordType.LineNumberAndPosition) { BamlLineAndPositionRecord bamlLineAndPositionRecord = (BamlLineAndPositionRecord)bamlRecord; LineNumber = (int)bamlLineAndPositionRecord.LineNumber; LinePosition = (int)bamlLineAndPositionRecord.LinePosition; } else { Debug.Assert(bamlRecord.RecordType == BamlRecordType.LinePosition); BamlLinePositionRecord bamlLinePositionRecord = (BamlLinePositionRecord)bamlRecord; LinePosition = (int)bamlLinePositionRecord.LinePosition; } }
/// <summary> /// Synchronous read callback that passes line information from original xaml file. /// This line information is used when reporting errors. Make certain that the /// parser context line numbers are correct, since this is passed to subparsers and /// serializers and they may wish to report line information also. /// </summary> internal bool Read( BamlRecord bamlRecord, int lineNumber, int linePosition) { LineNumber = lineNumber; LinePosition = linePosition; return ReadRecord(bamlRecord); }
// Read a single record and process it. Return false if there are no // more records to process. internal virtual bool ReadRecord(BamlRecord bamlRecord) { bool moreData = true; #if !STRESS try { #endif switch (bamlRecord.RecordType) { case BamlRecordType.DocumentStart: ReadDocumentStartRecord((BamlDocumentStartRecord)bamlRecord); break; case BamlRecordType.DocumentEnd: ReadDocumentEndRecord(); moreData = false; break; case BamlRecordType.XmlnsProperty: ReadXmlnsPropertyRecord((BamlXmlnsPropertyRecord)bamlRecord); break; case BamlRecordType.PIMapping: { // If this mapping has not already been set up, then set it now BamlPIMappingRecord piMappingRecord = (BamlPIMappingRecord)bamlRecord; if (!XamlTypeMapper.PITable.Contains(piMappingRecord.XmlNamespace)) { BamlAssemblyInfoRecord assemblyInfo = MapTable.GetAssemblyInfoFromId(piMappingRecord.AssemblyId); // Add information to the MappingPI hashtable ClrNamespaceAssemblyPair mapping = new ClrNamespaceAssemblyPair( piMappingRecord.ClrNamespace, assemblyInfo.AssemblyFullName); XamlTypeMapper.PITable.Add(piMappingRecord.XmlNamespace, mapping); } break; } case BamlRecordType.AssemblyInfo: MapTable.LoadAssemblyInfoRecord((BamlAssemblyInfoRecord)bamlRecord); break; case BamlRecordType.TypeInfo: case BamlRecordType.TypeSerializerInfo: MapTable.LoadTypeInfoRecord((BamlTypeInfoRecord)bamlRecord); break; case BamlRecordType.AttributeInfo: MapTable.LoadAttributeInfoRecord((BamlAttributeInfoRecord)bamlRecord); break; case BamlRecordType.StringInfo: MapTable.LoadStringInfoRecord((BamlStringInfoRecord)bamlRecord); break; case BamlRecordType.LiteralContent: ReadLiteralContentRecord((BamlLiteralContentRecord)bamlRecord); break; case BamlRecordType.ElementStart: case BamlRecordType.StaticResourceStart: if (((BamlElementStartRecord)bamlRecord).IsInjected) { CurrentContext.SetFlag(ReaderFlags.InjectedElement); } else { ReadElementStartRecord((BamlElementStartRecord)bamlRecord); } break; case BamlRecordType.NamedElementStart: // This is only used by template code, and only as a temporary record, so should never occur here. // See comment on BamlNamedElementStartRecord Debug.Assert(false); break; case BamlRecordType.ConnectionId: ReadConnectionId((BamlConnectionIdRecord)bamlRecord); break; case BamlRecordType.ElementEnd: case BamlRecordType.StaticResourceEnd: if (CurrentContext.CheckFlag(ReaderFlags.InjectedElement)) { CurrentContext.ClearFlag(ReaderFlags.InjectedElement); } else { ReadElementEndRecord(false); } break; case BamlRecordType.PropertyComplexStart: ReadPropertyComplexStartRecord((BamlPropertyComplexStartRecord)bamlRecord); break; case BamlRecordType.PropertyComplexEnd: ReadPropertyComplexEndRecord(); break; case BamlRecordType.Property: ReadPropertyRecord((BamlPropertyRecord)bamlRecord); break; case BamlRecordType.PropertyStringReference: ReadPropertyStringRecord((BamlPropertyStringReferenceRecord)bamlRecord); break; case BamlRecordType.PropertyTypeReference: ReadPropertyTypeRecord((BamlPropertyTypeReferenceRecord)bamlRecord); break; case BamlRecordType.PropertyWithExtension: ReadPropertyWithExtensionRecord((BamlPropertyWithExtensionRecord)bamlRecord); break; case BamlRecordType.PropertyWithConverter: ReadPropertyConverterRecord((BamlPropertyWithConverterRecord)bamlRecord); break; case BamlRecordType.PropertyCustom: ReadPropertyCustomRecord((BamlPropertyCustomRecord)bamlRecord); break; case BamlRecordType.PropertyArrayStart: ReadPropertyArrayStartRecord((BamlPropertyArrayStartRecord)bamlRecord); break; case BamlRecordType.PropertyArrayEnd: ReadPropertyArrayEndRecord(); break; case BamlRecordType.PropertyIListStart: ReadPropertyIListStartRecord((BamlPropertyIListStartRecord)bamlRecord); break; case BamlRecordType.PropertyIListEnd: ReadPropertyIListEndRecord(); break; case BamlRecordType.PropertyIDictionaryStart: ReadPropertyIDictionaryStartRecord((BamlPropertyIDictionaryStartRecord)bamlRecord); break; case BamlRecordType.PropertyIDictionaryEnd: ReadPropertyIDictionaryEndRecord(); break; case BamlRecordType.DefAttribute: ReadDefAttributeRecord((BamlDefAttributeRecord)bamlRecord); break; case BamlRecordType.DefAttributeKeyType: ReadDefAttributeKeyTypeRecord((BamlDefAttributeKeyTypeRecord)bamlRecord); break; case BamlRecordType.PresentationOptionsAttribute: ReadPresentationOptionsAttributeRecord((BamlPresentationOptionsAttributeRecord)bamlRecord); break; case BamlRecordType.RoutedEvent: { Debug.Assert(ReaderFlags.DependencyObject == CurrentContext.ContextType); DependencyObject currentParent = GetCurrentObjectData() as DependencyObject; BamlRoutedEventRecord bamlRoutedEventRecord = (BamlRoutedEventRecord)bamlRecord; // ThrowException(SRID.ParserBamlEvent, bamlRoutedEventRecord.Value); } break; case BamlRecordType.Text: case BamlRecordType.TextWithId: case BamlRecordType.TextWithConverter: ReadTextRecord((BamlTextRecord)bamlRecord); break; case BamlRecordType.DeferableContentStart: ReadDeferableContentStart((BamlDeferableContentStartRecord)bamlRecord); break; case BamlRecordType.KeyElementStart: ReadKeyElementStartRecord((BamlKeyElementStartRecord)bamlRecord); break; case BamlRecordType.KeyElementEnd: ReadKeyElementEndRecord(); break; case BamlRecordType.ConstructorParametersStart: ReadConstructorParametersStartRecord(); break; case BamlRecordType.ConstructorParametersEnd: ReadConstructorParametersEndRecord(); break; case BamlRecordType.ConstructorParameterType: ReadConstructorParameterTypeRecord((BamlConstructorParameterTypeRecord)bamlRecord); break; case BamlRecordType.ContentProperty: ReadContentPropertyRecord((BamlContentPropertyRecord)bamlRecord); break; case BamlRecordType.StaticResourceId: ReadStaticResourceIdRecord((BamlStaticResourceIdRecord)bamlRecord); break; case BamlRecordType.PropertyWithStaticResourceId: ReadPropertyWithStaticResourceIdRecord((BamlPropertyWithStaticResourceIdRecord)bamlRecord); break; case BamlRecordType.LineNumberAndPosition: // Should be skipped in ReadNextRecordWithDebugExtension. case BamlRecordType.LinePosition: // Should be skipped in ReadNextRecordWithDebugExtension. default: ThrowException(SRID.ParserUnknownBaml, ((int)bamlRecord.RecordType).ToString(CultureInfo.CurrentCulture)); break; } #if !STRESS } catch (Exception e) { // Don't wrap critical exceptions or already-wrapped exceptions. if (CriticalExceptions.IsCriticalException(e) || e is XamlParseException ) { throw; } XamlParseException.ThrowException( ParserContext, LineNumber, LinePosition, String.Empty /*message*/, e ); } #endif return moreData; }