initMethod.addCode("pattern.SetSyntetic(True)");
initMethod.addCode("pattern.Syntetic = True");
    public void addProduction(ProductionPattern pattern,                              VisualBasicConstantsFile constants) {        StringBuffer  code;        String        str;        // Create new pattern        code = new StringBuffer();        code.append("pattern = New ProductionPattern(CInt(");        code.append(getConstant(constants, pattern.getId()));        code.append("), \"");        if (pattern.isSyntetic()) {            str = (String) constantNames.get(new Integer(pattern.getId()));            code.append(gen.getCodeStyle().getMixedCase(str, true));        } else {            code.append(pattern.getName());        }        code.append("\")");        initMethod.addCode("");        initMethod.addCode(code.toString());        // Set syntetic flag        if (pattern.isSyntetic()) {            initMethod.addCode("pattern.SetSyntetic(True)");        }        // Create pattern rules        for (int i = 0; i < pattern.getAlternativeCount(); i++) {            addProductionAlternative(pattern.getAlternative(i),                                     constants);        }        // Add pattern to parser        initMethod.addCode("AddPattern(pattern)");    }