本文整理汇总了Java中com.intellij.psi.TokenType.DUMMY_HOLDER属性的典型用法代码示例。如果您正苦于以下问题:Java TokenType.DUMMY_HOLDER属性的具体用法?Java TokenType.DUMMY_HOLDER怎么用?Java TokenType.DUMMY_HOLDER使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类com.intellij.psi.TokenType
的用法示例。
在下文中一共展示了TokenType.DUMMY_HOLDER属性的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: lazy
@NotNull
public static LazyParseableElement lazy(@NotNull final ILazyParseableElementType type, CharSequence text) {
final ASTNode node = type.createNode(text);
if (node != null) return (LazyParseableElement)node;
if (type == TokenType.CODE_FRAGMENT) {
return new CodeFragmentElement(null);
}
else if (type == TokenType.DUMMY_HOLDER) {
return new DummyHolderElement(text);
}
final LazyParseableElement customLazy = factory(type).createLazy(type, text);
return customLazy != null ? customLazy : DefaultFactoryHolder.DEFAULT.createLazy(type, text);
}
示例2: getChildDefaultIndent
@Nullable
protected Indent getChildDefaultIndent() {
if (myNode.getElementType() == XmlElementType.HTML_DOCUMENT) {
return Indent.getNoneIndent();
}
if (myNode.getElementType() == TokenType.DUMMY_HOLDER) {
return Indent.getNoneIndent();
}
if (myNode.getElementType() == XmlElementType.XML_PROLOG) {
return Indent.getNoneIndent();
}
else {
return null;
}
}
示例3: DummyHolderElement
public DummyHolderElement(@NotNull CharSequence text) {
super(TokenType.DUMMY_HOLDER, text);
}
示例4: setTreeParent
final void setTreeParent(CompositeElement parent) {
myParent = parent;
if (parent != null && parent.getElementType() != TokenType.DUMMY_HOLDER) {
DebugUtil.revalidateNode(this);
}
}