title: getMethodASTEclipse() returns undeclared variable
body: <p>I am completely new to Rascal and am trying to create ASTs from an eclipse project using the following code</p>
  
  <pre><code>Module FirstTryAST
  import lang::java::m3::Core;
  import lang::java::jdt::m3::Core;
  import Set;
  import Relation;
  import IO;  
  import List;
  import Map;
  import Exception;
  import ParseTree;
  
  void test(){
      M3 myModel = createM3FromEclipseProject(|project://MyProject/|);
      println("Loaded M3 model, looping through methods..");
  
      for(m &lt;- methods(model)) mAST = getMethodASTEclipse(m);
  
      println("Success");
  }
  </code></pre>
  
  <p>When the program (run in eclipse Rascal Console) tries to execute </p>
  
  <p><code>getMethodASTEclipse(m);</code> </p>
  
  <p>it returns:</p>
  
  <blockquote>
    <p>|plugin://rascal_eclipse/src/org/rascalmpl/eclipse/library/lang/java/jdt/m3/Core.rsc|(1238,18,&lt;40,12>,&lt;40,30>):
    Undeclared variable: getModelContaining</p>
  </blockquote>
  
  <p>How do I get around this / what did I do wrong ?</p>
  
  <p>I am using Eclipse Mars on Ubuntu 15.04 (Cinnamon).
  If you need more information, please let me know.</p>
  
  <blockquote>
    <p>Update:</p>
  </blockquote>
  
  <p>When I use <code>getMethodASTEclipse(m, model = myModel)</code> it works fine.
  Although this workaround works for me, I still would like to know the answer on why I get this undeclared variable message.</p>