Package st.gravel.support.compiler.ast

Examples of st.gravel.support.compiler.ast.SourcePosition


    this.method = method;
    this.mclass = mclass;
  }

  public String source() {
    SourcePosition sourcePosition = method.sourcePosition();
    if(sourcePosition == null)
      return method.prettySourceString();
    String contentsOfEntireFile = FilenameExtensions.contentsOfEntireFile(sourcePosition.sourceFile().asFile());
    return contentsOfEntireFile.substring(sourcePosition.start(), sourcePosition.stop());
  }
View Full Code Here

TOP

Related Classes of st.gravel.support.compiler.ast.SourcePosition

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.