Package melnorme.lang.tooling.ops

Examples of melnorme.lang.tooling.ops.SourceLineColumnLocation


   
    if(findResult.getInfoMessage() != null) {
      dialogInfo(findResult.getInfoMessage());
    }
   
    SourceLineColumnLocation location = findResult.getLocation();
    if(location == null) {
      Display.getCurrent().beep();
      return;
    }
   
View Full Code Here


      String columnString, String errorMessage) throws CommonException {
    Path filePath = parsePath(pathString).normalize();
    int lineNo = parsePositiveInt(lineString);
    int column = parseColumnString(columnString);
   
    return new ToolSourceError(new SourceLineColumnLocation(filePath, lineNo, column), errorMessage);
  }
View Full Code Here

    int line = parseInt(lineStr, "Invalid number for line: " + lineStr);
    int column = parseInt(columnStr, "Invalid number for column: " + columnStr);
   
    Path path = parsePath(pathStr);
   
    return new FindDefinitionResult(null, new SourceLineColumnLocation(path, line, column));
  }
View Full Code Here

    GoOracleFindDefinitionOperation op = new GoOracleFindDefinitionOperation("gopath");
   
    FindDefinitionResult result = op.parseJsonResult(
      getClassResourceAsString(GoOracleFindDefinitionOperation_Test.class, "result1.json"));
   
    SourceLineColumnLocation loc = result.getLocation();
   
    assertEquals(loc, new SourceLineColumnLocation(
      path("D:\\devel\\tools.Go\\go-workspace\\src\\github.com\\user\\newmath\\sqrt.go"), 5, 6));
  }
View Full Code Here

public class GoBuildOutputProcessorTest extends CommonGoToolingTest {
 
  protected static final Path BUILD_OUTPUT_TestResources = getTestResourcePath("buildOutput");
 
  protected static ToolSourceError error(Path path, int line, int column, String errorMessage) {
    return new ToolSourceError(new SourceLineColumnLocation(path, line, column), errorMessage);
  }
View Full Code Here

TOP

Related Classes of melnorme.lang.tooling.ops.SourceLineColumnLocation

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.