scripts
This commit is contained in:
@@ -0,0 +1,458 @@
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using Google.Protobuf.Collections;
|
||||
|
||||
namespace Google.Protobuf.Reflection
|
||||
{
|
||||
// Token: 0x02000054 RID: 84
|
||||
internal sealed class GeneratedCodeInfo : IMessage<GeneratedCodeInfo>, IMessage, IEquatable<GeneratedCodeInfo>, IDeepCloneable<GeneratedCodeInfo>
|
||||
{
|
||||
// Token: 0x1700015E RID: 350
|
||||
// (get) Token: 0x0600054F RID: 1359 RVA: 0x00013244 File Offset: 0x00011444
|
||||
[DebuggerNonUserCode]
|
||||
public static MessageParser<GeneratedCodeInfo> Parser
|
||||
{
|
||||
get
|
||||
{
|
||||
return GeneratedCodeInfo._parser;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700015F RID: 351
|
||||
// (get) Token: 0x06000550 RID: 1360 RVA: 0x0001324B File Offset: 0x0001144B
|
||||
[DebuggerNonUserCode]
|
||||
public static MessageDescriptor Descriptor
|
||||
{
|
||||
get
|
||||
{
|
||||
return DescriptorReflection.Descriptor.MessageTypes[19];
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000160 RID: 352
|
||||
// (get) Token: 0x06000551 RID: 1361 RVA: 0x0001325E File Offset: 0x0001145E
|
||||
[DebuggerNonUserCode]
|
||||
MessageDescriptor IMessage.Descriptor
|
||||
{
|
||||
get
|
||||
{
|
||||
return GeneratedCodeInfo.Descriptor;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06000552 RID: 1362 RVA: 0x00013265 File Offset: 0x00011465
|
||||
[DebuggerNonUserCode]
|
||||
public GeneratedCodeInfo()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06000553 RID: 1363 RVA: 0x00013278 File Offset: 0x00011478
|
||||
[DebuggerNonUserCode]
|
||||
public GeneratedCodeInfo(GeneratedCodeInfo other)
|
||||
: this()
|
||||
{
|
||||
this.annotation_ = other.annotation_.Clone();
|
||||
}
|
||||
|
||||
// Token: 0x06000554 RID: 1364 RVA: 0x00013291 File Offset: 0x00011491
|
||||
[DebuggerNonUserCode]
|
||||
public GeneratedCodeInfo Clone()
|
||||
{
|
||||
return new GeneratedCodeInfo(this);
|
||||
}
|
||||
|
||||
// Token: 0x17000161 RID: 353
|
||||
// (get) Token: 0x06000555 RID: 1365 RVA: 0x00013299 File Offset: 0x00011499
|
||||
[DebuggerNonUserCode]
|
||||
public RepeatedField<GeneratedCodeInfo.Types.Annotation> Annotation
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.annotation_;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06000556 RID: 1366 RVA: 0x000132A1 File Offset: 0x000114A1
|
||||
[DebuggerNonUserCode]
|
||||
public override bool Equals(object other)
|
||||
{
|
||||
return this.Equals(other as GeneratedCodeInfo);
|
||||
}
|
||||
|
||||
// Token: 0x06000557 RID: 1367 RVA: 0x000132AF File Offset: 0x000114AF
|
||||
[DebuggerNonUserCode]
|
||||
public bool Equals(GeneratedCodeInfo other)
|
||||
{
|
||||
return other != null && (other == this || this.annotation_.Equals(other.annotation_));
|
||||
}
|
||||
|
||||
// Token: 0x06000558 RID: 1368 RVA: 0x000132D2 File Offset: 0x000114D2
|
||||
[DebuggerNonUserCode]
|
||||
public override int GetHashCode()
|
||||
{
|
||||
return 1 ^ this.annotation_.GetHashCode();
|
||||
}
|
||||
|
||||
// Token: 0x06000559 RID: 1369 RVA: 0x00007C02 File Offset: 0x00005E02
|
||||
[DebuggerNonUserCode]
|
||||
public override string ToString()
|
||||
{
|
||||
return JsonFormatter.ToDiagnosticString(this);
|
||||
}
|
||||
|
||||
// Token: 0x0600055A RID: 1370 RVA: 0x000132E1 File Offset: 0x000114E1
|
||||
[DebuggerNonUserCode]
|
||||
public void WriteTo(CodedOutputStream output)
|
||||
{
|
||||
this.annotation_.WriteTo(output, GeneratedCodeInfo._repeated_annotation_codec);
|
||||
}
|
||||
|
||||
// Token: 0x0600055B RID: 1371 RVA: 0x000132F4 File Offset: 0x000114F4
|
||||
[DebuggerNonUserCode]
|
||||
public int CalculateSize()
|
||||
{
|
||||
return 0 + this.annotation_.CalculateSize(GeneratedCodeInfo._repeated_annotation_codec);
|
||||
}
|
||||
|
||||
// Token: 0x0600055C RID: 1372 RVA: 0x00013308 File Offset: 0x00011508
|
||||
[DebuggerNonUserCode]
|
||||
public void MergeFrom(GeneratedCodeInfo other)
|
||||
{
|
||||
if (other == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
this.annotation_.Add(other.annotation_);
|
||||
}
|
||||
|
||||
// Token: 0x0600055D RID: 1373 RVA: 0x00013320 File Offset: 0x00011520
|
||||
[DebuggerNonUserCode]
|
||||
public void MergeFrom(CodedInputStream input)
|
||||
{
|
||||
uint num;
|
||||
while ((num = input.ReadTag()) != 0U)
|
||||
{
|
||||
if (num != 10U)
|
||||
{
|
||||
input.SkipLastField();
|
||||
}
|
||||
else
|
||||
{
|
||||
this.annotation_.AddEntriesFrom(input, GeneratedCodeInfo._repeated_annotation_codec);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x04000202 RID: 514
|
||||
private static readonly MessageParser<GeneratedCodeInfo> _parser = new MessageParser<GeneratedCodeInfo>(() => new GeneratedCodeInfo());
|
||||
|
||||
// Token: 0x04000203 RID: 515
|
||||
public const int AnnotationFieldNumber = 1;
|
||||
|
||||
// Token: 0x04000204 RID: 516
|
||||
private static readonly FieldCodec<GeneratedCodeInfo.Types.Annotation> _repeated_annotation_codec = FieldCodec.ForMessage<GeneratedCodeInfo.Types.Annotation>(10U, GeneratedCodeInfo.Types.Annotation.Parser);
|
||||
|
||||
// Token: 0x04000205 RID: 517
|
||||
private readonly RepeatedField<GeneratedCodeInfo.Types.Annotation> annotation_ = new RepeatedField<GeneratedCodeInfo.Types.Annotation>();
|
||||
|
||||
// Token: 0x020000BB RID: 187
|
||||
[DebuggerNonUserCode]
|
||||
public static class Types
|
||||
{
|
||||
// Token: 0x020000DE RID: 222
|
||||
internal sealed class Annotation : IMessage<GeneratedCodeInfo.Types.Annotation>, IMessage, IEquatable<GeneratedCodeInfo.Types.Annotation>, IDeepCloneable<GeneratedCodeInfo.Types.Annotation>
|
||||
{
|
||||
// Token: 0x170001F6 RID: 502
|
||||
// (get) Token: 0x06000802 RID: 2050 RVA: 0x000187E2 File Offset: 0x000169E2
|
||||
[DebuggerNonUserCode]
|
||||
public static MessageParser<GeneratedCodeInfo.Types.Annotation> Parser
|
||||
{
|
||||
get
|
||||
{
|
||||
return GeneratedCodeInfo.Types.Annotation._parser;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170001F7 RID: 503
|
||||
// (get) Token: 0x06000803 RID: 2051 RVA: 0x000187E9 File Offset: 0x000169E9
|
||||
[DebuggerNonUserCode]
|
||||
public static MessageDescriptor Descriptor
|
||||
{
|
||||
get
|
||||
{
|
||||
return GeneratedCodeInfo.Descriptor.NestedTypes[0];
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170001F8 RID: 504
|
||||
// (get) Token: 0x06000804 RID: 2052 RVA: 0x000187FB File Offset: 0x000169FB
|
||||
[DebuggerNonUserCode]
|
||||
MessageDescriptor IMessage.Descriptor
|
||||
{
|
||||
get
|
||||
{
|
||||
return GeneratedCodeInfo.Types.Annotation.Descriptor;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06000805 RID: 2053 RVA: 0x00018802 File Offset: 0x00016A02
|
||||
[DebuggerNonUserCode]
|
||||
public Annotation()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06000806 RID: 2054 RVA: 0x00018820 File Offset: 0x00016A20
|
||||
[DebuggerNonUserCode]
|
||||
public Annotation(GeneratedCodeInfo.Types.Annotation other)
|
||||
: this()
|
||||
{
|
||||
this.path_ = other.path_.Clone();
|
||||
this.sourceFile_ = other.sourceFile_;
|
||||
this.begin_ = other.begin_;
|
||||
this.end_ = other.end_;
|
||||
}
|
||||
|
||||
// Token: 0x06000807 RID: 2055 RVA: 0x0001885D File Offset: 0x00016A5D
|
||||
[DebuggerNonUserCode]
|
||||
public GeneratedCodeInfo.Types.Annotation Clone()
|
||||
{
|
||||
return new GeneratedCodeInfo.Types.Annotation(this);
|
||||
}
|
||||
|
||||
// Token: 0x170001F9 RID: 505
|
||||
// (get) Token: 0x06000808 RID: 2056 RVA: 0x00018865 File Offset: 0x00016A65
|
||||
[DebuggerNonUserCode]
|
||||
public RepeatedField<int> Path
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.path_;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170001FA RID: 506
|
||||
// (get) Token: 0x06000809 RID: 2057 RVA: 0x0001886D File Offset: 0x00016A6D
|
||||
// (set) Token: 0x0600080A RID: 2058 RVA: 0x00018875 File Offset: 0x00016A75
|
||||
[DebuggerNonUserCode]
|
||||
public string SourceFile
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.sourceFile_;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.sourceFile_ = ProtoPreconditions.CheckNotNull<string>(value, "value");
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170001FB RID: 507
|
||||
// (get) Token: 0x0600080B RID: 2059 RVA: 0x00018888 File Offset: 0x00016A88
|
||||
// (set) Token: 0x0600080C RID: 2060 RVA: 0x00018890 File Offset: 0x00016A90
|
||||
[DebuggerNonUserCode]
|
||||
public int Begin
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.begin_;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.begin_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170001FC RID: 508
|
||||
// (get) Token: 0x0600080D RID: 2061 RVA: 0x00018899 File Offset: 0x00016A99
|
||||
// (set) Token: 0x0600080E RID: 2062 RVA: 0x000188A1 File Offset: 0x00016AA1
|
||||
[DebuggerNonUserCode]
|
||||
public int End
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.end_;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.end_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600080F RID: 2063 RVA: 0x000188AA File Offset: 0x00016AAA
|
||||
[DebuggerNonUserCode]
|
||||
public override bool Equals(object other)
|
||||
{
|
||||
return this.Equals(other as GeneratedCodeInfo.Types.Annotation);
|
||||
}
|
||||
|
||||
// Token: 0x06000810 RID: 2064 RVA: 0x000188B8 File Offset: 0x00016AB8
|
||||
[DebuggerNonUserCode]
|
||||
public bool Equals(GeneratedCodeInfo.Types.Annotation other)
|
||||
{
|
||||
return other != null && (other == this || (this.path_.Equals(other.path_) && !(this.SourceFile != other.SourceFile) && this.Begin == other.Begin && this.End == other.End));
|
||||
}
|
||||
|
||||
// Token: 0x06000811 RID: 2065 RVA: 0x0001891C File Offset: 0x00016B1C
|
||||
[DebuggerNonUserCode]
|
||||
public override int GetHashCode()
|
||||
{
|
||||
int num = 1;
|
||||
num ^= this.path_.GetHashCode();
|
||||
if (this.SourceFile.Length != 0)
|
||||
{
|
||||
num ^= this.SourceFile.GetHashCode();
|
||||
}
|
||||
if (this.Begin != 0)
|
||||
{
|
||||
num ^= this.Begin.GetHashCode();
|
||||
}
|
||||
if (this.End != 0)
|
||||
{
|
||||
num ^= this.End.GetHashCode();
|
||||
}
|
||||
return num;
|
||||
}
|
||||
|
||||
// Token: 0x06000812 RID: 2066 RVA: 0x00007C02 File Offset: 0x00005E02
|
||||
[DebuggerNonUserCode]
|
||||
public override string ToString()
|
||||
{
|
||||
return JsonFormatter.ToDiagnosticString(this);
|
||||
}
|
||||
|
||||
// Token: 0x06000813 RID: 2067 RVA: 0x00018988 File Offset: 0x00016B88
|
||||
[DebuggerNonUserCode]
|
||||
public void WriteTo(CodedOutputStream output)
|
||||
{
|
||||
this.path_.WriteTo(output, GeneratedCodeInfo.Types.Annotation._repeated_path_codec);
|
||||
if (this.SourceFile.Length != 0)
|
||||
{
|
||||
output.WriteRawTag(18);
|
||||
output.WriteString(this.SourceFile);
|
||||
}
|
||||
if (this.Begin != 0)
|
||||
{
|
||||
output.WriteRawTag(24);
|
||||
output.WriteInt32(this.Begin);
|
||||
}
|
||||
if (this.End != 0)
|
||||
{
|
||||
output.WriteRawTag(32);
|
||||
output.WriteInt32(this.End);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06000814 RID: 2068 RVA: 0x00018A00 File Offset: 0x00016C00
|
||||
[DebuggerNonUserCode]
|
||||
public int CalculateSize()
|
||||
{
|
||||
int num = 0;
|
||||
num += this.path_.CalculateSize(GeneratedCodeInfo.Types.Annotation._repeated_path_codec);
|
||||
if (this.SourceFile.Length != 0)
|
||||
{
|
||||
num += 1 + CodedOutputStream.ComputeStringSize(this.SourceFile);
|
||||
}
|
||||
if (this.Begin != 0)
|
||||
{
|
||||
num += 1 + CodedOutputStream.ComputeInt32Size(this.Begin);
|
||||
}
|
||||
if (this.End != 0)
|
||||
{
|
||||
num += 1 + CodedOutputStream.ComputeInt32Size(this.End);
|
||||
}
|
||||
return num;
|
||||
}
|
||||
|
||||
// Token: 0x06000815 RID: 2069 RVA: 0x00018A70 File Offset: 0x00016C70
|
||||
[DebuggerNonUserCode]
|
||||
public void MergeFrom(GeneratedCodeInfo.Types.Annotation other)
|
||||
{
|
||||
if (other == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
this.path_.Add(other.path_);
|
||||
if (other.SourceFile.Length != 0)
|
||||
{
|
||||
this.SourceFile = other.SourceFile;
|
||||
}
|
||||
if (other.Begin != 0)
|
||||
{
|
||||
this.Begin = other.Begin;
|
||||
}
|
||||
if (other.End != 0)
|
||||
{
|
||||
this.End = other.End;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06000816 RID: 2070 RVA: 0x00018AD4 File Offset: 0x00016CD4
|
||||
[DebuggerNonUserCode]
|
||||
public void MergeFrom(CodedInputStream input)
|
||||
{
|
||||
uint num;
|
||||
while ((num = input.ReadTag()) != 0U)
|
||||
{
|
||||
if (num <= 10U)
|
||||
{
|
||||
if (num == 8U || num == 10U)
|
||||
{
|
||||
this.path_.AddEntriesFrom(input, GeneratedCodeInfo.Types.Annotation._repeated_path_codec);
|
||||
continue;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (num == 18U)
|
||||
{
|
||||
this.SourceFile = input.ReadString();
|
||||
continue;
|
||||
}
|
||||
if (num == 24U)
|
||||
{
|
||||
this.Begin = input.ReadInt32();
|
||||
continue;
|
||||
}
|
||||
if (num == 32U)
|
||||
{
|
||||
this.End = input.ReadInt32();
|
||||
continue;
|
||||
}
|
||||
}
|
||||
input.SkipLastField();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x04000384 RID: 900
|
||||
private static readonly MessageParser<GeneratedCodeInfo.Types.Annotation> _parser = new MessageParser<GeneratedCodeInfo.Types.Annotation>(() => new GeneratedCodeInfo.Types.Annotation());
|
||||
|
||||
// Token: 0x04000385 RID: 901
|
||||
public const int PathFieldNumber = 1;
|
||||
|
||||
// Token: 0x04000386 RID: 902
|
||||
private static readonly FieldCodec<int> _repeated_path_codec = FieldCodec.ForInt32(10U);
|
||||
|
||||
// Token: 0x04000387 RID: 903
|
||||
private readonly RepeatedField<int> path_ = new RepeatedField<int>();
|
||||
|
||||
// Token: 0x04000388 RID: 904
|
||||
public const int SourceFileFieldNumber = 2;
|
||||
|
||||
// Token: 0x04000389 RID: 905
|
||||
private string sourceFile_ = "";
|
||||
|
||||
// Token: 0x0400038A RID: 906
|
||||
public const int BeginFieldNumber = 3;
|
||||
|
||||
// Token: 0x0400038B RID: 907
|
||||
private int begin_;
|
||||
|
||||
// Token: 0x0400038C RID: 908
|
||||
public const int EndFieldNumber = 4;
|
||||
|
||||
// Token: 0x0400038D RID: 909
|
||||
private int end_;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user