Java Code Examples for com.intellij.psi.TokenType#DUMMY_HOLDER
The following examples show how to use
com.intellij.psi.TokenType#DUMMY_HOLDER .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: HaxeConditionalCompilationLexerSupport.java From intellij-haxe with Apache License 2.0 | 5 votes |
public static Type deriveBlockType(@Nullable IElementType el) { if (null == el || el == TokenType.DUMMY_HOLDER) { return Type.ROOT; } if (el == PPIF) { return Type.IF; } else if (el == PPELSEIF) { return Type.ELSEIF; } else if (el == PPELSE) { return Type.ELSE; } else if (el == PPEND) { return Type.END; } else { LOG.debug("Unrecognized compiler conditional is being used."); } return Type.UNKNOWN; }
Example 2
Source File: TreeElement.java From consulo with Apache License 2.0 | 5 votes |
final void setTreeParent(CompositeElement parent) { if (parent == myParent) return; PsiFileImpl file = getCachedFile(this); if (file != null) { file.beforeAstChange(); } myParent = parent; if (parent != null && parent.getElementType() != TokenType.DUMMY_HOLDER) { DebugUtil.revalidateNode(this); } }
Example 3
Source File: HaxeDummyASTNode.java From intellij-haxe with Apache License 2.0 | 4 votes |
HaxeDummyASTNode(String text) { super(TokenType.DUMMY_HOLDER, text); }
Example 4
Source File: DummyHolderElement.java From consulo with Apache License 2.0 | 4 votes |
public DummyHolderElement(CharSequence text) { super(TokenType.DUMMY_HOLDER, text); }