Package com.dci.intellij.dbn.language.common.element.impl

Examples of com.dci.intellij.dbn.language.common.element.impl.WrappingDefinition


    public AbstractElementTypeLookupCache(T elementType) {
        this.elementType = elementType;
        if (!elementType.isLeaf()) {
            landmarkTokens = new THashMap<TokenType, Boolean>();
        }
        WrappingDefinition wrapping = getElementType().getWrapping();
        if (wrapping != null) {
            TokenType wrappingBeginTokenType = wrapping.getBeginElementType().getTokenType();
            TokenType wrappingEndTokenType = wrapping.getEndElementType().getTokenType();
            allPossibleTokens.add(wrappingBeginTokenType);
            allPossibleTokens.add(wrappingEndTokenType);
            firstPossibleTokens.add(wrappingBeginTokenType);
        }
    }
View Full Code Here


    }

    public PsiBuilder.Marker mark(@Nullable ParsePathNode node){
        PsiBuilder.Marker marker = builder.mark();
        if (node != null) {
            WrappingDefinition wrapping = node.getElementType().getWrapping();
            if (wrapping != null) {
                TokenElementType beginElementType = wrapping.getBeginElementType();
                TokenType beginTokenType = beginElementType.getTokenType();
                while(builder.getTokenType() == beginTokenType) {
                    PsiBuilder.Marker beginTokenMarker = builder.mark();
                    advanceLexer(node.getParent(), true);
                    beginTokenMarker.done((IElementType) beginElementType);
View Full Code Here

    }

    public void markerDone(PsiBuilder.Marker marker, ElementType elementType, @Nullable ParsePathNode node) {
        if (marker != null) {
            if (node != null) {
                WrappingDefinition wrapping = node.getElementType().getWrapping();
                if (wrapping != null) {
                    TokenElementType endElementType = wrapping.getEndElementType();
                    TokenType endTokenType = endElementType.getTokenType();
                    while (builder.getTokenType() == endTokenType) {
                        PsiBuilder.Marker endTokenMarker = builder.mark();
                        advanceLexer(node, true);
                        endTokenMarker.done((IElementType) endElementType);
View Full Code Here

TOP

Related Classes of com.dci.intellij.dbn.language.common.element.impl.WrappingDefinition

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.