Package ideah.util

Examples of ideah.util.LineCol


        // todo: pass all files to compiler at once (more effective?)
        for (VirtualFile file : toCompile) {
            for (GHCMessage message : LaunchGHC.compile(outputDir, file.getPath(), module, tests)) {
                VirtualFile errFile = LocalFileSystem.getInstance().findFileByPath(message.getFileName());
                String url = errFile == null ? message.getFileName() : errFile.getUrl();
                LineCol coord = message.getRange().start;
                context.addMessage(
                    message.getCategory(), message.getErrorMessage(),
                    url,
                    coord.line, coord.column
                );
View Full Code Here


        if (tokenType == HaskellTokenTypes.STRING) {
            if (rawText != null && rawText.rawText != null)
                return rawText.rawText; // Copied from the string literal. Copy as is.

            StringBuilder buffer = new StringBuilder(text.length());
            LineCol lineCol = LineCol.fromOffset(file, selectionStart);
            String indent;
            if (lineCol != null) {
                int column = lineCol.column - 1;
                indent = StringUtil.repeat(" ", column > 0 ? column - 1 : 0);
            } else {
View Full Code Here

        return new TextRange(0, getTextLength());
    }

    public PsiElement resolve() {
        PsiFile psiFile = getContainingFile();
        LineCol coord = LineCol.fromOffset(psiFile, getTextOffset());
        try {
            DeclarationPosition declaration = DeclarationPosition.get(psiFile, coord);
            return getElementAt(getProject(), declaration);
        } catch (ProcessCanceledException ex) {
            return null;
View Full Code Here

TOP

Related Classes of ideah.util.LineCol

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.