Fix incremental recompilation of JS source maps
Note that this breaks binary compatibility. It should be OK, since nobody is using incremental compilation API for now.
This commit is contained in:
+431
-149
@@ -27647,6 +27647,28 @@ public final class DebugJsAstProtoBuf {
|
|||||||
* <code>optional .org.jetbrains.kotlin.serialization.js.ast.Expression initial_value = 2;</code>
|
* <code>optional .org.jetbrains.kotlin.serialization.js.ast.Expression initial_value = 2;</code>
|
||||||
*/
|
*/
|
||||||
org.jetbrains.kotlin.serialization.js.ast.DebugJsAstProtoBuf.ExpressionOrBuilder getInitialValueOrBuilder();
|
org.jetbrains.kotlin.serialization.js.ast.DebugJsAstProtoBuf.ExpressionOrBuilder getInitialValueOrBuilder();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional int32 fileId = 3;</code>
|
||||||
|
*/
|
||||||
|
boolean hasFileId();
|
||||||
|
/**
|
||||||
|
* <code>optional int32 fileId = 3;</code>
|
||||||
|
*/
|
||||||
|
int getFileId();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional .org.jetbrains.kotlin.serialization.js.ast.Location location = 4;</code>
|
||||||
|
*/
|
||||||
|
boolean hasLocation();
|
||||||
|
/**
|
||||||
|
* <code>optional .org.jetbrains.kotlin.serialization.js.ast.Location location = 4;</code>
|
||||||
|
*/
|
||||||
|
org.jetbrains.kotlin.serialization.js.ast.DebugJsAstProtoBuf.Location getLocation();
|
||||||
|
/**
|
||||||
|
* <code>optional .org.jetbrains.kotlin.serialization.js.ast.Location location = 4;</code>
|
||||||
|
*/
|
||||||
|
org.jetbrains.kotlin.serialization.js.ast.DebugJsAstProtoBuf.LocationOrBuilder getLocationOrBuilder();
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* Protobuf type {@code org.jetbrains.kotlin.serialization.js.ast.VarDeclaration}
|
* Protobuf type {@code org.jetbrains.kotlin.serialization.js.ast.VarDeclaration}
|
||||||
@@ -27718,6 +27740,24 @@ public final class DebugJsAstProtoBuf {
|
|||||||
bitField0_ |= 0x00000002;
|
bitField0_ |= 0x00000002;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case 24: {
|
||||||
|
bitField0_ |= 0x00000004;
|
||||||
|
fileId_ = input.readInt32();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case 34: {
|
||||||
|
org.jetbrains.kotlin.serialization.js.ast.DebugJsAstProtoBuf.Location.Builder subBuilder = null;
|
||||||
|
if (((bitField0_ & 0x00000008) == 0x00000008)) {
|
||||||
|
subBuilder = location_.toBuilder();
|
||||||
|
}
|
||||||
|
location_ = input.readMessage(org.jetbrains.kotlin.serialization.js.ast.DebugJsAstProtoBuf.Location.PARSER, extensionRegistry);
|
||||||
|
if (subBuilder != null) {
|
||||||
|
subBuilder.mergeFrom(location_);
|
||||||
|
location_ = subBuilder.buildPartial();
|
||||||
|
}
|
||||||
|
bitField0_ |= 0x00000008;
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException e) {
|
} catch (org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException e) {
|
||||||
@@ -27794,9 +27834,47 @@ public final class DebugJsAstProtoBuf {
|
|||||||
return initialValue_;
|
return initialValue_;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static final int FILEID_FIELD_NUMBER = 3;
|
||||||
|
private int fileId_;
|
||||||
|
/**
|
||||||
|
* <code>optional int32 fileId = 3;</code>
|
||||||
|
*/
|
||||||
|
public boolean hasFileId() {
|
||||||
|
return ((bitField0_ & 0x00000004) == 0x00000004);
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* <code>optional int32 fileId = 3;</code>
|
||||||
|
*/
|
||||||
|
public int getFileId() {
|
||||||
|
return fileId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static final int LOCATION_FIELD_NUMBER = 4;
|
||||||
|
private org.jetbrains.kotlin.serialization.js.ast.DebugJsAstProtoBuf.Location location_;
|
||||||
|
/**
|
||||||
|
* <code>optional .org.jetbrains.kotlin.serialization.js.ast.Location location = 4;</code>
|
||||||
|
*/
|
||||||
|
public boolean hasLocation() {
|
||||||
|
return ((bitField0_ & 0x00000008) == 0x00000008);
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* <code>optional .org.jetbrains.kotlin.serialization.js.ast.Location location = 4;</code>
|
||||||
|
*/
|
||||||
|
public org.jetbrains.kotlin.serialization.js.ast.DebugJsAstProtoBuf.Location getLocation() {
|
||||||
|
return location_;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* <code>optional .org.jetbrains.kotlin.serialization.js.ast.Location location = 4;</code>
|
||||||
|
*/
|
||||||
|
public org.jetbrains.kotlin.serialization.js.ast.DebugJsAstProtoBuf.LocationOrBuilder getLocationOrBuilder() {
|
||||||
|
return location_;
|
||||||
|
}
|
||||||
|
|
||||||
private void initFields() {
|
private void initFields() {
|
||||||
nameId_ = 0;
|
nameId_ = 0;
|
||||||
initialValue_ = org.jetbrains.kotlin.serialization.js.ast.DebugJsAstProtoBuf.Expression.getDefaultInstance();
|
initialValue_ = org.jetbrains.kotlin.serialization.js.ast.DebugJsAstProtoBuf.Expression.getDefaultInstance();
|
||||||
|
fileId_ = 0;
|
||||||
|
location_ = org.jetbrains.kotlin.serialization.js.ast.DebugJsAstProtoBuf.Location.getDefaultInstance();
|
||||||
}
|
}
|
||||||
private byte memoizedIsInitialized = -1;
|
private byte memoizedIsInitialized = -1;
|
||||||
public final boolean isInitialized() {
|
public final boolean isInitialized() {
|
||||||
@@ -27814,6 +27892,12 @@ public final class DebugJsAstProtoBuf {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (hasLocation()) {
|
||||||
|
if (!getLocation().isInitialized()) {
|
||||||
|
memoizedIsInitialized = 0;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
memoizedIsInitialized = 1;
|
memoizedIsInitialized = 1;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -27827,6 +27911,12 @@ public final class DebugJsAstProtoBuf {
|
|||||||
if (((bitField0_ & 0x00000002) == 0x00000002)) {
|
if (((bitField0_ & 0x00000002) == 0x00000002)) {
|
||||||
output.writeMessage(2, initialValue_);
|
output.writeMessage(2, initialValue_);
|
||||||
}
|
}
|
||||||
|
if (((bitField0_ & 0x00000004) == 0x00000004)) {
|
||||||
|
output.writeInt32(3, fileId_);
|
||||||
|
}
|
||||||
|
if (((bitField0_ & 0x00000008) == 0x00000008)) {
|
||||||
|
output.writeMessage(4, location_);
|
||||||
|
}
|
||||||
getUnknownFields().writeTo(output);
|
getUnknownFields().writeTo(output);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -27844,6 +27934,14 @@ public final class DebugJsAstProtoBuf {
|
|||||||
size += org.jetbrains.kotlin.protobuf.CodedOutputStream
|
size += org.jetbrains.kotlin.protobuf.CodedOutputStream
|
||||||
.computeMessageSize(2, initialValue_);
|
.computeMessageSize(2, initialValue_);
|
||||||
}
|
}
|
||||||
|
if (((bitField0_ & 0x00000004) == 0x00000004)) {
|
||||||
|
size += org.jetbrains.kotlin.protobuf.CodedOutputStream
|
||||||
|
.computeInt32Size(3, fileId_);
|
||||||
|
}
|
||||||
|
if (((bitField0_ & 0x00000008) == 0x00000008)) {
|
||||||
|
size += org.jetbrains.kotlin.protobuf.CodedOutputStream
|
||||||
|
.computeMessageSize(4, location_);
|
||||||
|
}
|
||||||
size += getUnknownFields().getSerializedSize();
|
size += getUnknownFields().getSerializedSize();
|
||||||
memoizedSerializedSize = size;
|
memoizedSerializedSize = size;
|
||||||
return size;
|
return size;
|
||||||
@@ -27954,6 +28052,7 @@ public final class DebugJsAstProtoBuf {
|
|||||||
private void maybeForceBuilderInitialization() {
|
private void maybeForceBuilderInitialization() {
|
||||||
if (org.jetbrains.kotlin.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
|
if (org.jetbrains.kotlin.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
|
||||||
getInitialValueFieldBuilder();
|
getInitialValueFieldBuilder();
|
||||||
|
getLocationFieldBuilder();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
private static Builder create() {
|
private static Builder create() {
|
||||||
@@ -27970,6 +28069,14 @@ public final class DebugJsAstProtoBuf {
|
|||||||
initialValueBuilder_.clear();
|
initialValueBuilder_.clear();
|
||||||
}
|
}
|
||||||
bitField0_ = (bitField0_ & ~0x00000002);
|
bitField0_ = (bitField0_ & ~0x00000002);
|
||||||
|
fileId_ = 0;
|
||||||
|
bitField0_ = (bitField0_ & ~0x00000004);
|
||||||
|
if (locationBuilder_ == null) {
|
||||||
|
location_ = org.jetbrains.kotlin.serialization.js.ast.DebugJsAstProtoBuf.Location.getDefaultInstance();
|
||||||
|
} else {
|
||||||
|
locationBuilder_.clear();
|
||||||
|
}
|
||||||
|
bitField0_ = (bitField0_ & ~0x00000008);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -28010,6 +28117,18 @@ public final class DebugJsAstProtoBuf {
|
|||||||
} else {
|
} else {
|
||||||
result.initialValue_ = initialValueBuilder_.build();
|
result.initialValue_ = initialValueBuilder_.build();
|
||||||
}
|
}
|
||||||
|
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
|
||||||
|
to_bitField0_ |= 0x00000004;
|
||||||
|
}
|
||||||
|
result.fileId_ = fileId_;
|
||||||
|
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
|
||||||
|
to_bitField0_ |= 0x00000008;
|
||||||
|
}
|
||||||
|
if (locationBuilder_ == null) {
|
||||||
|
result.location_ = location_;
|
||||||
|
} else {
|
||||||
|
result.location_ = locationBuilder_.build();
|
||||||
|
}
|
||||||
result.bitField0_ = to_bitField0_;
|
result.bitField0_ = to_bitField0_;
|
||||||
onBuilt();
|
onBuilt();
|
||||||
return result;
|
return result;
|
||||||
@@ -28032,6 +28151,12 @@ public final class DebugJsAstProtoBuf {
|
|||||||
if (other.hasInitialValue()) {
|
if (other.hasInitialValue()) {
|
||||||
mergeInitialValue(other.getInitialValue());
|
mergeInitialValue(other.getInitialValue());
|
||||||
}
|
}
|
||||||
|
if (other.hasFileId()) {
|
||||||
|
setFileId(other.getFileId());
|
||||||
|
}
|
||||||
|
if (other.hasLocation()) {
|
||||||
|
mergeLocation(other.getLocation());
|
||||||
|
}
|
||||||
this.mergeUnknownFields(other.getUnknownFields());
|
this.mergeUnknownFields(other.getUnknownFields());
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@@ -28047,6 +28172,12 @@ public final class DebugJsAstProtoBuf {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (hasLocation()) {
|
||||||
|
if (!getLocation().isInitialized()) {
|
||||||
|
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -28217,6 +28348,154 @@ public final class DebugJsAstProtoBuf {
|
|||||||
return initialValueBuilder_;
|
return initialValueBuilder_;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private int fileId_ ;
|
||||||
|
/**
|
||||||
|
* <code>optional int32 fileId = 3;</code>
|
||||||
|
*/
|
||||||
|
public boolean hasFileId() {
|
||||||
|
return ((bitField0_ & 0x00000004) == 0x00000004);
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* <code>optional int32 fileId = 3;</code>
|
||||||
|
*/
|
||||||
|
public int getFileId() {
|
||||||
|
return fileId_;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* <code>optional int32 fileId = 3;</code>
|
||||||
|
*/
|
||||||
|
public Builder setFileId(int value) {
|
||||||
|
bitField0_ |= 0x00000004;
|
||||||
|
fileId_ = value;
|
||||||
|
onChanged();
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* <code>optional int32 fileId = 3;</code>
|
||||||
|
*/
|
||||||
|
public Builder clearFileId() {
|
||||||
|
bitField0_ = (bitField0_ & ~0x00000004);
|
||||||
|
fileId_ = 0;
|
||||||
|
onChanged();
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
private org.jetbrains.kotlin.serialization.js.ast.DebugJsAstProtoBuf.Location location_ = org.jetbrains.kotlin.serialization.js.ast.DebugJsAstProtoBuf.Location.getDefaultInstance();
|
||||||
|
private org.jetbrains.kotlin.protobuf.SingleFieldBuilder<
|
||||||
|
org.jetbrains.kotlin.serialization.js.ast.DebugJsAstProtoBuf.Location, org.jetbrains.kotlin.serialization.js.ast.DebugJsAstProtoBuf.Location.Builder, org.jetbrains.kotlin.serialization.js.ast.DebugJsAstProtoBuf.LocationOrBuilder> locationBuilder_;
|
||||||
|
/**
|
||||||
|
* <code>optional .org.jetbrains.kotlin.serialization.js.ast.Location location = 4;</code>
|
||||||
|
*/
|
||||||
|
public boolean hasLocation() {
|
||||||
|
return ((bitField0_ & 0x00000008) == 0x00000008);
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* <code>optional .org.jetbrains.kotlin.serialization.js.ast.Location location = 4;</code>
|
||||||
|
*/
|
||||||
|
public org.jetbrains.kotlin.serialization.js.ast.DebugJsAstProtoBuf.Location getLocation() {
|
||||||
|
if (locationBuilder_ == null) {
|
||||||
|
return location_;
|
||||||
|
} else {
|
||||||
|
return locationBuilder_.getMessage();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* <code>optional .org.jetbrains.kotlin.serialization.js.ast.Location location = 4;</code>
|
||||||
|
*/
|
||||||
|
public Builder setLocation(org.jetbrains.kotlin.serialization.js.ast.DebugJsAstProtoBuf.Location value) {
|
||||||
|
if (locationBuilder_ == null) {
|
||||||
|
if (value == null) {
|
||||||
|
throw new NullPointerException();
|
||||||
|
}
|
||||||
|
location_ = value;
|
||||||
|
onChanged();
|
||||||
|
} else {
|
||||||
|
locationBuilder_.setMessage(value);
|
||||||
|
}
|
||||||
|
bitField0_ |= 0x00000008;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* <code>optional .org.jetbrains.kotlin.serialization.js.ast.Location location = 4;</code>
|
||||||
|
*/
|
||||||
|
public Builder setLocation(
|
||||||
|
org.jetbrains.kotlin.serialization.js.ast.DebugJsAstProtoBuf.Location.Builder builderForValue) {
|
||||||
|
if (locationBuilder_ == null) {
|
||||||
|
location_ = builderForValue.build();
|
||||||
|
onChanged();
|
||||||
|
} else {
|
||||||
|
locationBuilder_.setMessage(builderForValue.build());
|
||||||
|
}
|
||||||
|
bitField0_ |= 0x00000008;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* <code>optional .org.jetbrains.kotlin.serialization.js.ast.Location location = 4;</code>
|
||||||
|
*/
|
||||||
|
public Builder mergeLocation(org.jetbrains.kotlin.serialization.js.ast.DebugJsAstProtoBuf.Location value) {
|
||||||
|
if (locationBuilder_ == null) {
|
||||||
|
if (((bitField0_ & 0x00000008) == 0x00000008) &&
|
||||||
|
location_ != org.jetbrains.kotlin.serialization.js.ast.DebugJsAstProtoBuf.Location.getDefaultInstance()) {
|
||||||
|
location_ =
|
||||||
|
org.jetbrains.kotlin.serialization.js.ast.DebugJsAstProtoBuf.Location.newBuilder(location_).mergeFrom(value).buildPartial();
|
||||||
|
} else {
|
||||||
|
location_ = value;
|
||||||
|
}
|
||||||
|
onChanged();
|
||||||
|
} else {
|
||||||
|
locationBuilder_.mergeFrom(value);
|
||||||
|
}
|
||||||
|
bitField0_ |= 0x00000008;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* <code>optional .org.jetbrains.kotlin.serialization.js.ast.Location location = 4;</code>
|
||||||
|
*/
|
||||||
|
public Builder clearLocation() {
|
||||||
|
if (locationBuilder_ == null) {
|
||||||
|
location_ = org.jetbrains.kotlin.serialization.js.ast.DebugJsAstProtoBuf.Location.getDefaultInstance();
|
||||||
|
onChanged();
|
||||||
|
} else {
|
||||||
|
locationBuilder_.clear();
|
||||||
|
}
|
||||||
|
bitField0_ = (bitField0_ & ~0x00000008);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* <code>optional .org.jetbrains.kotlin.serialization.js.ast.Location location = 4;</code>
|
||||||
|
*/
|
||||||
|
public org.jetbrains.kotlin.serialization.js.ast.DebugJsAstProtoBuf.Location.Builder getLocationBuilder() {
|
||||||
|
bitField0_ |= 0x00000008;
|
||||||
|
onChanged();
|
||||||
|
return getLocationFieldBuilder().getBuilder();
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* <code>optional .org.jetbrains.kotlin.serialization.js.ast.Location location = 4;</code>
|
||||||
|
*/
|
||||||
|
public org.jetbrains.kotlin.serialization.js.ast.DebugJsAstProtoBuf.LocationOrBuilder getLocationOrBuilder() {
|
||||||
|
if (locationBuilder_ != null) {
|
||||||
|
return locationBuilder_.getMessageOrBuilder();
|
||||||
|
} else {
|
||||||
|
return location_;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* <code>optional .org.jetbrains.kotlin.serialization.js.ast.Location location = 4;</code>
|
||||||
|
*/
|
||||||
|
private org.jetbrains.kotlin.protobuf.SingleFieldBuilder<
|
||||||
|
org.jetbrains.kotlin.serialization.js.ast.DebugJsAstProtoBuf.Location, org.jetbrains.kotlin.serialization.js.ast.DebugJsAstProtoBuf.Location.Builder, org.jetbrains.kotlin.serialization.js.ast.DebugJsAstProtoBuf.LocationOrBuilder>
|
||||||
|
getLocationFieldBuilder() {
|
||||||
|
if (locationBuilder_ == null) {
|
||||||
|
locationBuilder_ = new org.jetbrains.kotlin.protobuf.SingleFieldBuilder<
|
||||||
|
org.jetbrains.kotlin.serialization.js.ast.DebugJsAstProtoBuf.Location, org.jetbrains.kotlin.serialization.js.ast.DebugJsAstProtoBuf.Location.Builder, org.jetbrains.kotlin.serialization.js.ast.DebugJsAstProtoBuf.LocationOrBuilder>(
|
||||||
|
getLocation(),
|
||||||
|
getParentForChildren(),
|
||||||
|
isClean());
|
||||||
|
location_ = null;
|
||||||
|
}
|
||||||
|
return locationBuilder_;
|
||||||
|
}
|
||||||
|
|
||||||
// @@protoc_insertion_point(builder_scope:org.jetbrains.kotlin.serialization.js.ast.VarDeclaration)
|
// @@protoc_insertion_point(builder_scope:org.jetbrains.kotlin.serialization.js.ast.VarDeclaration)
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -34395,17 +34674,17 @@ public final class DebugJsAstProtoBuf {
|
|||||||
org.jetbrains.kotlin.protobuf.MessageOrBuilder {
|
org.jetbrains.kotlin.protobuf.MessageOrBuilder {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <code>optional .org.jetbrains.kotlin.serialization.js.ast.Vars variables = 1;</code>
|
* <code>optional .org.jetbrains.kotlin.serialization.js.ast.Statement variables = 1;</code>
|
||||||
*/
|
*/
|
||||||
boolean hasVariables();
|
boolean hasVariables();
|
||||||
/**
|
/**
|
||||||
* <code>optional .org.jetbrains.kotlin.serialization.js.ast.Vars variables = 1;</code>
|
* <code>optional .org.jetbrains.kotlin.serialization.js.ast.Statement variables = 1;</code>
|
||||||
*/
|
*/
|
||||||
org.jetbrains.kotlin.serialization.js.ast.DebugJsAstProtoBuf.Vars getVariables();
|
org.jetbrains.kotlin.serialization.js.ast.DebugJsAstProtoBuf.Statement getVariables();
|
||||||
/**
|
/**
|
||||||
* <code>optional .org.jetbrains.kotlin.serialization.js.ast.Vars variables = 1;</code>
|
* <code>optional .org.jetbrains.kotlin.serialization.js.ast.Statement variables = 1;</code>
|
||||||
*/
|
*/
|
||||||
org.jetbrains.kotlin.serialization.js.ast.DebugJsAstProtoBuf.VarsOrBuilder getVariablesOrBuilder();
|
org.jetbrains.kotlin.serialization.js.ast.DebugJsAstProtoBuf.StatementOrBuilder getVariablesOrBuilder();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <code>optional .org.jetbrains.kotlin.serialization.js.ast.Expression expression = 2;</code>
|
* <code>optional .org.jetbrains.kotlin.serialization.js.ast.Expression expression = 2;</code>
|
||||||
@@ -34525,13 +34804,13 @@ public final class DebugJsAstProtoBuf {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 10: {
|
case 10: {
|
||||||
org.jetbrains.kotlin.serialization.js.ast.DebugJsAstProtoBuf.Vars.Builder subBuilder = null;
|
org.jetbrains.kotlin.serialization.js.ast.DebugJsAstProtoBuf.Statement.Builder subBuilder = null;
|
||||||
if (initCase_ == 1) {
|
if (initCase_ == 1) {
|
||||||
subBuilder = ((org.jetbrains.kotlin.serialization.js.ast.DebugJsAstProtoBuf.Vars) init_).toBuilder();
|
subBuilder = ((org.jetbrains.kotlin.serialization.js.ast.DebugJsAstProtoBuf.Statement) init_).toBuilder();
|
||||||
}
|
}
|
||||||
init_ = input.readMessage(org.jetbrains.kotlin.serialization.js.ast.DebugJsAstProtoBuf.Vars.PARSER, extensionRegistry);
|
init_ = input.readMessage(org.jetbrains.kotlin.serialization.js.ast.DebugJsAstProtoBuf.Statement.PARSER, extensionRegistry);
|
||||||
if (subBuilder != null) {
|
if (subBuilder != null) {
|
||||||
subBuilder.mergeFrom((org.jetbrains.kotlin.serialization.js.ast.DebugJsAstProtoBuf.Vars) init_);
|
subBuilder.mergeFrom((org.jetbrains.kotlin.serialization.js.ast.DebugJsAstProtoBuf.Statement) init_);
|
||||||
init_ = subBuilder.buildPartial();
|
init_ = subBuilder.buildPartial();
|
||||||
}
|
}
|
||||||
initCase_ = 1;
|
initCase_ = 1;
|
||||||
@@ -34677,28 +34956,28 @@ public final class DebugJsAstProtoBuf {
|
|||||||
|
|
||||||
public static final int VARIABLES_FIELD_NUMBER = 1;
|
public static final int VARIABLES_FIELD_NUMBER = 1;
|
||||||
/**
|
/**
|
||||||
* <code>optional .org.jetbrains.kotlin.serialization.js.ast.Vars variables = 1;</code>
|
* <code>optional .org.jetbrains.kotlin.serialization.js.ast.Statement variables = 1;</code>
|
||||||
*/
|
*/
|
||||||
public boolean hasVariables() {
|
public boolean hasVariables() {
|
||||||
return initCase_ == 1;
|
return initCase_ == 1;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* <code>optional .org.jetbrains.kotlin.serialization.js.ast.Vars variables = 1;</code>
|
* <code>optional .org.jetbrains.kotlin.serialization.js.ast.Statement variables = 1;</code>
|
||||||
*/
|
*/
|
||||||
public org.jetbrains.kotlin.serialization.js.ast.DebugJsAstProtoBuf.Vars getVariables() {
|
public org.jetbrains.kotlin.serialization.js.ast.DebugJsAstProtoBuf.Statement getVariables() {
|
||||||
if (initCase_ == 1) {
|
if (initCase_ == 1) {
|
||||||
return (org.jetbrains.kotlin.serialization.js.ast.DebugJsAstProtoBuf.Vars) init_;
|
return (org.jetbrains.kotlin.serialization.js.ast.DebugJsAstProtoBuf.Statement) init_;
|
||||||
}
|
}
|
||||||
return org.jetbrains.kotlin.serialization.js.ast.DebugJsAstProtoBuf.Vars.getDefaultInstance();
|
return org.jetbrains.kotlin.serialization.js.ast.DebugJsAstProtoBuf.Statement.getDefaultInstance();
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* <code>optional .org.jetbrains.kotlin.serialization.js.ast.Vars variables = 1;</code>
|
* <code>optional .org.jetbrains.kotlin.serialization.js.ast.Statement variables = 1;</code>
|
||||||
*/
|
*/
|
||||||
public org.jetbrains.kotlin.serialization.js.ast.DebugJsAstProtoBuf.VarsOrBuilder getVariablesOrBuilder() {
|
public org.jetbrains.kotlin.serialization.js.ast.DebugJsAstProtoBuf.StatementOrBuilder getVariablesOrBuilder() {
|
||||||
if (initCase_ == 1) {
|
if (initCase_ == 1) {
|
||||||
return (org.jetbrains.kotlin.serialization.js.ast.DebugJsAstProtoBuf.Vars) init_;
|
return (org.jetbrains.kotlin.serialization.js.ast.DebugJsAstProtoBuf.Statement) init_;
|
||||||
}
|
}
|
||||||
return org.jetbrains.kotlin.serialization.js.ast.DebugJsAstProtoBuf.Vars.getDefaultInstance();
|
return org.jetbrains.kotlin.serialization.js.ast.DebugJsAstProtoBuf.Statement.getDefaultInstance();
|
||||||
}
|
}
|
||||||
|
|
||||||
public static final int EXPRESSION_FIELD_NUMBER = 2;
|
public static final int EXPRESSION_FIELD_NUMBER = 2;
|
||||||
@@ -34867,7 +35146,7 @@ public final class DebugJsAstProtoBuf {
|
|||||||
throws java.io.IOException {
|
throws java.io.IOException {
|
||||||
getSerializedSize();
|
getSerializedSize();
|
||||||
if (initCase_ == 1) {
|
if (initCase_ == 1) {
|
||||||
output.writeMessage(1, (org.jetbrains.kotlin.serialization.js.ast.DebugJsAstProtoBuf.Vars) init_);
|
output.writeMessage(1, (org.jetbrains.kotlin.serialization.js.ast.DebugJsAstProtoBuf.Statement) init_);
|
||||||
}
|
}
|
||||||
if (initCase_ == 2) {
|
if (initCase_ == 2) {
|
||||||
output.writeMessage(2, (org.jetbrains.kotlin.serialization.js.ast.DebugJsAstProtoBuf.Expression) init_);
|
output.writeMessage(2, (org.jetbrains.kotlin.serialization.js.ast.DebugJsAstProtoBuf.Expression) init_);
|
||||||
@@ -34895,7 +35174,7 @@ public final class DebugJsAstProtoBuf {
|
|||||||
size = 0;
|
size = 0;
|
||||||
if (initCase_ == 1) {
|
if (initCase_ == 1) {
|
||||||
size += org.jetbrains.kotlin.protobuf.CodedOutputStream
|
size += org.jetbrains.kotlin.protobuf.CodedOutputStream
|
||||||
.computeMessageSize(1, (org.jetbrains.kotlin.serialization.js.ast.DebugJsAstProtoBuf.Vars) init_);
|
.computeMessageSize(1, (org.jetbrains.kotlin.serialization.js.ast.DebugJsAstProtoBuf.Statement) init_);
|
||||||
}
|
}
|
||||||
if (initCase_ == 2) {
|
if (initCase_ == 2) {
|
||||||
size += org.jetbrains.kotlin.protobuf.CodedOutputStream
|
size += org.jetbrains.kotlin.protobuf.CodedOutputStream
|
||||||
@@ -35248,33 +35527,33 @@ public final class DebugJsAstProtoBuf {
|
|||||||
private int bitField0_;
|
private int bitField0_;
|
||||||
|
|
||||||
private org.jetbrains.kotlin.protobuf.SingleFieldBuilder<
|
private org.jetbrains.kotlin.protobuf.SingleFieldBuilder<
|
||||||
org.jetbrains.kotlin.serialization.js.ast.DebugJsAstProtoBuf.Vars, org.jetbrains.kotlin.serialization.js.ast.DebugJsAstProtoBuf.Vars.Builder, org.jetbrains.kotlin.serialization.js.ast.DebugJsAstProtoBuf.VarsOrBuilder> variablesBuilder_;
|
org.jetbrains.kotlin.serialization.js.ast.DebugJsAstProtoBuf.Statement, org.jetbrains.kotlin.serialization.js.ast.DebugJsAstProtoBuf.Statement.Builder, org.jetbrains.kotlin.serialization.js.ast.DebugJsAstProtoBuf.StatementOrBuilder> variablesBuilder_;
|
||||||
/**
|
/**
|
||||||
* <code>optional .org.jetbrains.kotlin.serialization.js.ast.Vars variables = 1;</code>
|
* <code>optional .org.jetbrains.kotlin.serialization.js.ast.Statement variables = 1;</code>
|
||||||
*/
|
*/
|
||||||
public boolean hasVariables() {
|
public boolean hasVariables() {
|
||||||
return initCase_ == 1;
|
return initCase_ == 1;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* <code>optional .org.jetbrains.kotlin.serialization.js.ast.Vars variables = 1;</code>
|
* <code>optional .org.jetbrains.kotlin.serialization.js.ast.Statement variables = 1;</code>
|
||||||
*/
|
*/
|
||||||
public org.jetbrains.kotlin.serialization.js.ast.DebugJsAstProtoBuf.Vars getVariables() {
|
public org.jetbrains.kotlin.serialization.js.ast.DebugJsAstProtoBuf.Statement getVariables() {
|
||||||
if (variablesBuilder_ == null) {
|
if (variablesBuilder_ == null) {
|
||||||
if (initCase_ == 1) {
|
if (initCase_ == 1) {
|
||||||
return (org.jetbrains.kotlin.serialization.js.ast.DebugJsAstProtoBuf.Vars) init_;
|
return (org.jetbrains.kotlin.serialization.js.ast.DebugJsAstProtoBuf.Statement) init_;
|
||||||
}
|
}
|
||||||
return org.jetbrains.kotlin.serialization.js.ast.DebugJsAstProtoBuf.Vars.getDefaultInstance();
|
return org.jetbrains.kotlin.serialization.js.ast.DebugJsAstProtoBuf.Statement.getDefaultInstance();
|
||||||
} else {
|
} else {
|
||||||
if (initCase_ == 1) {
|
if (initCase_ == 1) {
|
||||||
return variablesBuilder_.getMessage();
|
return variablesBuilder_.getMessage();
|
||||||
}
|
}
|
||||||
return org.jetbrains.kotlin.serialization.js.ast.DebugJsAstProtoBuf.Vars.getDefaultInstance();
|
return org.jetbrains.kotlin.serialization.js.ast.DebugJsAstProtoBuf.Statement.getDefaultInstance();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* <code>optional .org.jetbrains.kotlin.serialization.js.ast.Vars variables = 1;</code>
|
* <code>optional .org.jetbrains.kotlin.serialization.js.ast.Statement variables = 1;</code>
|
||||||
*/
|
*/
|
||||||
public Builder setVariables(org.jetbrains.kotlin.serialization.js.ast.DebugJsAstProtoBuf.Vars value) {
|
public Builder setVariables(org.jetbrains.kotlin.serialization.js.ast.DebugJsAstProtoBuf.Statement value) {
|
||||||
if (variablesBuilder_ == null) {
|
if (variablesBuilder_ == null) {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
throw new NullPointerException();
|
throw new NullPointerException();
|
||||||
@@ -35288,10 +35567,10 @@ public final class DebugJsAstProtoBuf {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* <code>optional .org.jetbrains.kotlin.serialization.js.ast.Vars variables = 1;</code>
|
* <code>optional .org.jetbrains.kotlin.serialization.js.ast.Statement variables = 1;</code>
|
||||||
*/
|
*/
|
||||||
public Builder setVariables(
|
public Builder setVariables(
|
||||||
org.jetbrains.kotlin.serialization.js.ast.DebugJsAstProtoBuf.Vars.Builder builderForValue) {
|
org.jetbrains.kotlin.serialization.js.ast.DebugJsAstProtoBuf.Statement.Builder builderForValue) {
|
||||||
if (variablesBuilder_ == null) {
|
if (variablesBuilder_ == null) {
|
||||||
init_ = builderForValue.build();
|
init_ = builderForValue.build();
|
||||||
onChanged();
|
onChanged();
|
||||||
@@ -35302,13 +35581,13 @@ public final class DebugJsAstProtoBuf {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* <code>optional .org.jetbrains.kotlin.serialization.js.ast.Vars variables = 1;</code>
|
* <code>optional .org.jetbrains.kotlin.serialization.js.ast.Statement variables = 1;</code>
|
||||||
*/
|
*/
|
||||||
public Builder mergeVariables(org.jetbrains.kotlin.serialization.js.ast.DebugJsAstProtoBuf.Vars value) {
|
public Builder mergeVariables(org.jetbrains.kotlin.serialization.js.ast.DebugJsAstProtoBuf.Statement value) {
|
||||||
if (variablesBuilder_ == null) {
|
if (variablesBuilder_ == null) {
|
||||||
if (initCase_ == 1 &&
|
if (initCase_ == 1 &&
|
||||||
init_ != org.jetbrains.kotlin.serialization.js.ast.DebugJsAstProtoBuf.Vars.getDefaultInstance()) {
|
init_ != org.jetbrains.kotlin.serialization.js.ast.DebugJsAstProtoBuf.Statement.getDefaultInstance()) {
|
||||||
init_ = org.jetbrains.kotlin.serialization.js.ast.DebugJsAstProtoBuf.Vars.newBuilder((org.jetbrains.kotlin.serialization.js.ast.DebugJsAstProtoBuf.Vars) init_)
|
init_ = org.jetbrains.kotlin.serialization.js.ast.DebugJsAstProtoBuf.Statement.newBuilder((org.jetbrains.kotlin.serialization.js.ast.DebugJsAstProtoBuf.Statement) init_)
|
||||||
.mergeFrom(value).buildPartial();
|
.mergeFrom(value).buildPartial();
|
||||||
} else {
|
} else {
|
||||||
init_ = value;
|
init_ = value;
|
||||||
@@ -35324,7 +35603,7 @@ public final class DebugJsAstProtoBuf {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* <code>optional .org.jetbrains.kotlin.serialization.js.ast.Vars variables = 1;</code>
|
* <code>optional .org.jetbrains.kotlin.serialization.js.ast.Statement variables = 1;</code>
|
||||||
*/
|
*/
|
||||||
public Builder clearVariables() {
|
public Builder clearVariables() {
|
||||||
if (variablesBuilder_ == null) {
|
if (variablesBuilder_ == null) {
|
||||||
@@ -35343,37 +35622,37 @@ public final class DebugJsAstProtoBuf {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* <code>optional .org.jetbrains.kotlin.serialization.js.ast.Vars variables = 1;</code>
|
* <code>optional .org.jetbrains.kotlin.serialization.js.ast.Statement variables = 1;</code>
|
||||||
*/
|
*/
|
||||||
public org.jetbrains.kotlin.serialization.js.ast.DebugJsAstProtoBuf.Vars.Builder getVariablesBuilder() {
|
public org.jetbrains.kotlin.serialization.js.ast.DebugJsAstProtoBuf.Statement.Builder getVariablesBuilder() {
|
||||||
return getVariablesFieldBuilder().getBuilder();
|
return getVariablesFieldBuilder().getBuilder();
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* <code>optional .org.jetbrains.kotlin.serialization.js.ast.Vars variables = 1;</code>
|
* <code>optional .org.jetbrains.kotlin.serialization.js.ast.Statement variables = 1;</code>
|
||||||
*/
|
*/
|
||||||
public org.jetbrains.kotlin.serialization.js.ast.DebugJsAstProtoBuf.VarsOrBuilder getVariablesOrBuilder() {
|
public org.jetbrains.kotlin.serialization.js.ast.DebugJsAstProtoBuf.StatementOrBuilder getVariablesOrBuilder() {
|
||||||
if ((initCase_ == 1) && (variablesBuilder_ != null)) {
|
if ((initCase_ == 1) && (variablesBuilder_ != null)) {
|
||||||
return variablesBuilder_.getMessageOrBuilder();
|
return variablesBuilder_.getMessageOrBuilder();
|
||||||
} else {
|
} else {
|
||||||
if (initCase_ == 1) {
|
if (initCase_ == 1) {
|
||||||
return (org.jetbrains.kotlin.serialization.js.ast.DebugJsAstProtoBuf.Vars) init_;
|
return (org.jetbrains.kotlin.serialization.js.ast.DebugJsAstProtoBuf.Statement) init_;
|
||||||
}
|
}
|
||||||
return org.jetbrains.kotlin.serialization.js.ast.DebugJsAstProtoBuf.Vars.getDefaultInstance();
|
return org.jetbrains.kotlin.serialization.js.ast.DebugJsAstProtoBuf.Statement.getDefaultInstance();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* <code>optional .org.jetbrains.kotlin.serialization.js.ast.Vars variables = 1;</code>
|
* <code>optional .org.jetbrains.kotlin.serialization.js.ast.Statement variables = 1;</code>
|
||||||
*/
|
*/
|
||||||
private org.jetbrains.kotlin.protobuf.SingleFieldBuilder<
|
private org.jetbrains.kotlin.protobuf.SingleFieldBuilder<
|
||||||
org.jetbrains.kotlin.serialization.js.ast.DebugJsAstProtoBuf.Vars, org.jetbrains.kotlin.serialization.js.ast.DebugJsAstProtoBuf.Vars.Builder, org.jetbrains.kotlin.serialization.js.ast.DebugJsAstProtoBuf.VarsOrBuilder>
|
org.jetbrains.kotlin.serialization.js.ast.DebugJsAstProtoBuf.Statement, org.jetbrains.kotlin.serialization.js.ast.DebugJsAstProtoBuf.Statement.Builder, org.jetbrains.kotlin.serialization.js.ast.DebugJsAstProtoBuf.StatementOrBuilder>
|
||||||
getVariablesFieldBuilder() {
|
getVariablesFieldBuilder() {
|
||||||
if (variablesBuilder_ == null) {
|
if (variablesBuilder_ == null) {
|
||||||
if (!(initCase_ == 1)) {
|
if (!(initCase_ == 1)) {
|
||||||
init_ = org.jetbrains.kotlin.serialization.js.ast.DebugJsAstProtoBuf.Vars.getDefaultInstance();
|
init_ = org.jetbrains.kotlin.serialization.js.ast.DebugJsAstProtoBuf.Statement.getDefaultInstance();
|
||||||
}
|
}
|
||||||
variablesBuilder_ = new org.jetbrains.kotlin.protobuf.SingleFieldBuilder<
|
variablesBuilder_ = new org.jetbrains.kotlin.protobuf.SingleFieldBuilder<
|
||||||
org.jetbrains.kotlin.serialization.js.ast.DebugJsAstProtoBuf.Vars, org.jetbrains.kotlin.serialization.js.ast.DebugJsAstProtoBuf.Vars.Builder, org.jetbrains.kotlin.serialization.js.ast.DebugJsAstProtoBuf.VarsOrBuilder>(
|
org.jetbrains.kotlin.serialization.js.ast.DebugJsAstProtoBuf.Statement, org.jetbrains.kotlin.serialization.js.ast.DebugJsAstProtoBuf.Statement.Builder, org.jetbrains.kotlin.serialization.js.ast.DebugJsAstProtoBuf.StatementOrBuilder>(
|
||||||
(org.jetbrains.kotlin.serialization.js.ast.DebugJsAstProtoBuf.Vars) init_,
|
(org.jetbrains.kotlin.serialization.js.ast.DebugJsAstProtoBuf.Statement) init_,
|
||||||
getParentForChildren(),
|
getParentForChildren(),
|
||||||
isClean());
|
isClean());
|
||||||
init_ = null;
|
init_ = null;
|
||||||
@@ -48552,110 +48831,113 @@ public final class DebugJsAstProtoBuf {
|
|||||||
"Vars\022N\n\013declaration\030\001 \003(\01329.org.jetbrain" +
|
"Vars\022N\n\013declaration\030\001 \003(\01329.org.jetbrain" +
|
||||||
"s.kotlin.serialization.js.ast.VarDeclara" +
|
"s.kotlin.serialization.js.ast.VarDeclara" +
|
||||||
"tion\022\030\n\tmultiline\030\002 \001(\010:\005false\022\033\n\023export" +
|
"tion\022\030\n\tmultiline\030\002 \001(\010:\005false\022\033\n\023export" +
|
||||||
"ed_package_id\030\003 \001(\005\"o\n\016VarDeclaration\022\017\n" +
|
"ed_package_id\030\003 \001(\005\"\306\001\n\016VarDeclaration\022\017" +
|
||||||
"\007name_id\030\001 \002(\005\022L\n\rinitial_value\030\002 \001(\01325." +
|
"\n\007name_id\030\001 \002(\005\022L\n\rinitial_value\030\002 \001(\01325" +
|
||||||
"org.jetbrains.kotlin.serialization.js.as" +
|
|
||||||
"t.Expression\"P\n\005Block\022G\n\tstatement\030\001 \003(\013" +
|
|
||||||
"24.org.jetbrains.kotlin.serialization.js",
|
|
||||||
".ast.Statement\"V\n\013GlobalBlock\022G\n\tstateme" +
|
|
||||||
"nt\030\001 \003(\01324.org.jetbrains.kotlin.serializ" +
|
|
||||||
"ation.js.ast.Statement\"f\n\005Label\022\016\n\006nameI" +
|
|
||||||
"d\030\001 \002(\005\022M\n\017inner_statement\030\002 \002(\01324.org.j" +
|
|
||||||
"etbrains.kotlin.serialization.js.ast.Sta" +
|
|
||||||
"tement\"\352\001\n\002If\022H\n\tcondition\030\001 \002(\01325.org.j" +
|
|
||||||
"etbrains.kotlin.serialization.js.ast.Exp" +
|
|
||||||
"ression\022L\n\016then_statement\030\002 \002(\01324.org.je" +
|
|
||||||
"tbrains.kotlin.serialization.js.ast.Stat" +
|
|
||||||
"ement\022L\n\016else_statement\030\003 \001(\01324.org.jetb",
|
|
||||||
"rains.kotlin.serialization.js.ast.Statem" +
|
|
||||||
"ent\"\232\001\n\006Switch\022I\n\nexpression\030\001 \002(\01325.org" +
|
|
||||||
".jetbrains.kotlin.serialization.js.ast.E" +
|
|
||||||
"xpression\022E\n\005entry\030\002 \003(\01326.org.jetbrains" +
|
|
||||||
".kotlin.serialization.js.ast.SwitchEntry" +
|
|
||||||
"\"\234\001\n\013SwitchEntry\022D\n\005label\030\001 \001(\01325.org.je" +
|
|
||||||
"tbrains.kotlin.serialization.js.ast.Expr" +
|
|
||||||
"ession\022G\n\tstatement\030\002 \003(\01324.org.jetbrain" +
|
|
||||||
"s.kotlin.serialization.js.ast.Statement\"" +
|
|
||||||
"\225\001\n\005While\022H\n\tcondition\030\001 \002(\01325.org.jetbr",
|
|
||||||
"ains.kotlin.serialization.js.ast.Express" +
|
|
||||||
"ion\022B\n\004body\030\002 \002(\01324.org.jetbrains.kotlin" +
|
|
||||||
".serialization.js.ast.Statement\"\227\001\n\007DoWh" +
|
|
||||||
"ile\022H\n\tcondition\030\001 \002(\01325.org.jetbrains.k" +
|
|
||||||
"otlin.serialization.js.ast.Expression\022B\n" +
|
|
||||||
"\004body\030\002 \002(\01324.org.jetbrains.kotlin.seria" +
|
|
||||||
"lization.js.ast.Statement\"\277\003\n\003For\022D\n\tvar" +
|
|
||||||
"iables\030\001 \001(\0132/.org.jetbrains.kotlin.seri" +
|
|
||||||
"alization.js.ast.VarsH\000\022K\n\nexpression\030\002 " +
|
|
||||||
"\001(\01325.org.jetbrains.kotlin.serialization",
|
|
||||||
".js.ast.ExpressionH\000\022E\n\005empty\030\003 \001(\01324.or" +
|
|
||||||
"g.jetbrains.kotlin.serialization.js.ast." +
|
|
||||||
"EmptyInitH\000\022H\n\tcondition\030\004 \001(\01325.org.jet" +
|
|
||||||
"brains.kotlin.serialization.js.ast.Expre" +
|
|
||||||
"ssion\022H\n\tincrement\030\005 \001(\01325.org.jetbrains" +
|
|
||||||
".kotlin.serialization.js.ast.Expression\022" +
|
|
||||||
"B\n\004body\030\006 \002(\01324.org.jetbrains.kotlin.ser" +
|
|
||||||
"ialization.js.ast.StatementB\006\n\004init\"\013\n\tE" +
|
|
||||||
"mptyInit\"\374\001\n\005ForIn\022\020\n\006nameId\030\001 \001(\005H\000\022K\n\n" +
|
|
||||||
"expression\030\002 \001(\01325.org.jetbrains.kotlin.",
|
|
||||||
"serialization.js.ast.ExpressionH\000\022G\n\010ite" +
|
|
||||||
"rable\030\003 \002(\01325.org.jetbrains.kotlin.seria" +
|
|
||||||
"lization.js.ast.Expression\022B\n\004body\030\004 \002(\013" +
|
|
||||||
"24.org.jetbrains.kotlin.serialization.js" +
|
|
||||||
".ast.StatementB\007\n\005value\"\337\001\n\003Try\022F\n\010tryBl" +
|
|
||||||
"ock\030\001 \002(\01324.org.jetbrains.kotlin.seriali" +
|
|
||||||
"zation.js.ast.Statement\022D\n\ncatchBlock\030\002 " +
|
|
||||||
"\001(\01320.org.jetbrains.kotlin.serialization" +
|
|
||||||
".js.ast.Catch\022J\n\014finallyBlock\030\003 \001(\01324.or" +
|
|
||||||
"g.jetbrains.kotlin.serialization.js.ast.",
|
|
||||||
"Statement\"\224\001\n\005Catch\022G\n\tparameter\030\001 \002(\01324" +
|
|
||||||
".org.jetbrains.kotlin.serialization.js.a" +
|
".org.jetbrains.kotlin.serialization.js.a" +
|
||||||
"st.Parameter\022B\n\004body\030\002 \002(\01324.org.jetbrai" +
|
"st.Expression\022\016\n\006fileId\030\003 \001(\005\022E\n\010locatio" +
|
||||||
"ns.kotlin.serialization.js.ast.Statement" +
|
"n\030\004 \001(\01323.org.jetbrains.kotlin.serializa",
|
||||||
"\"\007\n\005Empty\"\327\005\n\010Fragment\022R\n\017imported_modul" +
|
"tion.js.ast.Location\"P\n\005Block\022G\n\tstateme" +
|
||||||
"e\030\001 \003(\01329.org.jetbrains.kotlin.serializa" +
|
"nt\030\001 \003(\01324.org.jetbrains.kotlin.serializ" +
|
||||||
"tion.js.ast.ImportedModule\022G\n\014import_ent" +
|
"ation.js.ast.Statement\"V\n\013GlobalBlock\022G\n" +
|
||||||
"ry\030\002 \003(\01321.org.jetbrains.kotlin.serializ" +
|
"\tstatement\030\001 \003(\01324.org.jetbrains.kotlin." +
|
||||||
"ation.js.ast.Import\022Q\n\021declaration_block" +
|
"serialization.js.ast.Statement\"f\n\005Label\022" +
|
||||||
"\030\003 \001(\01326.org.jetbrains.kotlin.serializat",
|
"\016\n\006nameId\030\001 \002(\005\022M\n\017inner_statement\030\002 \002(\013" +
|
||||||
"ion.js.ast.GlobalBlock\022L\n\014export_block\030\004" +
|
"24.org.jetbrains.kotlin.serialization.js" +
|
||||||
" \001(\01326.org.jetbrains.kotlin.serializatio" +
|
".ast.Statement\"\352\001\n\002If\022H\n\tcondition\030\001 \002(\013" +
|
||||||
"n.js.ast.GlobalBlock\022Q\n\021initializer_bloc" +
|
"25.org.jetbrains.kotlin.serialization.js" +
|
||||||
"k\030\005 \001(\01326.org.jetbrains.kotlin.serializa" +
|
".ast.Expression\022L\n\016then_statement\030\002 \002(\0132",
|
||||||
"tion.js.ast.GlobalBlock\022L\n\014name_binding\030" +
|
"4.org.jetbrains.kotlin.serialization.js." +
|
||||||
"\006 \003(\01326.org.jetbrains.kotlin.serializati" +
|
"ast.Statement\022L\n\016else_statement\030\003 \001(\01324." +
|
||||||
"on.js.ast.NameBinding\022J\n\013class_model\030\007 \003" +
|
"org.jetbrains.kotlin.serialization.js.as" +
|
||||||
|
"t.Statement\"\232\001\n\006Switch\022I\n\nexpression\030\001 \002" +
|
||||||
"(\01325.org.jetbrains.kotlin.serialization." +
|
"(\01325.org.jetbrains.kotlin.serialization." +
|
||||||
"js.ast.ClassModel\022P\n\021module_expression\030\010" +
|
"js.ast.Expression\022E\n\005entry\030\002 \003(\01326.org.j" +
|
||||||
" \003(\01325.org.jetbrains.kotlin.serializatio",
|
"etbrains.kotlin.serialization.js.ast.Swi" +
|
||||||
"n.js.ast.Expression\022N\n\rinline_module\030\t \003" +
|
"tchEntry\"\234\001\n\013SwitchEntry\022D\n\005label\030\001 \001(\0132" +
|
||||||
"(\01327.org.jetbrains.kotlin.serialization." +
|
"5.org.jetbrains.kotlin.serialization.js." +
|
||||||
"js.ast.InlineModule\"\224\001\n\016ImportedModule\022\030" +
|
"ast.Expression\022G\n\tstatement\030\002 \003(\01324.org.",
|
||||||
"\n\020external_name_id\030\001 \002(\005\022\030\n\020internal_nam" +
|
"jetbrains.kotlin.serialization.js.ast.St" +
|
||||||
"e_id\030\002 \002(\005\022N\n\017plain_reference\030\003 \001(\01325.or" +
|
"atement\"\225\001\n\005While\022H\n\tcondition\030\001 \002(\01325.o" +
|
||||||
"g.jetbrains.kotlin.serialization.js.ast." +
|
|
||||||
"Expression\"i\n\006Import\022\024\n\014signature_id\030\001 \002" +
|
|
||||||
"(\005\022I\n\nexpression\030\002 \002(\01325.org.jetbrains.k" +
|
|
||||||
"otlin.serialization.js.ast.Expression\"3\n" +
|
|
||||||
"\013NameBinding\022\024\n\014signature_id\030\001 \002(\005\022\016\n\006na",
|
|
||||||
"meId\030\002 \002(\005\"\214\001\n\nClassModel\022\017\n\007name_id\030\001 \002" +
|
|
||||||
"(\005\022\025\n\rsuper_name_id\030\002 \001(\005\022V\n\026post_declar" +
|
|
||||||
"ation_block\030\003 \001(\01326.org.jetbrains.kotlin" +
|
|
||||||
".serialization.js.ast.GlobalBlock\";\n\014Inl" +
|
|
||||||
"ineModule\022\024\n\014signature_id\030\001 \002(\005\022\025\n\rexpre" +
|
|
||||||
"ssion_id\030\002 \002(\005\"\034\n\013StringTable\022\r\n\005entry\030\001" +
|
|
||||||
" \003(\t\"K\n\tNameTable\022>\n\005entry\030\001 \003(\0132/.org.j" +
|
|
||||||
"etbrains.kotlin.serialization.js.ast.Nam" +
|
|
||||||
"e\"-\n\004Name\022\021\n\ttemporary\030\001 \002(\010\022\022\n\nidentifi" +
|
|
||||||
"er\030\002 \001(\005\"\346\001\n\005Chunk\022L\n\014string_table\030\001 \002(\013",
|
|
||||||
"26.org.jetbrains.kotlin.serialization.js" +
|
|
||||||
".ast.StringTable\022H\n\nname_table\030\002 \002(\01324.o" +
|
|
||||||
"rg.jetbrains.kotlin.serialization.js.ast" +
|
"rg.jetbrains.kotlin.serialization.js.ast" +
|
||||||
".NameTable\022E\n\010fragment\030\003 \002(\01323.org.jetbr" +
|
".Expression\022B\n\004body\030\002 \002(\01324.org.jetbrain" +
|
||||||
"ains.kotlin.serialization.js.ast.Fragmen" +
|
"s.kotlin.serialization.js.ast.Statement\"" +
|
||||||
"t*@\n\013SideEffects\022\021\n\rAFFECTS_STATE\020\001\022\024\n\020D" +
|
"\227\001\n\007DoWhile\022H\n\tcondition\030\001 \002(\01325.org.jet" +
|
||||||
"EPENDS_ON_STATE\020\002\022\010\n\004PURE\020\003*?\n\016InlineStr" +
|
"brains.kotlin.serialization.js.ast.Expre" +
|
||||||
"ategy\022\017\n\013AS_FUNCTION\020\000\022\014\n\010IN_PLACE\020\001\022\016\n\n" +
|
"ssion\022B\n\004body\030\002 \002(\01324.org.jetbrains.kotl" +
|
||||||
"NOT_INLINE\020\002B\024B\022DebugJsAstProtoBuf"
|
"in.serialization.js.ast.Statement\"\304\003\n\003Fo" +
|
||||||
|
"r\022I\n\tvariables\030\001 \001(\01324.org.jetbrains.kot",
|
||||||
|
"lin.serialization.js.ast.StatementH\000\022K\n\n" +
|
||||||
|
"expression\030\002 \001(\01325.org.jetbrains.kotlin." +
|
||||||
|
"serialization.js.ast.ExpressionH\000\022E\n\005emp" +
|
||||||
|
"ty\030\003 \001(\01324.org.jetbrains.kotlin.serializ" +
|
||||||
|
"ation.js.ast.EmptyInitH\000\022H\n\tcondition\030\004 " +
|
||||||
|
"\001(\01325.org.jetbrains.kotlin.serialization" +
|
||||||
|
".js.ast.Expression\022H\n\tincrement\030\005 \001(\01325." +
|
||||||
|
"org.jetbrains.kotlin.serialization.js.as" +
|
||||||
|
"t.Expression\022B\n\004body\030\006 \002(\01324.org.jetbrai" +
|
||||||
|
"ns.kotlin.serialization.js.ast.Statement",
|
||||||
|
"B\006\n\004init\"\013\n\tEmptyInit\"\374\001\n\005ForIn\022\020\n\006nameI" +
|
||||||
|
"d\030\001 \001(\005H\000\022K\n\nexpression\030\002 \001(\01325.org.jetb" +
|
||||||
|
"rains.kotlin.serialization.js.ast.Expres" +
|
||||||
|
"sionH\000\022G\n\010iterable\030\003 \002(\01325.org.jetbrains" +
|
||||||
|
".kotlin.serialization.js.ast.Expression\022" +
|
||||||
|
"B\n\004body\030\004 \002(\01324.org.jetbrains.kotlin.ser" +
|
||||||
|
"ialization.js.ast.StatementB\007\n\005value\"\337\001\n" +
|
||||||
|
"\003Try\022F\n\010tryBlock\030\001 \002(\01324.org.jetbrains.k" +
|
||||||
|
"otlin.serialization.js.ast.Statement\022D\n\n" +
|
||||||
|
"catchBlock\030\002 \001(\01320.org.jetbrains.kotlin.",
|
||||||
|
"serialization.js.ast.Catch\022J\n\014finallyBlo" +
|
||||||
|
"ck\030\003 \001(\01324.org.jetbrains.kotlin.serializ" +
|
||||||
|
"ation.js.ast.Statement\"\224\001\n\005Catch\022G\n\tpara" +
|
||||||
|
"meter\030\001 \002(\01324.org.jetbrains.kotlin.seria" +
|
||||||
|
"lization.js.ast.Parameter\022B\n\004body\030\002 \002(\0132" +
|
||||||
|
"4.org.jetbrains.kotlin.serialization.js." +
|
||||||
|
"ast.Statement\"\007\n\005Empty\"\327\005\n\010Fragment\022R\n\017i" +
|
||||||
|
"mported_module\030\001 \003(\01329.org.jetbrains.kot" +
|
||||||
|
"lin.serialization.js.ast.ImportedModule\022" +
|
||||||
|
"G\n\014import_entry\030\002 \003(\01321.org.jetbrains.ko",
|
||||||
|
"tlin.serialization.js.ast.Import\022Q\n\021decl" +
|
||||||
|
"aration_block\030\003 \001(\01326.org.jetbrains.kotl" +
|
||||||
|
"in.serialization.js.ast.GlobalBlock\022L\n\014e" +
|
||||||
|
"xport_block\030\004 \001(\01326.org.jetbrains.kotlin" +
|
||||||
|
".serialization.js.ast.GlobalBlock\022Q\n\021ini" +
|
||||||
|
"tializer_block\030\005 \001(\01326.org.jetbrains.kot" +
|
||||||
|
"lin.serialization.js.ast.GlobalBlock\022L\n\014" +
|
||||||
|
"name_binding\030\006 \003(\01326.org.jetbrains.kotli" +
|
||||||
|
"n.serialization.js.ast.NameBinding\022J\n\013cl" +
|
||||||
|
"ass_model\030\007 \003(\01325.org.jetbrains.kotlin.s",
|
||||||
|
"erialization.js.ast.ClassModel\022P\n\021module" +
|
||||||
|
"_expression\030\010 \003(\01325.org.jetbrains.kotlin" +
|
||||||
|
".serialization.js.ast.Expression\022N\n\rinli" +
|
||||||
|
"ne_module\030\t \003(\01327.org.jetbrains.kotlin.s" +
|
||||||
|
"erialization.js.ast.InlineModule\"\224\001\n\016Imp" +
|
||||||
|
"ortedModule\022\030\n\020external_name_id\030\001 \002(\005\022\030\n" +
|
||||||
|
"\020internal_name_id\030\002 \002(\005\022N\n\017plain_referen" +
|
||||||
|
"ce\030\003 \001(\01325.org.jetbrains.kotlin.serializ" +
|
||||||
|
"ation.js.ast.Expression\"i\n\006Import\022\024\n\014sig" +
|
||||||
|
"nature_id\030\001 \002(\005\022I\n\nexpression\030\002 \002(\01325.or",
|
||||||
|
"g.jetbrains.kotlin.serialization.js.ast." +
|
||||||
|
"Expression\"3\n\013NameBinding\022\024\n\014signature_i" +
|
||||||
|
"d\030\001 \002(\005\022\016\n\006nameId\030\002 \002(\005\"\214\001\n\nClassModel\022\017" +
|
||||||
|
"\n\007name_id\030\001 \002(\005\022\025\n\rsuper_name_id\030\002 \001(\005\022V" +
|
||||||
|
"\n\026post_declaration_block\030\003 \001(\01326.org.jet" +
|
||||||
|
"brains.kotlin.serialization.js.ast.Globa" +
|
||||||
|
"lBlock\";\n\014InlineModule\022\024\n\014signature_id\030\001" +
|
||||||
|
" \002(\005\022\025\n\rexpression_id\030\002 \002(\005\"\034\n\013StringTab" +
|
||||||
|
"le\022\r\n\005entry\030\001 \003(\t\"K\n\tNameTable\022>\n\005entry\030" +
|
||||||
|
"\001 \003(\0132/.org.jetbrains.kotlin.serializati",
|
||||||
|
"on.js.ast.Name\"-\n\004Name\022\021\n\ttemporary\030\001 \002(" +
|
||||||
|
"\010\022\022\n\nidentifier\030\002 \001(\005\"\346\001\n\005Chunk\022L\n\014strin" +
|
||||||
|
"g_table\030\001 \002(\01326.org.jetbrains.kotlin.ser" +
|
||||||
|
"ialization.js.ast.StringTable\022H\n\nname_ta" +
|
||||||
|
"ble\030\002 \002(\01324.org.jetbrains.kotlin.seriali" +
|
||||||
|
"zation.js.ast.NameTable\022E\n\010fragment\030\003 \002(" +
|
||||||
|
"\01323.org.jetbrains.kotlin.serialization.j" +
|
||||||
|
"s.ast.Fragment*@\n\013SideEffects\022\021\n\rAFFECTS" +
|
||||||
|
"_STATE\020\001\022\024\n\020DEPENDS_ON_STATE\020\002\022\010\n\004PURE\020\003" +
|
||||||
|
"*?\n\016InlineStrategy\022\017\n\013AS_FUNCTION\020\000\022\014\n\010I",
|
||||||
|
"N_PLACE\020\001\022\016\n\nNOT_INLINE\020\002B\024B\022DebugJsAstP" +
|
||||||
|
"rotoBuf"
|
||||||
};
|
};
|
||||||
org.jetbrains.kotlin.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
|
org.jetbrains.kotlin.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
|
||||||
new org.jetbrains.kotlin.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
|
new org.jetbrains.kotlin.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
|
||||||
@@ -48854,7 +49136,7 @@ public final class DebugJsAstProtoBuf {
|
|||||||
internal_static_org_jetbrains_kotlin_serialization_js_ast_VarDeclaration_fieldAccessorTable = new
|
internal_static_org_jetbrains_kotlin_serialization_js_ast_VarDeclaration_fieldAccessorTable = new
|
||||||
org.jetbrains.kotlin.protobuf.GeneratedMessage.FieldAccessorTable(
|
org.jetbrains.kotlin.protobuf.GeneratedMessage.FieldAccessorTable(
|
||||||
internal_static_org_jetbrains_kotlin_serialization_js_ast_VarDeclaration_descriptor,
|
internal_static_org_jetbrains_kotlin_serialization_js_ast_VarDeclaration_descriptor,
|
||||||
new java.lang.String[] { "NameId", "InitialValue", });
|
new java.lang.String[] { "NameId", "InitialValue", "FileId", "Location", });
|
||||||
internal_static_org_jetbrains_kotlin_serialization_js_ast_Block_descriptor =
|
internal_static_org_jetbrains_kotlin_serialization_js_ast_Block_descriptor =
|
||||||
getDescriptor().getMessageTypes().get(31);
|
getDescriptor().getMessageTypes().get(31);
|
||||||
internal_static_org_jetbrains_kotlin_serialization_js_ast_Block_fieldAccessorTable = new
|
internal_static_org_jetbrains_kotlin_serialization_js_ast_Block_fieldAccessorTable = new
|
||||||
|
|||||||
@@ -282,6 +282,8 @@ message Vars {
|
|||||||
message VarDeclaration {
|
message VarDeclaration {
|
||||||
required int32 name_id = 1;
|
required int32 name_id = 1;
|
||||||
optional Expression initial_value = 2;
|
optional Expression initial_value = 2;
|
||||||
|
optional int32 fileId = 3;
|
||||||
|
optional Location location = 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
message Block {
|
message Block {
|
||||||
@@ -325,7 +327,7 @@ message DoWhile {
|
|||||||
|
|
||||||
message For {
|
message For {
|
||||||
oneof init {
|
oneof init {
|
||||||
Vars variables = 1;
|
Statement variables = 1;
|
||||||
Expression expression = 2;
|
Expression expression = 2;
|
||||||
EmptyInit empty = 3;
|
EmptyInit empty = 3;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -207,7 +207,7 @@ class JsAstDeserializer(program: JsProgram) {
|
|||||||
|
|
||||||
StatementCase.FOR_STATEMENT -> {
|
StatementCase.FOR_STATEMENT -> {
|
||||||
val forProto = proto.forStatement
|
val forProto = proto.forStatement
|
||||||
val initVars = if (forProto.hasVariables()) deserializeVars(forProto.variables) else null
|
val initVars = if (forProto.hasVariables()) deserialize(forProto.variables) as JsVars else null
|
||||||
val initExpr = if (forProto.hasExpression()) deserialize(forProto.expression) else null
|
val initExpr = if (forProto.hasExpression()) deserialize(forProto.expression) else null
|
||||||
val condition = if (forProto.hasCondition()) deserialize(forProto.condition) else null
|
val condition = if (forProto.hasCondition()) deserialize(forProto.condition) else null
|
||||||
val increment = if (forProto.hasIncrement()) deserialize(forProto.increment) else null
|
val increment = if (forProto.hasIncrement()) deserialize(forProto.increment) else null
|
||||||
@@ -395,8 +395,13 @@ class JsAstDeserializer(program: JsProgram) {
|
|||||||
private fun deserializeVars(proto: Vars): JsVars {
|
private fun deserializeVars(proto: Vars): JsVars {
|
||||||
val vars = JsVars(proto.multiline)
|
val vars = JsVars(proto.multiline)
|
||||||
for (declProto in proto.declarationList) {
|
for (declProto in proto.declarationList) {
|
||||||
val initialValue = if (declProto.hasInitialValue()) deserialize(declProto.initialValue) else null
|
vars.vars += withLocation(
|
||||||
vars.vars += JsVars.JsVar(deserializeName(declProto.nameId), initialValue)
|
fileId = if (declProto.hasFileId()) declProto.fileId else null,
|
||||||
|
location = if (declProto.hasLocation()) declProto.location else null
|
||||||
|
) {
|
||||||
|
val initialValue = if (declProto.hasInitialValue()) deserialize(declProto.initialValue) else null
|
||||||
|
JsVars.JsVar(deserializeName(declProto.nameId), initialValue)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (proto.hasExportedPackageId()) {
|
if (proto.hasExportedPackageId()) {
|
||||||
vars.exportedPackage = deserializeString(proto.exportedPackageId)
|
vars.exportedPackage = deserializeString(proto.exportedPackageId)
|
||||||
|
|||||||
+232
-28
@@ -20474,6 +20474,24 @@ public final class JsAstProtoBuf {
|
|||||||
* <code>optional .org.jetbrains.kotlin.serialization.js.ast.Expression initial_value = 2;</code>
|
* <code>optional .org.jetbrains.kotlin.serialization.js.ast.Expression initial_value = 2;</code>
|
||||||
*/
|
*/
|
||||||
org.jetbrains.kotlin.serialization.js.ast.JsAstProtoBuf.Expression getInitialValue();
|
org.jetbrains.kotlin.serialization.js.ast.JsAstProtoBuf.Expression getInitialValue();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional int32 fileId = 3;</code>
|
||||||
|
*/
|
||||||
|
boolean hasFileId();
|
||||||
|
/**
|
||||||
|
* <code>optional int32 fileId = 3;</code>
|
||||||
|
*/
|
||||||
|
int getFileId();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional .org.jetbrains.kotlin.serialization.js.ast.Location location = 4;</code>
|
||||||
|
*/
|
||||||
|
boolean hasLocation();
|
||||||
|
/**
|
||||||
|
* <code>optional .org.jetbrains.kotlin.serialization.js.ast.Location location = 4;</code>
|
||||||
|
*/
|
||||||
|
org.jetbrains.kotlin.serialization.js.ast.JsAstProtoBuf.Location getLocation();
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* Protobuf type {@code org.jetbrains.kotlin.serialization.js.ast.VarDeclaration}
|
* Protobuf type {@code org.jetbrains.kotlin.serialization.js.ast.VarDeclaration}
|
||||||
@@ -20543,6 +20561,24 @@ public final class JsAstProtoBuf {
|
|||||||
bitField0_ |= 0x00000002;
|
bitField0_ |= 0x00000002;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case 24: {
|
||||||
|
bitField0_ |= 0x00000004;
|
||||||
|
fileId_ = input.readInt32();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case 34: {
|
||||||
|
org.jetbrains.kotlin.serialization.js.ast.JsAstProtoBuf.Location.Builder subBuilder = null;
|
||||||
|
if (((bitField0_ & 0x00000008) == 0x00000008)) {
|
||||||
|
subBuilder = location_.toBuilder();
|
||||||
|
}
|
||||||
|
location_ = input.readMessage(org.jetbrains.kotlin.serialization.js.ast.JsAstProtoBuf.Location.PARSER, extensionRegistry);
|
||||||
|
if (subBuilder != null) {
|
||||||
|
subBuilder.mergeFrom(location_);
|
||||||
|
location_ = subBuilder.buildPartial();
|
||||||
|
}
|
||||||
|
bitField0_ |= 0x00000008;
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException e) {
|
} catch (org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException e) {
|
||||||
@@ -20607,9 +20643,41 @@ public final class JsAstProtoBuf {
|
|||||||
return initialValue_;
|
return initialValue_;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static final int FILEID_FIELD_NUMBER = 3;
|
||||||
|
private int fileId_;
|
||||||
|
/**
|
||||||
|
* <code>optional int32 fileId = 3;</code>
|
||||||
|
*/
|
||||||
|
public boolean hasFileId() {
|
||||||
|
return ((bitField0_ & 0x00000004) == 0x00000004);
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* <code>optional int32 fileId = 3;</code>
|
||||||
|
*/
|
||||||
|
public int getFileId() {
|
||||||
|
return fileId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static final int LOCATION_FIELD_NUMBER = 4;
|
||||||
|
private org.jetbrains.kotlin.serialization.js.ast.JsAstProtoBuf.Location location_;
|
||||||
|
/**
|
||||||
|
* <code>optional .org.jetbrains.kotlin.serialization.js.ast.Location location = 4;</code>
|
||||||
|
*/
|
||||||
|
public boolean hasLocation() {
|
||||||
|
return ((bitField0_ & 0x00000008) == 0x00000008);
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* <code>optional .org.jetbrains.kotlin.serialization.js.ast.Location location = 4;</code>
|
||||||
|
*/
|
||||||
|
public org.jetbrains.kotlin.serialization.js.ast.JsAstProtoBuf.Location getLocation() {
|
||||||
|
return location_;
|
||||||
|
}
|
||||||
|
|
||||||
private void initFields() {
|
private void initFields() {
|
||||||
nameId_ = 0;
|
nameId_ = 0;
|
||||||
initialValue_ = org.jetbrains.kotlin.serialization.js.ast.JsAstProtoBuf.Expression.getDefaultInstance();
|
initialValue_ = org.jetbrains.kotlin.serialization.js.ast.JsAstProtoBuf.Expression.getDefaultInstance();
|
||||||
|
fileId_ = 0;
|
||||||
|
location_ = org.jetbrains.kotlin.serialization.js.ast.JsAstProtoBuf.Location.getDefaultInstance();
|
||||||
}
|
}
|
||||||
private byte memoizedIsInitialized = -1;
|
private byte memoizedIsInitialized = -1;
|
||||||
public final boolean isInitialized() {
|
public final boolean isInitialized() {
|
||||||
@@ -20627,6 +20695,12 @@ public final class JsAstProtoBuf {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (hasLocation()) {
|
||||||
|
if (!getLocation().isInitialized()) {
|
||||||
|
memoizedIsInitialized = 0;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
memoizedIsInitialized = 1;
|
memoizedIsInitialized = 1;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -20640,6 +20714,12 @@ public final class JsAstProtoBuf {
|
|||||||
if (((bitField0_ & 0x00000002) == 0x00000002)) {
|
if (((bitField0_ & 0x00000002) == 0x00000002)) {
|
||||||
output.writeMessage(2, initialValue_);
|
output.writeMessage(2, initialValue_);
|
||||||
}
|
}
|
||||||
|
if (((bitField0_ & 0x00000004) == 0x00000004)) {
|
||||||
|
output.writeInt32(3, fileId_);
|
||||||
|
}
|
||||||
|
if (((bitField0_ & 0x00000008) == 0x00000008)) {
|
||||||
|
output.writeMessage(4, location_);
|
||||||
|
}
|
||||||
output.writeRawBytes(unknownFields);
|
output.writeRawBytes(unknownFields);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -20657,6 +20737,14 @@ public final class JsAstProtoBuf {
|
|||||||
size += org.jetbrains.kotlin.protobuf.CodedOutputStream
|
size += org.jetbrains.kotlin.protobuf.CodedOutputStream
|
||||||
.computeMessageSize(2, initialValue_);
|
.computeMessageSize(2, initialValue_);
|
||||||
}
|
}
|
||||||
|
if (((bitField0_ & 0x00000004) == 0x00000004)) {
|
||||||
|
size += org.jetbrains.kotlin.protobuf.CodedOutputStream
|
||||||
|
.computeInt32Size(3, fileId_);
|
||||||
|
}
|
||||||
|
if (((bitField0_ & 0x00000008) == 0x00000008)) {
|
||||||
|
size += org.jetbrains.kotlin.protobuf.CodedOutputStream
|
||||||
|
.computeMessageSize(4, location_);
|
||||||
|
}
|
||||||
size += unknownFields.size();
|
size += unknownFields.size();
|
||||||
memoizedSerializedSize = size;
|
memoizedSerializedSize = size;
|
||||||
return size;
|
return size;
|
||||||
@@ -20755,6 +20843,10 @@ public final class JsAstProtoBuf {
|
|||||||
bitField0_ = (bitField0_ & ~0x00000001);
|
bitField0_ = (bitField0_ & ~0x00000001);
|
||||||
initialValue_ = org.jetbrains.kotlin.serialization.js.ast.JsAstProtoBuf.Expression.getDefaultInstance();
|
initialValue_ = org.jetbrains.kotlin.serialization.js.ast.JsAstProtoBuf.Expression.getDefaultInstance();
|
||||||
bitField0_ = (bitField0_ & ~0x00000002);
|
bitField0_ = (bitField0_ & ~0x00000002);
|
||||||
|
fileId_ = 0;
|
||||||
|
bitField0_ = (bitField0_ & ~0x00000004);
|
||||||
|
location_ = org.jetbrains.kotlin.serialization.js.ast.JsAstProtoBuf.Location.getDefaultInstance();
|
||||||
|
bitField0_ = (bitField0_ & ~0x00000008);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -20786,6 +20878,14 @@ public final class JsAstProtoBuf {
|
|||||||
to_bitField0_ |= 0x00000002;
|
to_bitField0_ |= 0x00000002;
|
||||||
}
|
}
|
||||||
result.initialValue_ = initialValue_;
|
result.initialValue_ = initialValue_;
|
||||||
|
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
|
||||||
|
to_bitField0_ |= 0x00000004;
|
||||||
|
}
|
||||||
|
result.fileId_ = fileId_;
|
||||||
|
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
|
||||||
|
to_bitField0_ |= 0x00000008;
|
||||||
|
}
|
||||||
|
result.location_ = location_;
|
||||||
result.bitField0_ = to_bitField0_;
|
result.bitField0_ = to_bitField0_;
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
@@ -20798,6 +20898,12 @@ public final class JsAstProtoBuf {
|
|||||||
if (other.hasInitialValue()) {
|
if (other.hasInitialValue()) {
|
||||||
mergeInitialValue(other.getInitialValue());
|
mergeInitialValue(other.getInitialValue());
|
||||||
}
|
}
|
||||||
|
if (other.hasFileId()) {
|
||||||
|
setFileId(other.getFileId());
|
||||||
|
}
|
||||||
|
if (other.hasLocation()) {
|
||||||
|
mergeLocation(other.getLocation());
|
||||||
|
}
|
||||||
setUnknownFields(
|
setUnknownFields(
|
||||||
getUnknownFields().concat(other.unknownFields));
|
getUnknownFields().concat(other.unknownFields));
|
||||||
return this;
|
return this;
|
||||||
@@ -20814,6 +20920,12 @@ public final class JsAstProtoBuf {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (hasLocation()) {
|
||||||
|
if (!getLocation().isInitialized()) {
|
||||||
|
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -20928,6 +21040,98 @@ public final class JsAstProtoBuf {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private int fileId_ ;
|
||||||
|
/**
|
||||||
|
* <code>optional int32 fileId = 3;</code>
|
||||||
|
*/
|
||||||
|
public boolean hasFileId() {
|
||||||
|
return ((bitField0_ & 0x00000004) == 0x00000004);
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* <code>optional int32 fileId = 3;</code>
|
||||||
|
*/
|
||||||
|
public int getFileId() {
|
||||||
|
return fileId_;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* <code>optional int32 fileId = 3;</code>
|
||||||
|
*/
|
||||||
|
public Builder setFileId(int value) {
|
||||||
|
bitField0_ |= 0x00000004;
|
||||||
|
fileId_ = value;
|
||||||
|
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* <code>optional int32 fileId = 3;</code>
|
||||||
|
*/
|
||||||
|
public Builder clearFileId() {
|
||||||
|
bitField0_ = (bitField0_ & ~0x00000004);
|
||||||
|
fileId_ = 0;
|
||||||
|
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
private org.jetbrains.kotlin.serialization.js.ast.JsAstProtoBuf.Location location_ = org.jetbrains.kotlin.serialization.js.ast.JsAstProtoBuf.Location.getDefaultInstance();
|
||||||
|
/**
|
||||||
|
* <code>optional .org.jetbrains.kotlin.serialization.js.ast.Location location = 4;</code>
|
||||||
|
*/
|
||||||
|
public boolean hasLocation() {
|
||||||
|
return ((bitField0_ & 0x00000008) == 0x00000008);
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* <code>optional .org.jetbrains.kotlin.serialization.js.ast.Location location = 4;</code>
|
||||||
|
*/
|
||||||
|
public org.jetbrains.kotlin.serialization.js.ast.JsAstProtoBuf.Location getLocation() {
|
||||||
|
return location_;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* <code>optional .org.jetbrains.kotlin.serialization.js.ast.Location location = 4;</code>
|
||||||
|
*/
|
||||||
|
public Builder setLocation(org.jetbrains.kotlin.serialization.js.ast.JsAstProtoBuf.Location value) {
|
||||||
|
if (value == null) {
|
||||||
|
throw new NullPointerException();
|
||||||
|
}
|
||||||
|
location_ = value;
|
||||||
|
|
||||||
|
bitField0_ |= 0x00000008;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* <code>optional .org.jetbrains.kotlin.serialization.js.ast.Location location = 4;</code>
|
||||||
|
*/
|
||||||
|
public Builder setLocation(
|
||||||
|
org.jetbrains.kotlin.serialization.js.ast.JsAstProtoBuf.Location.Builder builderForValue) {
|
||||||
|
location_ = builderForValue.build();
|
||||||
|
|
||||||
|
bitField0_ |= 0x00000008;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* <code>optional .org.jetbrains.kotlin.serialization.js.ast.Location location = 4;</code>
|
||||||
|
*/
|
||||||
|
public Builder mergeLocation(org.jetbrains.kotlin.serialization.js.ast.JsAstProtoBuf.Location value) {
|
||||||
|
if (((bitField0_ & 0x00000008) == 0x00000008) &&
|
||||||
|
location_ != org.jetbrains.kotlin.serialization.js.ast.JsAstProtoBuf.Location.getDefaultInstance()) {
|
||||||
|
location_ =
|
||||||
|
org.jetbrains.kotlin.serialization.js.ast.JsAstProtoBuf.Location.newBuilder(location_).mergeFrom(value).buildPartial();
|
||||||
|
} else {
|
||||||
|
location_ = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
bitField0_ |= 0x00000008;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* <code>optional .org.jetbrains.kotlin.serialization.js.ast.Location location = 4;</code>
|
||||||
|
*/
|
||||||
|
public Builder clearLocation() {
|
||||||
|
location_ = org.jetbrains.kotlin.serialization.js.ast.JsAstProtoBuf.Location.getDefaultInstance();
|
||||||
|
|
||||||
|
bitField0_ = (bitField0_ & ~0x00000008);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
// @@protoc_insertion_point(builder_scope:org.jetbrains.kotlin.serialization.js.ast.VarDeclaration)
|
// @@protoc_insertion_point(builder_scope:org.jetbrains.kotlin.serialization.js.ast.VarDeclaration)
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -25396,13 +25600,13 @@ public final class JsAstProtoBuf {
|
|||||||
org.jetbrains.kotlin.protobuf.MessageLiteOrBuilder {
|
org.jetbrains.kotlin.protobuf.MessageLiteOrBuilder {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <code>optional .org.jetbrains.kotlin.serialization.js.ast.Vars variables = 1;</code>
|
* <code>optional .org.jetbrains.kotlin.serialization.js.ast.Statement variables = 1;</code>
|
||||||
*/
|
*/
|
||||||
boolean hasVariables();
|
boolean hasVariables();
|
||||||
/**
|
/**
|
||||||
* <code>optional .org.jetbrains.kotlin.serialization.js.ast.Vars variables = 1;</code>
|
* <code>optional .org.jetbrains.kotlin.serialization.js.ast.Statement variables = 1;</code>
|
||||||
*/
|
*/
|
||||||
org.jetbrains.kotlin.serialization.js.ast.JsAstProtoBuf.Vars getVariables();
|
org.jetbrains.kotlin.serialization.js.ast.JsAstProtoBuf.Statement getVariables();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <code>optional .org.jetbrains.kotlin.serialization.js.ast.Expression expression = 2;</code>
|
* <code>optional .org.jetbrains.kotlin.serialization.js.ast.Expression expression = 2;</code>
|
||||||
@@ -25500,13 +25704,13 @@ public final class JsAstProtoBuf {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 10: {
|
case 10: {
|
||||||
org.jetbrains.kotlin.serialization.js.ast.JsAstProtoBuf.Vars.Builder subBuilder = null;
|
org.jetbrains.kotlin.serialization.js.ast.JsAstProtoBuf.Statement.Builder subBuilder = null;
|
||||||
if (initCase_ == 1) {
|
if (initCase_ == 1) {
|
||||||
subBuilder = ((org.jetbrains.kotlin.serialization.js.ast.JsAstProtoBuf.Vars) init_).toBuilder();
|
subBuilder = ((org.jetbrains.kotlin.serialization.js.ast.JsAstProtoBuf.Statement) init_).toBuilder();
|
||||||
}
|
}
|
||||||
init_ = input.readMessage(org.jetbrains.kotlin.serialization.js.ast.JsAstProtoBuf.Vars.PARSER, extensionRegistry);
|
init_ = input.readMessage(org.jetbrains.kotlin.serialization.js.ast.JsAstProtoBuf.Statement.PARSER, extensionRegistry);
|
||||||
if (subBuilder != null) {
|
if (subBuilder != null) {
|
||||||
subBuilder.mergeFrom((org.jetbrains.kotlin.serialization.js.ast.JsAstProtoBuf.Vars) init_);
|
subBuilder.mergeFrom((org.jetbrains.kotlin.serialization.js.ast.JsAstProtoBuf.Statement) init_);
|
||||||
init_ = subBuilder.buildPartial();
|
init_ = subBuilder.buildPartial();
|
||||||
}
|
}
|
||||||
initCase_ = 1;
|
initCase_ = 1;
|
||||||
@@ -25646,19 +25850,19 @@ public final class JsAstProtoBuf {
|
|||||||
|
|
||||||
public static final int VARIABLES_FIELD_NUMBER = 1;
|
public static final int VARIABLES_FIELD_NUMBER = 1;
|
||||||
/**
|
/**
|
||||||
* <code>optional .org.jetbrains.kotlin.serialization.js.ast.Vars variables = 1;</code>
|
* <code>optional .org.jetbrains.kotlin.serialization.js.ast.Statement variables = 1;</code>
|
||||||
*/
|
*/
|
||||||
public boolean hasVariables() {
|
public boolean hasVariables() {
|
||||||
return initCase_ == 1;
|
return initCase_ == 1;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* <code>optional .org.jetbrains.kotlin.serialization.js.ast.Vars variables = 1;</code>
|
* <code>optional .org.jetbrains.kotlin.serialization.js.ast.Statement variables = 1;</code>
|
||||||
*/
|
*/
|
||||||
public org.jetbrains.kotlin.serialization.js.ast.JsAstProtoBuf.Vars getVariables() {
|
public org.jetbrains.kotlin.serialization.js.ast.JsAstProtoBuf.Statement getVariables() {
|
||||||
if (initCase_ == 1) {
|
if (initCase_ == 1) {
|
||||||
return (org.jetbrains.kotlin.serialization.js.ast.JsAstProtoBuf.Vars) init_;
|
return (org.jetbrains.kotlin.serialization.js.ast.JsAstProtoBuf.Statement) init_;
|
||||||
}
|
}
|
||||||
return org.jetbrains.kotlin.serialization.js.ast.JsAstProtoBuf.Vars.getDefaultInstance();
|
return org.jetbrains.kotlin.serialization.js.ast.JsAstProtoBuf.Statement.getDefaultInstance();
|
||||||
}
|
}
|
||||||
|
|
||||||
public static final int EXPRESSION_FIELD_NUMBER = 2;
|
public static final int EXPRESSION_FIELD_NUMBER = 2;
|
||||||
@@ -25791,7 +25995,7 @@ public final class JsAstProtoBuf {
|
|||||||
throws java.io.IOException {
|
throws java.io.IOException {
|
||||||
getSerializedSize();
|
getSerializedSize();
|
||||||
if (initCase_ == 1) {
|
if (initCase_ == 1) {
|
||||||
output.writeMessage(1, (org.jetbrains.kotlin.serialization.js.ast.JsAstProtoBuf.Vars) init_);
|
output.writeMessage(1, (org.jetbrains.kotlin.serialization.js.ast.JsAstProtoBuf.Statement) init_);
|
||||||
}
|
}
|
||||||
if (initCase_ == 2) {
|
if (initCase_ == 2) {
|
||||||
output.writeMessage(2, (org.jetbrains.kotlin.serialization.js.ast.JsAstProtoBuf.Expression) init_);
|
output.writeMessage(2, (org.jetbrains.kotlin.serialization.js.ast.JsAstProtoBuf.Expression) init_);
|
||||||
@@ -25819,7 +26023,7 @@ public final class JsAstProtoBuf {
|
|||||||
size = 0;
|
size = 0;
|
||||||
if (initCase_ == 1) {
|
if (initCase_ == 1) {
|
||||||
size += org.jetbrains.kotlin.protobuf.CodedOutputStream
|
size += org.jetbrains.kotlin.protobuf.CodedOutputStream
|
||||||
.computeMessageSize(1, (org.jetbrains.kotlin.serialization.js.ast.JsAstProtoBuf.Vars) init_);
|
.computeMessageSize(1, (org.jetbrains.kotlin.serialization.js.ast.JsAstProtoBuf.Statement) init_);
|
||||||
}
|
}
|
||||||
if (initCase_ == 2) {
|
if (initCase_ == 2) {
|
||||||
size += org.jetbrains.kotlin.protobuf.CodedOutputStream
|
size += org.jetbrains.kotlin.protobuf.CodedOutputStream
|
||||||
@@ -26095,24 +26299,24 @@ public final class JsAstProtoBuf {
|
|||||||
private int bitField0_;
|
private int bitField0_;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <code>optional .org.jetbrains.kotlin.serialization.js.ast.Vars variables = 1;</code>
|
* <code>optional .org.jetbrains.kotlin.serialization.js.ast.Statement variables = 1;</code>
|
||||||
*/
|
*/
|
||||||
public boolean hasVariables() {
|
public boolean hasVariables() {
|
||||||
return initCase_ == 1;
|
return initCase_ == 1;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* <code>optional .org.jetbrains.kotlin.serialization.js.ast.Vars variables = 1;</code>
|
* <code>optional .org.jetbrains.kotlin.serialization.js.ast.Statement variables = 1;</code>
|
||||||
*/
|
*/
|
||||||
public org.jetbrains.kotlin.serialization.js.ast.JsAstProtoBuf.Vars getVariables() {
|
public org.jetbrains.kotlin.serialization.js.ast.JsAstProtoBuf.Statement getVariables() {
|
||||||
if (initCase_ == 1) {
|
if (initCase_ == 1) {
|
||||||
return (org.jetbrains.kotlin.serialization.js.ast.JsAstProtoBuf.Vars) init_;
|
return (org.jetbrains.kotlin.serialization.js.ast.JsAstProtoBuf.Statement) init_;
|
||||||
}
|
}
|
||||||
return org.jetbrains.kotlin.serialization.js.ast.JsAstProtoBuf.Vars.getDefaultInstance();
|
return org.jetbrains.kotlin.serialization.js.ast.JsAstProtoBuf.Statement.getDefaultInstance();
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* <code>optional .org.jetbrains.kotlin.serialization.js.ast.Vars variables = 1;</code>
|
* <code>optional .org.jetbrains.kotlin.serialization.js.ast.Statement variables = 1;</code>
|
||||||
*/
|
*/
|
||||||
public Builder setVariables(org.jetbrains.kotlin.serialization.js.ast.JsAstProtoBuf.Vars value) {
|
public Builder setVariables(org.jetbrains.kotlin.serialization.js.ast.JsAstProtoBuf.Statement value) {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
throw new NullPointerException();
|
throw new NullPointerException();
|
||||||
}
|
}
|
||||||
@@ -26122,22 +26326,22 @@ public final class JsAstProtoBuf {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* <code>optional .org.jetbrains.kotlin.serialization.js.ast.Vars variables = 1;</code>
|
* <code>optional .org.jetbrains.kotlin.serialization.js.ast.Statement variables = 1;</code>
|
||||||
*/
|
*/
|
||||||
public Builder setVariables(
|
public Builder setVariables(
|
||||||
org.jetbrains.kotlin.serialization.js.ast.JsAstProtoBuf.Vars.Builder builderForValue) {
|
org.jetbrains.kotlin.serialization.js.ast.JsAstProtoBuf.Statement.Builder builderForValue) {
|
||||||
init_ = builderForValue.build();
|
init_ = builderForValue.build();
|
||||||
|
|
||||||
initCase_ = 1;
|
initCase_ = 1;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* <code>optional .org.jetbrains.kotlin.serialization.js.ast.Vars variables = 1;</code>
|
* <code>optional .org.jetbrains.kotlin.serialization.js.ast.Statement variables = 1;</code>
|
||||||
*/
|
*/
|
||||||
public Builder mergeVariables(org.jetbrains.kotlin.serialization.js.ast.JsAstProtoBuf.Vars value) {
|
public Builder mergeVariables(org.jetbrains.kotlin.serialization.js.ast.JsAstProtoBuf.Statement value) {
|
||||||
if (initCase_ == 1 &&
|
if (initCase_ == 1 &&
|
||||||
init_ != org.jetbrains.kotlin.serialization.js.ast.JsAstProtoBuf.Vars.getDefaultInstance()) {
|
init_ != org.jetbrains.kotlin.serialization.js.ast.JsAstProtoBuf.Statement.getDefaultInstance()) {
|
||||||
init_ = org.jetbrains.kotlin.serialization.js.ast.JsAstProtoBuf.Vars.newBuilder((org.jetbrains.kotlin.serialization.js.ast.JsAstProtoBuf.Vars) init_)
|
init_ = org.jetbrains.kotlin.serialization.js.ast.JsAstProtoBuf.Statement.newBuilder((org.jetbrains.kotlin.serialization.js.ast.JsAstProtoBuf.Statement) init_)
|
||||||
.mergeFrom(value).buildPartial();
|
.mergeFrom(value).buildPartial();
|
||||||
} else {
|
} else {
|
||||||
init_ = value;
|
init_ = value;
|
||||||
@@ -26147,7 +26351,7 @@ public final class JsAstProtoBuf {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* <code>optional .org.jetbrains.kotlin.serialization.js.ast.Vars variables = 1;</code>
|
* <code>optional .org.jetbrains.kotlin.serialization.js.ast.Statement variables = 1;</code>
|
||||||
*/
|
*/
|
||||||
public Builder clearVariables() {
|
public Builder clearVariables() {
|
||||||
if (initCase_ == 1) {
|
if (initCase_ == 1) {
|
||||||
|
|||||||
@@ -217,7 +217,7 @@ class JsAstSerializer {
|
|||||||
override fun visitFor(x: JsFor) {
|
override fun visitFor(x: JsFor) {
|
||||||
val forBuilder = For.newBuilder()
|
val forBuilder = For.newBuilder()
|
||||||
when {
|
when {
|
||||||
x.initVars != null -> forBuilder.variables = serializeVars(x.initVars)
|
x.initVars != null -> forBuilder.variables = serialize(x.initVars)
|
||||||
x.initExpression != null -> forBuilder.expression = serialize(x.initExpression)
|
x.initExpression != null -> forBuilder.expression = serialize(x.initExpression)
|
||||||
else -> forBuilder.empty = EmptyInit.newBuilder().build()
|
else -> forBuilder.empty = EmptyInit.newBuilder().build()
|
||||||
}
|
}
|
||||||
@@ -460,8 +460,10 @@ class JsAstSerializer {
|
|||||||
val varsBuilder = Vars.newBuilder()
|
val varsBuilder = Vars.newBuilder()
|
||||||
for (varDecl in vars.vars) {
|
for (varDecl in vars.vars) {
|
||||||
val declBuilder = VarDeclaration.newBuilder()
|
val declBuilder = VarDeclaration.newBuilder()
|
||||||
declBuilder.nameId = serialize(varDecl.name)
|
withLocation(varDecl, { declBuilder.fileId = it }, { declBuilder.location = it }) {
|
||||||
varDecl.initExpression?.let { declBuilder.initialValue = serialize(it) }
|
declBuilder.nameId = serialize(varDecl.name)
|
||||||
|
varDecl.initExpression?.let { declBuilder.initialValue = serialize(it) }
|
||||||
|
}
|
||||||
varsBuilder.addDeclaration(declBuilder)
|
varsBuilder.addDeclaration(declBuilder)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user