viatra / EMF-IncQuery

This repository is only kept for historic reasons. All development happens on eclipse.org
http://eclipse.org/viatra
13 stars 4 forks source link

Disappearing pattern-comment in generated code #229

Closed OszkarSemerath closed 11 years ago

OszkarSemerath commented 12 years ago

Some part of the comments from the .eiq files are disappear in the generated java code. It seems this only applies on the block comments (/* */).

For example the pattern:

// It is a comment before the pattern
/**
 * The parameter F is a fruit.
 * @param F A fruit.
 */
pattern plant(p) =
{
    // p is a Plant
    /* Not a fungus! */
    Plant(p);
}/* or
{
    Fungus(p);
}*/
//It is a comment after the pattern

the generated comment in the matcher:

/**
 * Generated pattern matcher API of the plant pattern, 
 * providing pattern-specific query methods.
 * 
 * 
 * 
 * // It is a comment before the pattern
 * 
 *  
 * pattern plant(p) =
 * {
 *  // p is a Plant
 *   
 *  Plant(p);
 * }
 * 
 * @see PlantMatch
 * @see PlantMatcherFactory
 * @see PlantProcessor
 * 
 */
ujhelyiz commented 11 years ago

Migrated to https://bugs.eclipse.org/bugs/show_bug.cgi?id=398804