Commit 8795b029 authored by Kristof Szabados's avatar Kristof Szabados
Browse files
parent 653c5ce0
......@@ -18,6 +18,7 @@ import org.eclipse.titan.runtime.core.Param_Types.Module_Param_Any;
import org.eclipse.titan.runtime.core.Param_Types.Module_Param_AnyOrNone;
import org.eclipse.titan.runtime.core.Param_Types.Module_Param_Assignment_List;
import org.eclipse.titan.runtime.core.Param_Types.Module_Param_ComplementList_Template;
import org.eclipse.titan.runtime.core.Param_Types.Module_Param_Id;
import org.eclipse.titan.runtime.core.Param_Types.Module_Param_List_Template;
import org.eclipse.titan.runtime.core.Param_Types.Module_Param_Name;
import org.eclipse.titan.runtime.core.Param_Types.Module_Param_Omit;
......@@ -74332,8 +74333,9 @@ public final class PreGenRecordOf extends TTCN_Module {
 
@Override
public void set_param(Module_Parameter param) {
if (param.get_id() != null && param.get_id().next_name()) {
final String param_field = param.get_id().get_current_name();
final Module_Param_Id param_id = param.get_id();
if (param_id != null && param_id.next_name()) {
final String param_field = param_id.get_current_name();
final char first_char = param_field.charAt(0);
if (first_char >= '0' && first_char <= '9') {
param.error("Unexpected array index in module parameter, expected a valid field name for union type `@PreGenRecordOf.anytype'");
......@@ -74970,8 +74972,9 @@ public final class PreGenRecordOf extends TTCN_Module {
 
@Override
public void set_param(Module_Parameter param) {
if((param.get_id() instanceof Module_Param_Name) && param.get_id().next_name()) {
final String param_field = param.get_id().get_current_name();
final Module_Param_Id param_id = param.get_id();
if((param_id instanceof Module_Param_Name) && param_id.next_name()) {
final String param_field = param_id.get_current_name();
final char first_char = param_field.charAt(0);
if (first_char >= '0' && first_char <= '9') {
param.error("Unexpected array index in module parameter, expected a valid field name for union template type `@PreGenRecordOf.anytype'");
......@@ -16,6 +16,7 @@ import org.eclipse.titan.runtime.core.JSON.json_string_escaping;
import org.eclipse.titan.runtime.core.JSON_Tokenizer.json_token_t;
import org.eclipse.titan.runtime.core.Param_Types.Module_Param_Assignment_List;
import org.eclipse.titan.runtime.core.Param_Types.Module_Param_FieldName;
import org.eclipse.titan.runtime.core.Param_Types.Module_Param_Id;
import org.eclipse.titan.runtime.core.Param_Types.Module_Param_Name;
import org.eclipse.titan.runtime.core.Param_Types.Module_Param_Unbound;
import org.eclipse.titan.runtime.core.Param_Types.Module_Parameter;
......@@ -468,8 +469,9 @@ public class TitanCharacter_String_identification extends Base_Type {
@Override
public void set_param(Module_Parameter param) {
if (param.get_id() != null && param.get_id().next_name()) {
final String param_field = param.get_id().get_current_name();
final Module_Param_Id param_id = param.get_id();
if (param_id != null && param_id.next_name()) {
final String param_field = param_id.get_current_name();
final char first_char = param_field.charAt(0);
if (first_char >= '0' && first_char <= '9') {
param.error("Unexpected array index in module parameter, expected a valid field name for union type `CHARACTER STRING.identification'");
......
......@@ -15,6 +15,7 @@ import org.eclipse.titan.runtime.core.Param_Types.Module_Param_AnyOrNone;
import org.eclipse.titan.runtime.core.Param_Types.Module_Param_Assignment_List;
import org.eclipse.titan.runtime.core.Param_Types.Module_Param_ComplementList_Template;
import org.eclipse.titan.runtime.core.Param_Types.Module_Param_FieldName;
import org.eclipse.titan.runtime.core.Param_Types.Module_Param_Id;
import org.eclipse.titan.runtime.core.Param_Types.Module_Param_List_Template;
import org.eclipse.titan.runtime.core.Param_Types.Module_Param_Name;
import org.eclipse.titan.runtime.core.Param_Types.Module_Param_Omit;
......@@ -968,8 +969,9 @@ public class TitanCharacter_String_identification_template extends Base_Template
@Override
public void set_param(Module_Parameter param) {
if((param.get_id() instanceof Module_Param_Name) && param.get_id().next_name()) {
final String param_field = param.get_id().get_current_name();
final Module_Param_Id param_id = param.get_id();
if((param_id instanceof Module_Param_Name) && param_id.next_name()) {
final String param_field = param_id.get_current_name();
final char first_char = param_field.charAt(0);
if (first_char >= '0' && first_char <= '9') {
param.error("Unexpected array index in module parameter, expected a valid field name for union template type `CHARACTER STRING.identification'");
......
......@@ -16,6 +16,7 @@ import org.eclipse.titan.runtime.core.JSON.json_string_escaping;
import org.eclipse.titan.runtime.core.JSON_Tokenizer.json_token_t;
import org.eclipse.titan.runtime.core.Param_Types.Module_Param_Assignment_List;
import org.eclipse.titan.runtime.core.Param_Types.Module_Param_FieldName;
import org.eclipse.titan.runtime.core.Param_Types.Module_Param_Id;
import org.eclipse.titan.runtime.core.Param_Types.Module_Param_Name;
import org.eclipse.titan.runtime.core.Param_Types.Module_Param_Unbound;
import org.eclipse.titan.runtime.core.Param_Types.Module_Parameter;
......@@ -467,8 +468,9 @@ public class TitanEmbedded_PDV_identification extends Base_Type {
@Override
public void set_param(Module_Parameter param) {
if (param.get_id() != null && param.get_id().next_name()) {
final String param_field = param.get_id().get_current_name();
final Module_Param_Id param_id = param.get_id();
if (param_id != null && param_id.next_name()) {
final String param_field = param_id.get_current_name();
final char first_char = param_field.charAt(0);
if (first_char >= '0' && first_char <= '9') {
param.error("Unexpected array index in module parameter, expected a valid field name for union type `EMBEDDED PDV.identification'");
......
......@@ -15,6 +15,7 @@ import org.eclipse.titan.runtime.core.Param_Types.Module_Param_AnyOrNone;
import org.eclipse.titan.runtime.core.Param_Types.Module_Param_Assignment_List;
import org.eclipse.titan.runtime.core.Param_Types.Module_Param_ComplementList_Template;
import org.eclipse.titan.runtime.core.Param_Types.Module_Param_FieldName;
import org.eclipse.titan.runtime.core.Param_Types.Module_Param_Id;
import org.eclipse.titan.runtime.core.Param_Types.Module_Param_List_Template;
import org.eclipse.titan.runtime.core.Param_Types.Module_Param_Name;
import org.eclipse.titan.runtime.core.Param_Types.Module_Param_Omit;
......@@ -967,8 +968,9 @@ public class TitanEmbedded_PDV_identification_template extends Base_Template {
@Override
public void set_param(Module_Parameter param) {
if((param.get_id() instanceof Module_Param_Name) && param.get_id().next_name()) {
final String param_field = param.get_id().get_current_name();
final Module_Param_Id param_id = param.get_id();
if((param_id instanceof Module_Param_Name) && param_id.next_name()) {
final String param_field = param_id.get_current_name();
final char first_char = param_field.charAt(0);
if (first_char >= '0' && first_char <= '9') {
param.error("Unexpected array index in module parameter, expected a valid field name for union template type `EMBEDDED PDV.identification'");
......
......@@ -16,6 +16,7 @@ import org.eclipse.titan.runtime.core.JSON.json_string_escaping;
import org.eclipse.titan.runtime.core.JSON_Tokenizer.json_token_t;
import org.eclipse.titan.runtime.core.Param_Types.Module_Param_Assignment_List;
import org.eclipse.titan.runtime.core.Param_Types.Module_Param_FieldName;
import org.eclipse.titan.runtime.core.Param_Types.Module_Param_Id;
import org.eclipse.titan.runtime.core.Param_Types.Module_Param_Name;
import org.eclipse.titan.runtime.core.Param_Types.Module_Param_Unbound;
import org.eclipse.titan.runtime.core.Param_Types.Module_Parameter;
......@@ -466,8 +467,9 @@ public class TitanExternal_identification extends Base_Type {
@Override
public void set_param(Module_Parameter param) {
if (param.get_id() != null && param.get_id().next_name()) {
final String param_field = param.get_id().get_current_name();
final Module_Param_Id param_id = param.get_id();
if (param_id != null && param_id.next_name()) {
final String param_field = param_id.get_current_name();
final char first_char = param_field.charAt(0);
if (first_char >= '0' && first_char <= '9') {
param.error("Unexpected array index in module parameter, expected a valid field name for union type `EXTERNAL.identification'");
......
......@@ -15,6 +15,7 @@ import org.eclipse.titan.runtime.core.Param_Types.Module_Param_AnyOrNone;
import org.eclipse.titan.runtime.core.Param_Types.Module_Param_Assignment_List;
import org.eclipse.titan.runtime.core.Param_Types.Module_Param_ComplementList_Template;
import org.eclipse.titan.runtime.core.Param_Types.Module_Param_FieldName;
import org.eclipse.titan.runtime.core.Param_Types.Module_Param_Id;
import org.eclipse.titan.runtime.core.Param_Types.Module_Param_List_Template;
import org.eclipse.titan.runtime.core.Param_Types.Module_Param_Name;
import org.eclipse.titan.runtime.core.Param_Types.Module_Param_Omit;
......@@ -967,8 +968,9 @@ public class TitanExternal_identification_template extends Base_Template {
@Override
public void set_param(Module_Parameter param) {
if((param.get_id() instanceof Module_Param_Name) && param.get_id().next_name()) {
final String param_field = param.get_id().get_current_name();
final Module_Param_Id param_id = param.get_id();
if((param_id instanceof Module_Param_Name) && param_id.next_name()) {
final String param_field = param_id.get_current_name();
final char first_char = param_field.charAt(0);
if (first_char >= '0' && first_char <= '9') {
param.error("Unexpected array index in module parameter, expected a valid field name for union template type `EXTERNAL.identification'");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment