Examples of SourceLocation


Examples of org.codehaus.backport175.compiler.SourceLocation

            for (Iterator iterator = compilerExceptions.iterator(); iterator.hasNext();) {
                CompilerException compilerException = (CompilerException) iterator.next();
                System.out.println("ERROR: "+ compilerException.toString());
            }
            for (Iterator iterator = acceptedLocations.iterator(); iterator.hasNext();) {
                SourceLocation sourceLocation = (SourceLocation) iterator.next();
                System.out.println("OK: " + sourceLocation.toString());
            }
        }
View Full Code Here

Examples of org.cx4a.rsense.util.SourceLocation

                && (event.type == EventType.DEFINE
                    || event.type == EventType.CLASS
                    || event.type == EventType.MODULE)
                && event.name != null
                && event.node != null) {
                SourceLocation loc = SourceLocation.of(event.node);
                if (loc != null
                    && line >= loc.getLine()
                    && line - closest > line - loc.getLine()) {
                    closest = loc.getLine();
                    name = event.name;
                }
            }
        }
View Full Code Here

Examples of org.eclipse.m2e.core.internal.markers.SourceLocation

        {
            List<MavenProblemInfo> errors = new ArrayList<MavenProblemInfo>();

            for ( MojoExecution mojoExecution : executions )
            {
                SourceLocation location = SourceLocationHelper.findLocation( mojoExecution.getPlugin(), "executions" );
                MavenProblemInfo problem =
                    new MavenProblemInfo( "Duplicate " + mojoExecution.getGoal()
                        + " executions found. Please remove any explicitly defined " + mojoExecution.getGoal()
                        + " executions in your pom.xml.", IMarker.SEVERITY_ERROR, location );
                errors.add( problem );
View Full Code Here

Examples of org.gradle.model.dsl.internal.transform.SourceLocation

        this.ruleLocationExtractor = ruleLocationExtractor;
    }

    public void configure(String modelPathString, Closure<?> configuration) {
        List<ModelReference<?>> references = inputPathsExtractor.transform(configuration);
        SourceLocation sourceLocation = ruleLocationExtractor.transform(configuration);
        ModelPath modelPath = ModelPath.path(modelPathString);
        Closure<?> reownered = configuration.rehydrate(null, owner, thisObject);
        modelRegistry.mutate(new ClosureBackedModelMutator(reownered, references, modelPath, sourceLocation));
    }
View Full Code Here

Examples of org.rstudio.studio.client.common.synctex.model.SourceLocation

      doSynctexSearch(true);
   }
  
   private void doSynctexSearch(boolean fromClick)
   {
      SourceLocation sourceLocation = getSelectionAsSourceLocation(fromClick);
      if (sourceLocation == null)
         return;
     
      // compute the target pdf
      FileSystemItem editorFile = FileSystemItem.createFile(
View Full Code Here

Examples of org.sugarj.common.errors.SourceLocation

      int colStart = s.indexOf("^", colMarkerStart);
      int colEnd = s.lastIndexOf("^", colMarkerEnd);
      int msgStart = colMarkerEnd + 1;
      int msgEnd = s.indexOf("\n", msgStart);
      String msg = s.substring(msgStart, msgEnd);
      errors.add(Pair.create(new SourceLocation(new AbsolutePath(file), line, line, colStart, colEnd), msg));
      index = msgEnd + 1;
    }
    return errors;
  }
View Full Code Here

Examples of org.teavm.debugging.information.SourceLocation

    }

    private void emitCFG(DebugInformationEmitter emitter, Program program) {
        Map<InstructionLocation, InstructionLocation[]> cfg = ProgramUtils.getLocationCFG(program);
        for (Map.Entry<InstructionLocation, InstructionLocation[]> entry : cfg.entrySet()) {
            SourceLocation location = map(entry.getKey());
            SourceLocation[] successors = new SourceLocation[entry.getValue().length];
            for (int i = 0; i < entry.getValue().length; ++i) {
                successors[i] = map(entry.getValue()[i]);
            }
            emitter.addSuccessors(location, successors);
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.