Package st.gravel.support.compiler.ast

Examples of st.gravel.support.compiler.ast.SourcePosition.stop()


  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());
  }
  public Symbol selector() {
    return Symbol.value(method.selector());
  }
 
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.