Java 类com.intellij.lang.javascript.psi.impl.JSExpressionImpl 实例源码

项目:needsmoredojo    文件:BasicPsiElements.java   
public static JSExpression expressionFromText(final String text)
{
    return new JSExpressionImpl(mock(ASTNode.class)) {
        @Override
        public String getText()
        {
            return text;
        }
    };
}