Skip to content

Commit 202f1d9

Browse files
#46: Bump protostuff-parser version
1 parent 6b7e58e commit 202f1d9

File tree

5 files changed

+2
-98
lines changed

5 files changed

+2
-98
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ dependencies {
3232
exclude group: 'com.jetbrains'
3333
}
3434
compile 'com.google.guava:guava:21.0'
35-
compile 'io.protostuff:protostuff-parser:2.0.0-alpha38'
35+
compile 'io.protostuff:protostuff-parser:2.1.9'
3636
}
3737

3838
apply plugin: 'idea'

src/main/java/io/protostuff/jetbrains/plugin/ProtoParserDefinition.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
import static io.protostuff.compiler.parser.ProtoParser.RULE_messageBlock;
2626
import static io.protostuff.compiler.parser.ProtoParser.RULE_messageName;
2727
import static io.protostuff.compiler.parser.ProtoParser.RULE_oneof;
28-
import static io.protostuff.compiler.parser.ProtoParser.RULE_oneofField;
2928
import static io.protostuff.compiler.parser.ProtoParser.RULE_option;
3029
import static io.protostuff.compiler.parser.ProtoParser.RULE_optionEntry;
3130
import static io.protostuff.compiler.parser.ProtoParser.RULE_optionValue;
@@ -74,7 +73,6 @@
7473
import io.protostuff.jetbrains.plugin.psi.MapNode;
7574
import io.protostuff.jetbrains.plugin.psi.MessageNode;
7675
import io.protostuff.jetbrains.plugin.psi.OneOfNode;
77-
import io.protostuff.jetbrains.plugin.psi.OneofFieldNode;
7876
import io.protostuff.jetbrains.plugin.psi.OptionEntryNode;
7977
import io.protostuff.jetbrains.plugin.psi.OptionNode;
8078
import io.protostuff.jetbrains.plugin.psi.OptionValueNode;
@@ -296,7 +294,6 @@ public ProtoParserDefinition() {
296294
register(RULE_messageBlock, MessageNode::new);
297295
register(RULE_messageName, GenericNameNode::new);
298296
register(RULE_oneof, OneOfNode::new);
299-
register(RULE_oneofField, OneofFieldNode::new);
300297
register(RULE_option, OptionNode::new);
301298
register(RULE_optionEntry, OptionEntryNode::new);
302299
register(RULE_optionValue, OptionValueNode::new);

src/main/java/io/protostuff/jetbrains/plugin/formatter/BlockFactory.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@
2626
import static io.protostuff.compiler.parser.ProtoParser.RULE_messageBlock;
2727
import static io.protostuff.compiler.parser.ProtoParser.RULE_messageName;
2828
import static io.protostuff.compiler.parser.ProtoParser.RULE_oneof;
29-
import static io.protostuff.compiler.parser.ProtoParser.RULE_oneofField;
30-
import static io.protostuff.compiler.parser.ProtoParser.RULE_oneofGroup;
3129
import static io.protostuff.compiler.parser.ProtoParser.RULE_oneofName;
3230
import static io.protostuff.compiler.parser.ProtoParser.RULE_option;
3331
import static io.protostuff.compiler.parser.ProtoParser.RULE_optionEntry;
@@ -119,8 +117,6 @@ class BlockFactory {
119117
register(rule(RULE_extendBlock), ParentBlock::new);
120118
register(rule(RULE_extendBlockEntry), StatementBlock::new);
121119
register(rule(RULE_oneof), ParentBlock::new);
122-
register(rule(RULE_oneofField), StatementBlock::new);
123-
register(rule(RULE_oneofGroup), ParentBlock::new);
124120
register(rule(RULE_groupBlock), ParentBlock::new);
125121
register(rule(RULE_extensions), StatementBlock::new);
126122

src/main/java/io/protostuff/jetbrains/plugin/psi/OneOfNode.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public OneOfNode(@NotNull ASTNode node) {
1818
}
1919

2020
public Collection<MessageField> getFields() {
21-
MessageField[] fields = findChildrenByClass(OneofFieldNode.class);
21+
MessageField[] fields = findChildrenByClass(FieldNode.class);
2222
return Arrays.asList(fields);
2323
}
2424
}

src/main/java/io/protostuff/jetbrains/plugin/psi/OneofFieldNode.java

Lines changed: 0 additions & 89 deletions
This file was deleted.

0 commit comments

Comments
 (0)