From 35f3995ee9648b72af36ba69d3427f7f3d36e4d3 Mon Sep 17 00:00:00 2001 From: "Gregory.Shrago" Date: Fri, 13 Jul 2018 20:17:52 +0300 Subject: [PATCH] regen --- json/gen/com/intellij/json/JsonParser.java | 11 +++-------- .../groovy/lang/parser/GroovyGeneratedParser.java | 2 -- .../plugins/groovy/lang/psi/GroovyElementTypes.java | 2 -- .../commandLine/CommandLineParser.java | 5 +---- 4 files changed, 4 insertions(+), 16 deletions(-) diff --git a/json/gen/com/intellij/json/JsonParser.java b/json/gen/com/intellij/json/JsonParser.java index c0da74698768..39dcfc55ef41 100644 --- a/json/gen/com/intellij/json/JsonParser.java +++ b/json/gen/com/intellij/json/JsonParser.java @@ -87,11 +87,10 @@ public class JsonParser implements PsiParser, LightPsiParser { // array_element* private static boolean array_1(PsiBuilder b, int l) { if (!recursion_guard_(b, l, "array_1")) return false; - int c = current_position_(b); while (true) { + int c = current_position_(b); if (!array_element(b, l + 1)) break; if (!empty_element_parsed_guard_(b, "array_1", c)) break; - c = current_position_(b); } return true; } @@ -150,11 +149,10 @@ public class JsonParser implements PsiParser, LightPsiParser { boolean r; Marker m = enter_section_(b); r = value(b, l + 1); - int c = current_position_(b); while (r) { + int c = current_position_(b); if (!value(b, l + 1)) break; if (!empty_element_parsed_guard_(b, "json", c)) break; - c = current_position_(b); } exit_section_(b, m, null, r); return r; @@ -260,11 +258,10 @@ public class JsonParser implements PsiParser, LightPsiParser { // object_element* private static boolean object_1(PsiBuilder b, int l) { if (!recursion_guard_(b, l, "object_1")) return false; - int c = current_position_(b); while (true) { + int c = current_position_(b); if (!object_element(b, l + 1)) break; if (!empty_element_parsed_guard_(b, "object_1", c)) break; - c = current_position_(b); } return true; } @@ -333,10 +330,8 @@ public class JsonParser implements PsiParser, LightPsiParser { static boolean property_name(PsiBuilder b, int l) { if (!recursion_guard_(b, l, "property_name")) return false; boolean r; - Marker m = enter_section_(b); r = literal(b, l + 1); if (!r) r = reference_expression(b, l + 1); - exit_section_(b, m, null, r); return r; } diff --git a/plugins/groovy/groovy-psi/gen/org/jetbrains/plugins/groovy/lang/parser/GroovyGeneratedParser.java b/plugins/groovy/groovy-psi/gen/org/jetbrains/plugins/groovy/lang/parser/GroovyGeneratedParser.java index a2983f2557ca..1cbf609a6f49 100644 --- a/plugins/groovy/groovy-psi/gen/org/jetbrains/plugins/groovy/lang/parser/GroovyGeneratedParser.java +++ b/plugins/groovy/groovy-psi/gen/org/jetbrains/plugins/groovy/lang/parser/GroovyGeneratedParser.java @@ -1,5 +1,3 @@ -// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. - // This is a generated file. Not intended for manual editing. package org.jetbrains.plugins.groovy.lang.parser; diff --git a/plugins/groovy/groovy-psi/gen/org/jetbrains/plugins/groovy/lang/psi/GroovyElementTypes.java b/plugins/groovy/groovy-psi/gen/org/jetbrains/plugins/groovy/lang/psi/GroovyElementTypes.java index f0eb8a1edc48..01046aadc0a9 100644 --- a/plugins/groovy/groovy-psi/gen/org/jetbrains/plugins/groovy/lang/psi/GroovyElementTypes.java +++ b/plugins/groovy/groovy-psi/gen/org/jetbrains/plugins/groovy/lang/psi/GroovyElementTypes.java @@ -1,5 +1,3 @@ -// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. - // This is a generated file. Not intended for manual editing. package org.jetbrains.plugins.groovy.lang.psi; diff --git a/python/gen/com/jetbrains/commandInterface/commandLine/CommandLineParser.java b/python/gen/com/jetbrains/commandInterface/commandLine/CommandLineParser.java index 51f532412eb3..e813880d5a7c 100644 --- a/python/gen/com/jetbrains/commandInterface/commandLine/CommandLineParser.java +++ b/python/gen/com/jetbrains/commandInterface/commandLine/CommandLineParser.java @@ -147,11 +147,10 @@ public class CommandLineParser implements PsiParser, LightPsiParser { // (argument | option ) * private static boolean root_1(PsiBuilder b, int l) { if (!recursion_guard_(b, l, "root_1")) return false; - int c = current_position_(b); while (true) { + int c = current_position_(b); if (!root_1_0(b, l + 1)) break; if (!empty_element_parsed_guard_(b, "root_1", c)) break; - c = current_position_(b); } return true; } @@ -160,10 +159,8 @@ public class CommandLineParser implements PsiParser, LightPsiParser { private static boolean root_1_0(PsiBuilder b, int l) { if (!recursion_guard_(b, l, "root_1_0")) return false; boolean r; - Marker m = enter_section_(b); r = argument(b, l + 1); if (!r) r = option(b, l + 1); - exit_section_(b, m, null, r); return r; }