using System; using System.Diagnostics; using Google.Protobuf.Collections; namespace Google.Protobuf.Reflection { // Token: 0x02000053 RID: 83 internal sealed class SourceCodeInfo : IMessage, IMessage, IEquatable, IDeepCloneable { // Token: 0x1700015A RID: 346 // (get) Token: 0x0600053F RID: 1343 RVA: 0x00013102 File Offset: 0x00011302 [DebuggerNonUserCode] public static MessageParser Parser { get { return SourceCodeInfo._parser; } } // Token: 0x1700015B RID: 347 // (get) Token: 0x06000540 RID: 1344 RVA: 0x00013109 File Offset: 0x00011309 [DebuggerNonUserCode] public static MessageDescriptor Descriptor { get { return DescriptorReflection.Descriptor.MessageTypes[18]; } } // Token: 0x1700015C RID: 348 // (get) Token: 0x06000541 RID: 1345 RVA: 0x0001311C File Offset: 0x0001131C [DebuggerNonUserCode] MessageDescriptor IMessage.Descriptor { get { return SourceCodeInfo.Descriptor; } } // Token: 0x06000542 RID: 1346 RVA: 0x00013123 File Offset: 0x00011323 [DebuggerNonUserCode] public SourceCodeInfo() { } // Token: 0x06000543 RID: 1347 RVA: 0x00013136 File Offset: 0x00011336 [DebuggerNonUserCode] public SourceCodeInfo(SourceCodeInfo other) : this() { this.location_ = other.location_.Clone(); } // Token: 0x06000544 RID: 1348 RVA: 0x0001314F File Offset: 0x0001134F [DebuggerNonUserCode] public SourceCodeInfo Clone() { return new SourceCodeInfo(this); } // Token: 0x1700015D RID: 349 // (get) Token: 0x06000545 RID: 1349 RVA: 0x00013157 File Offset: 0x00011357 [DebuggerNonUserCode] public RepeatedField Location { get { return this.location_; } } // Token: 0x06000546 RID: 1350 RVA: 0x0001315F File Offset: 0x0001135F [DebuggerNonUserCode] public override bool Equals(object other) { return this.Equals(other as SourceCodeInfo); } // Token: 0x06000547 RID: 1351 RVA: 0x0001316D File Offset: 0x0001136D [DebuggerNonUserCode] public bool Equals(SourceCodeInfo other) { return other != null && (other == this || this.location_.Equals(other.location_)); } // Token: 0x06000548 RID: 1352 RVA: 0x00013190 File Offset: 0x00011390 [DebuggerNonUserCode] public override int GetHashCode() { return 1 ^ this.location_.GetHashCode(); } // Token: 0x06000549 RID: 1353 RVA: 0x00007C02 File Offset: 0x00005E02 [DebuggerNonUserCode] public override string ToString() { return JsonFormatter.ToDiagnosticString(this); } // Token: 0x0600054A RID: 1354 RVA: 0x0001319F File Offset: 0x0001139F [DebuggerNonUserCode] public void WriteTo(CodedOutputStream output) { this.location_.WriteTo(output, SourceCodeInfo._repeated_location_codec); } // Token: 0x0600054B RID: 1355 RVA: 0x000131B2 File Offset: 0x000113B2 [DebuggerNonUserCode] public int CalculateSize() { return 0 + this.location_.CalculateSize(SourceCodeInfo._repeated_location_codec); } // Token: 0x0600054C RID: 1356 RVA: 0x000131C6 File Offset: 0x000113C6 [DebuggerNonUserCode] public void MergeFrom(SourceCodeInfo other) { if (other == null) { return; } this.location_.Add(other.location_); } // Token: 0x0600054D RID: 1357 RVA: 0x000131E0 File Offset: 0x000113E0 [DebuggerNonUserCode] public void MergeFrom(CodedInputStream input) { uint num; while ((num = input.ReadTag()) != 0U) { if (num != 10U) { input.SkipLastField(); } else { this.location_.AddEntriesFrom(input, SourceCodeInfo._repeated_location_codec); } } } // Token: 0x040001FE RID: 510 private static readonly MessageParser _parser = new MessageParser(() => new SourceCodeInfo()); // Token: 0x040001FF RID: 511 public const int LocationFieldNumber = 1; // Token: 0x04000200 RID: 512 private static readonly FieldCodec _repeated_location_codec = FieldCodec.ForMessage(10U, SourceCodeInfo.Types.Location.Parser); // Token: 0x04000201 RID: 513 private readonly RepeatedField location_ = new RepeatedField(); // Token: 0x020000B9 RID: 185 [DebuggerNonUserCode] public static class Types { // Token: 0x020000DD RID: 221 internal sealed class Location : IMessage, IMessage, IEquatable, IDeepCloneable { // Token: 0x170001EE RID: 494 // (get) Token: 0x060007EC RID: 2028 RVA: 0x00018361 File Offset: 0x00016561 [DebuggerNonUserCode] public static MessageParser Parser { get { return SourceCodeInfo.Types.Location._parser; } } // Token: 0x170001EF RID: 495 // (get) Token: 0x060007ED RID: 2029 RVA: 0x00018368 File Offset: 0x00016568 [DebuggerNonUserCode] public static MessageDescriptor Descriptor { get { return SourceCodeInfo.Descriptor.NestedTypes[0]; } } // Token: 0x170001F0 RID: 496 // (get) Token: 0x060007EE RID: 2030 RVA: 0x0001837A File Offset: 0x0001657A [DebuggerNonUserCode] MessageDescriptor IMessage.Descriptor { get { return SourceCodeInfo.Types.Location.Descriptor; } } // Token: 0x060007EF RID: 2031 RVA: 0x00018381 File Offset: 0x00016581 [DebuggerNonUserCode] public Location() { } // Token: 0x060007F0 RID: 2032 RVA: 0x000183C0 File Offset: 0x000165C0 [DebuggerNonUserCode] public Location(SourceCodeInfo.Types.Location other) : this() { this.path_ = other.path_.Clone(); this.span_ = other.span_.Clone(); this.leadingComments_ = other.leadingComments_; this.trailingComments_ = other.trailingComments_; this.leadingDetachedComments_ = other.leadingDetachedComments_.Clone(); } // Token: 0x060007F1 RID: 2033 RVA: 0x0001841E File Offset: 0x0001661E [DebuggerNonUserCode] public SourceCodeInfo.Types.Location Clone() { return new SourceCodeInfo.Types.Location(this); } // Token: 0x170001F1 RID: 497 // (get) Token: 0x060007F2 RID: 2034 RVA: 0x00018426 File Offset: 0x00016626 [DebuggerNonUserCode] public RepeatedField Path { get { return this.path_; } } // Token: 0x170001F2 RID: 498 // (get) Token: 0x060007F3 RID: 2035 RVA: 0x0001842E File Offset: 0x0001662E [DebuggerNonUserCode] public RepeatedField Span { get { return this.span_; } } // Token: 0x170001F3 RID: 499 // (get) Token: 0x060007F4 RID: 2036 RVA: 0x00018436 File Offset: 0x00016636 // (set) Token: 0x060007F5 RID: 2037 RVA: 0x0001843E File Offset: 0x0001663E [DebuggerNonUserCode] public string LeadingComments { get { return this.leadingComments_; } set { this.leadingComments_ = ProtoPreconditions.CheckNotNull(value, "value"); } } // Token: 0x170001F4 RID: 500 // (get) Token: 0x060007F6 RID: 2038 RVA: 0x00018451 File Offset: 0x00016651 // (set) Token: 0x060007F7 RID: 2039 RVA: 0x00018459 File Offset: 0x00016659 [DebuggerNonUserCode] public string TrailingComments { get { return this.trailingComments_; } set { this.trailingComments_ = ProtoPreconditions.CheckNotNull(value, "value"); } } // Token: 0x170001F5 RID: 501 // (get) Token: 0x060007F8 RID: 2040 RVA: 0x0001846C File Offset: 0x0001666C [DebuggerNonUserCode] public RepeatedField LeadingDetachedComments { get { return this.leadingDetachedComments_; } } // Token: 0x060007F9 RID: 2041 RVA: 0x00018474 File Offset: 0x00016674 [DebuggerNonUserCode] public override bool Equals(object other) { return this.Equals(other as SourceCodeInfo.Types.Location); } // Token: 0x060007FA RID: 2042 RVA: 0x00018484 File Offset: 0x00016684 [DebuggerNonUserCode] public bool Equals(SourceCodeInfo.Types.Location other) { return other != null && (other == this || (this.path_.Equals(other.path_) && this.span_.Equals(other.span_) && !(this.LeadingComments != other.LeadingComments) && !(this.TrailingComments != other.TrailingComments) && this.leadingDetachedComments_.Equals(other.leadingDetachedComments_))); } // Token: 0x060007FB RID: 2043 RVA: 0x00018508 File Offset: 0x00016708 [DebuggerNonUserCode] public override int GetHashCode() { int num = 1; num ^= this.path_.GetHashCode(); num ^= this.span_.GetHashCode(); if (this.LeadingComments.Length != 0) { num ^= this.LeadingComments.GetHashCode(); } if (this.TrailingComments.Length != 0) { num ^= this.TrailingComments.GetHashCode(); } return num ^ this.leadingDetachedComments_.GetHashCode(); } // Token: 0x060007FC RID: 2044 RVA: 0x00007C02 File Offset: 0x00005E02 [DebuggerNonUserCode] public override string ToString() { return JsonFormatter.ToDiagnosticString(this); } // Token: 0x060007FD RID: 2045 RVA: 0x00018578 File Offset: 0x00016778 [DebuggerNonUserCode] public void WriteTo(CodedOutputStream output) { this.path_.WriteTo(output, SourceCodeInfo.Types.Location._repeated_path_codec); this.span_.WriteTo(output, SourceCodeInfo.Types.Location._repeated_span_codec); if (this.LeadingComments.Length != 0) { output.WriteRawTag(26); output.WriteString(this.LeadingComments); } if (this.TrailingComments.Length != 0) { output.WriteRawTag(34); output.WriteString(this.TrailingComments); } this.leadingDetachedComments_.WriteTo(output, SourceCodeInfo.Types.Location._repeated_leadingDetachedComments_codec); } // Token: 0x060007FE RID: 2046 RVA: 0x000185FC File Offset: 0x000167FC [DebuggerNonUserCode] public int CalculateSize() { int num = 0; num += this.path_.CalculateSize(SourceCodeInfo.Types.Location._repeated_path_codec); num += this.span_.CalculateSize(SourceCodeInfo.Types.Location._repeated_span_codec); if (this.LeadingComments.Length != 0) { num += 1 + CodedOutputStream.ComputeStringSize(this.LeadingComments); } if (this.TrailingComments.Length != 0) { num += 1 + CodedOutputStream.ComputeStringSize(this.TrailingComments); } return num + this.leadingDetachedComments_.CalculateSize(SourceCodeInfo.Types.Location._repeated_leadingDetachedComments_codec); } // Token: 0x060007FF RID: 2047 RVA: 0x00018680 File Offset: 0x00016880 [DebuggerNonUserCode] public void MergeFrom(SourceCodeInfo.Types.Location other) { if (other == null) { return; } this.path_.Add(other.path_); this.span_.Add(other.span_); if (other.LeadingComments.Length != 0) { this.LeadingComments = other.LeadingComments; } if (other.TrailingComments.Length != 0) { this.TrailingComments = other.TrailingComments; } this.leadingDetachedComments_.Add(other.leadingDetachedComments_); } // Token: 0x06000800 RID: 2048 RVA: 0x000186F8 File Offset: 0x000168F8 [DebuggerNonUserCode] public void MergeFrom(CodedInputStream input) { uint num; while ((num = input.ReadTag()) != 0U) { if (num <= 16U) { if (num == 8U || num == 10U) { this.path_.AddEntriesFrom(input, SourceCodeInfo.Types.Location._repeated_path_codec); continue; } if (num == 16U) { goto IL_50; } } else if (num <= 26U) { if (num == 18U) { goto IL_50; } if (num == 26U) { this.LeadingComments = input.ReadString(); continue; } } else { if (num == 34U) { this.TrailingComments = input.ReadString(); continue; } if (num == 50U) { this.leadingDetachedComments_.AddEntriesFrom(input, SourceCodeInfo.Types.Location._repeated_leadingDetachedComments_codec); continue; } } input.SkipLastField(); continue; IL_50: this.span_.AddEntriesFrom(input, SourceCodeInfo.Types.Location._repeated_span_codec); } } // Token: 0x04000376 RID: 886 private static readonly MessageParser _parser = new MessageParser(() => new SourceCodeInfo.Types.Location()); // Token: 0x04000377 RID: 887 public const int PathFieldNumber = 1; // Token: 0x04000378 RID: 888 private static readonly FieldCodec _repeated_path_codec = FieldCodec.ForInt32(10U); // Token: 0x04000379 RID: 889 private readonly RepeatedField path_ = new RepeatedField(); // Token: 0x0400037A RID: 890 public const int SpanFieldNumber = 2; // Token: 0x0400037B RID: 891 private static readonly FieldCodec _repeated_span_codec = FieldCodec.ForInt32(18U); // Token: 0x0400037C RID: 892 private readonly RepeatedField span_ = new RepeatedField(); // Token: 0x0400037D RID: 893 public const int LeadingCommentsFieldNumber = 3; // Token: 0x0400037E RID: 894 private string leadingComments_ = ""; // Token: 0x0400037F RID: 895 public const int TrailingCommentsFieldNumber = 4; // Token: 0x04000380 RID: 896 private string trailingComments_ = ""; // Token: 0x04000381 RID: 897 public const int LeadingDetachedCommentsFieldNumber = 6; // Token: 0x04000382 RID: 898 private static readonly FieldCodec _repeated_leadingDetachedComments_codec = FieldCodec.ForString(50U); // Token: 0x04000383 RID: 899 private readonly RepeatedField leadingDetachedComments_ = new RepeatedField(); } } } }