Ignore:
Timestamp:
02/15/06 18:31:48 (19 years ago)
Author:
boris
Message:
  • changed code to compute actual region of a component/class instead of first line as it was before
  • implemented a mechanism to look up the class definition at a certain location in a modelica source file
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/org.modelica.mdt.test/src/org/modelica/mdt/test/util/Area51Projects.java

    r311 r317  
    295295            "Real a;\n" +
    296296            "equation\n"+
    297             "   x = 10;\n"+
     297            "    x = 10;\n"+
    298298            "end muu;\n"+
    299299            "\n"+
    300300            "model foo\n"+
    301             "   import Modelica;\n"+
     301            "    import Modelica;\n"+
    302302            "end foo;\n" +
    303303            "\n\n" +
    304304            "record hej\n" +
    305             "   package ine_paketen\n" +
    306             "   end ine_paketen;\n" +
    307             "   class hejhej\n" +
    308             "       class foo\n" +
    309             "       end foo;\n" +
    310             "   end hejhej;\n" +
     305            "    package ine_paketen\n" +
     306            "    end ine_paketen;\n" +
     307            "    class hejhej\n" +
     308            "        class foo\n" +
     309            "        end foo;\n" +
     310            "    end hejhej;\n" +
    311311            "end hej;\n" +
    312312            "\n\n\n" +
    313313            "package hepp\n" +
    314             "   package hopp\n" +
    315             "   end hopp;\n" +
    316             "   class hehehe\n" +
    317             "   end hehehe;\n" +
     314            "    package hopp\n" +
     315            "    end hopp;\n" +
     316            "    class hehehe\n" +
     317            "    end hehehe;\n" +
    318318            "end hepp;\n";
    319319           
     
    346346            "Real a;\n" +
    347347            "equation\n"+
    348             "   x = 10;\n"+
     348            "    x = 10;\n"+
    349349            "end bruuken_muu;\n"+
    350350            "\n"+
    351351            "model foobared\n"+
    352             "   import Modelica;\n"+
     352            "    import Modelica;\n"+
    353353            "end foobared;\n" +
    354354            "\n\n" +
    355355            "record broken_hej\n" +
    356             "   package ine_paketen\n" +
    357             "   end ine_paketen;\n" +
    358             "   class hejhej\n" +
    359             "       class foo\n" +
    360             "       end foo;\n" +
    361             "   end hejhej;\n" +
     356            "    package ine_paketen\n" +
     357            "    end ine_paketen;\n" +
     358            "    class hejhej\n" +
     359            "        class foo\n" +
     360            "        end foo;\n" +
     361            "    end hejhej;\n" +
    362362            "end broken_hej;\n" +
    363363            "\n\n\n" +
    364364            "package broken_hepp\n" +
    365             "   package hopp\n" +
    366             "   end hopp;\n" +
    367             "   class hehehe\n" +
    368             "   end hehehe;\n" +
     365            "    package hopp\n" +
     366            "    end hopp;\n" +
     367            "    class hehehe\n" +
     368            "    end hehehe;\n" +
    369369            "end broken_hepp;\n";
    370370           
     
    387387            "    type a_type end a_type;\n" +
    388388            "protected\n" +
    389             "   Real a_protected_real;\n" +
    390             "   Integer a_protected_integer \"with a comment\";\n" +
     389            "    Real a_protected_real;\n" +
     390            "    Integer a_protected_integer \"with a comment\";\n" +
    391391            "equation\n" +
    392             "   b = time;\n" +
    393             "   der(a) = b;\n" +
     392            "    b = time;\n" +
     393            "    der(a) = b;\n" +
    394394            "end components_bananza;";
    395395
Note: See TracChangeset for help on using the changeset viewer.