Package ideah.lexer

Examples of ideah.lexer.HaskellTokenType


        final String newName = getNewName();
        String oldName = myPsiElement.getText();
        LexedIdentifier newId = LexedIdentifier.parseMaybeInfixPrefix(newName);
        LexedIdentifier oldId = LexedIdentifier.parseMaybeInfixPrefix(oldName);
        LOG.assertTrue(newId != null && oldId != null);
        HaskellTokenType newType = newId.type;
        HaskellTokenType oldType = oldId.type;
        String createdName = newName;
        boolean newNameOperator = HaskellTokenTypes.OPERATORS.contains(newType);
        if (!newNameOperator == HaskellTokenTypes.OPERATORS.contains(oldType)) {
            createdName = createNewName(newNameOperator, "operator", "variable", oldName, newName, "Identifier type change",
                "Do not perform rename", new RenameChange() {
View Full Code Here


    @Override
    protected boolean isPrefixInfixIdent() {
        ASTNode parentNode = getParent().getNode();
        ASTNode grandParentNode = parentNode.getTreeParent();
        HaskellTokenType infixPrefixIdentType = HaskellElementTypes.INFIX_PREFIX_IDENT;
        IElementType parentType = grandParentNode.getElementType() == infixPrefixIdentType ? infixPrefixIdentType : parentNode.getElementType();
        return parentType == infixPrefixIdentType;
    }
View Full Code Here

TOP

Related Classes of ideah.lexer.HaskellTokenType

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.