code: private static void registerNamedField(final String normalizedName, final int structureBorder, final int offset, final List<JBBPNamedFieldInfo> namedFields, final JBBPToken token) {
      for (int i = namedFields.size() - 1; i >= structureBorder; i--) {
        final JBBPNamedFieldInfo info = namedFields.get(i);
        if (info.getFieldPath().equals(normalizedName)) {
          throw new JBBPCompilationException("Duplicated named field detected [" + normalizedName + ']', token);
        }
      }
      namedFields.add(new JBBPNamedFieldInfo(normalizedName, normalizedName, offset));
    }
docs: Register a name field info item in a named field list.
  
  @param normalizedName normalized name of the named field
  @param offset         the named field offset
  @param namedFields    the named field info list for registration
  @param token          the token for the field
  @throws JBBPCompilationException if there is already a registered field for
  the path