Package com.sun.tools.javac.util.Position

Examples of com.sun.tools.javac.util.Position.LineMap


    private void benchmarkParse(String file) throws Exception{
        String readSource = readFile(new File(getPackagePath(), file));
        String source = readSource.toString();
        char[] chars = source.toCharArray();
        LineMap map = Position.makeLineMap(chars, chars.length, false);
        System.err.println(map.hashCode());
       
        ANTLRStringStream input = new ANTLRStringStream(source);
        CeylonLexer lexer = new CeylonLexer(input);

        CommonTokenStream tokens = new CommonTokenStream(lexer);
View Full Code Here


            VirtualFile file = vfs.getFromFile(sourceFile);
            VirtualFile srcDir = vfs.getFromFile(getSrcDir(sourceFile));
           
            String source = readSource.toString();
            char[] chars = source.toCharArray();
            LineMap map = Position.makeLineMap(chars, chars.length, false);
           
            PhasedUnit phasedUnit = null;
           
            PhasedUnit externalPhasedUnit = compilerDelegate.getExternalSourcePhasedUnit(srcDir, file);
           
View Full Code Here

TOP

Related Classes of com.sun.tools.javac.util.Position.LineMap

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.