Java Code Examples for com.intellij.lang.PsiBuilder.mark()

The following are Jave code examples for showing how to use mark() of the com.intellij.lang.PsiBuilder class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: reasonml-idea-plugin   File: CommonParser.java   Source Code and License Vote up 4 votes
private ParserScope mark(PsiBuilder builder, Stack<ParserScope> scopes, ParserScopeEnum resolution, IElementType tokenType) {
    ParserScope scope = new ParserScope(resolution, tokenType, builder.mark());
    scopes.push(scope);
    return scope;
}
 
Example 2
Project: reasonml-idea-plugin   File: CommonParser.java   Source Code and License Vote up 4 votes
protected boolean wrapWith(IElementType elementType, PsiBuilder builder) {
    PsiBuilder.Marker mark = builder.mark();
    advance(builder);
    mark.done(elementType);
    return true;
}