Package org.python.pydev.parser.jython

Examples of org.python.pydev.parser.jython.TokenMgrError


                errorEnd = endLine.getOffset() + errorToken.endColumn;
            }
            message = parseErr.getMessage();

        } else if (error instanceof TokenMgrError) {
            TokenMgrError tokenErr = (TokenMgrError) error;
            IRegion startLine = doc.getLineInformation(tokenErr.errorLine - 1);
            errorStart = startLine.getOffset();
            errorEnd = startLine.getOffset() + tokenErr.errorColumn;
            message = tokenErr.getMessage();
        } else {
            Log.log("Error, expecting ParseException or TokenMgrError. Received: " + error);
            return new ErrorDescription(null, 0, 0, 0);
        }
        errorLine = doc.getLineOfOffset(errorStart);
View Full Code Here


    //Removed Reinit}

    /** Switch to specified lex state. */
    public void SwitchTo(int lexState) {
        if (lexState >= 24 || lexState < 0)
            throw new TokenMgrError("Error: Ignoring invalid lexical state : " + lexState + ". State unchanged.",
                    TokenMgrError.INVALID_LEXICAL_STATE);
        else
            curLexState = lexState;
    }
View Full Code Here

                }
                if (!EOFSeen) {
                    input_stream.backup(1);
                    error_after = curPos <= 1 ? "" : input_stream.GetImage();
                }
                throw new TokenMgrError(EOFSeen, curLexState, error_line, error_column, error_after, curChar,
                        TokenMgrError.LEXICAL_ERROR);
            }
        }
    }
View Full Code Here

                    while (level > 0 && indent < indentation[level]) {
                        level--;
                        t = addDedent(t);
                    }
                    if (indent != indentation[level]) {
                        throw new TokenMgrError("inconsistent dedent", t.endLine, t.endColumn);
                    }
                    t.next = null;
                }
                break;
            case 17:
View Full Code Here

    //Removed Reinit}

    /** Switch to specified lex state. */
    public void SwitchTo(int lexState) {
        if (lexState >= 24 || lexState < 0)
            throw new TokenMgrError("Error: Ignoring invalid lexical state : " + lexState + ". State unchanged.",
                    TokenMgrError.INVALID_LEXICAL_STATE);
        else
            curLexState = lexState;
    }
View Full Code Here

                }
                if (!EOFSeen) {
                    input_stream.backup(1);
                    error_after = curPos <= 1 ? "" : input_stream.GetImage();
                }
                throw new TokenMgrError(EOFSeen, curLexState, error_line, error_column, error_after, curChar,
                        TokenMgrError.LEXICAL_ERROR);
            }
        }
    }
View Full Code Here

                    while (level > 0 && indent < indentation[level]) {
                        level--;
                        t = addDedent(t);
                    }
                    if (indent != indentation[level]) {
                        throw new TokenMgrError("inconsistent dedent", t.endLine, t.endColumn);
                    }
                    t.next = null;
                }
                break;
            case 17:
View Full Code Here

    //Removed Reinit}

    /** Switch to specified lex state. */
    public void SwitchTo(int lexState) {
        if (lexState >= 18 || lexState < 0)
            throw new TokenMgrError("Error: Ignoring invalid lexical state : " + lexState + ". State unchanged.",
                    TokenMgrError.INVALID_LEXICAL_STATE);
        else
            curLexState = lexState;
    }
View Full Code Here

                }
                if (!EOFSeen) {
                    input_stream.backup(1);
                    error_after = curPos <= 1 ? "" : input_stream.GetImage();
                }
                throw new TokenMgrError(EOFSeen, curLexState, error_line, error_column, error_after, curChar,
                        TokenMgrError.LEXICAL_ERROR);
            }
        }
    }
View Full Code Here

                    while (level > 0 && indent < indentation[level]) {
                        level--;
                        t = addDedent(t);
                    }
                    if (indent != indentation[level]) {
                        throw new TokenMgrError("inconsistent dedent", t.endLine, t.endColumn);
                    }
                    t.next = null;
                }
                break;
            case 17:
View Full Code Here

TOP

Related Classes of org.python.pydev.parser.jython.TokenMgrError

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.