Examples of ASTBuilder


Examples of flash.tools.debugger.expression.ASTBuilder

   * We can get at files by name or module id, eventually we will put functions in here too
   */

  public ExpressionCache(DebugCLI cli)
  {
    m_builder = new ASTBuilder(true); // allow fdb's "*x" and "x." indirection operators
    m_expressions = new Vector<Object>();
    m_props = new IntProperties();
    m_cli = cli;
  }
View Full Code Here

Examples of flash.tools.debugger.expression.ASTBuilder

   * We can get at files by name or module id, eventually we will put functions in here too
   */

  public ExpressionCache(DebugCLI cli)
  {
    m_builder = new ASTBuilder(true); // allow fdb's "*x" and "x." indirection operators
    m_expressions = new Vector<Object>();
    m_props = new IntProperties();
    m_cli = cli;
  }
View Full Code Here

Examples of org.codehaus.groovy.ast.builder.AstBuilder

        String source = context.getContents();
        if (source == null) {
            return;
        }

        List<ASTNode> astNodes = new AstBuilder().buildFromString(source);
        GroovyCodeVisitor visitor = new CodeVisitorSupport() {
            private List<MethodCallExpression> mMethodCallStack = Lists.newArrayList();
            @Override
            public void visitMethodCallExpression(MethodCallExpression expression) {
                mMethodCallStack.add(expression);
View Full Code Here

Examples of org.codehaus.groovy.ast.builder.AstBuilder

        String source = context.getContents();
        if (source == null) {
            return;
        }

        List<ASTNode> astNodes = new AstBuilder().buildFromString(source);
        GroovyCodeVisitor visitor = new CodeVisitorSupport() {
            @Override
            public void visitMethodCallExpression(MethodCallExpression expression) {
                super.visitMethodCallExpression(expression);
                Expression arguments = expression.getArguments();
View Full Code Here

Examples of org.codehaus.groovy.ast.builder.AstBuilder

        String source = context.getContents();
        if (source == null) {
            return;
        }

        List<ASTNode> astNodes = new AstBuilder().buildFromString(source);
        GroovyCodeVisitor visitor = new CodeVisitorSupport() {
            private List<MethodCallExpression> mMethodCallStack = Lists.newArrayList();
            @Override
            public void visitMethodCallExpression(MethodCallExpression expression) {
                mMethodCallStack.add(expression);
View Full Code Here

Examples of org.rascalmpl.parser.ASTBuilder

    IConstructor tree = eval.parseModule(eval, URIUtil.createRascalModule(name));
    return getBuilder().buildModule(tree);
  }
 
  private static ASTBuilder getBuilder() {
    return new ASTBuilder();
  }
View Full Code Here

Examples of org.rascalmpl.parser.ASTBuilder

   
    if (!noBacktickOutsideStringConstant(command)) {
      tree = org.rascalmpl.semantics.dynamic.Import.parseFragments(this, tree, location, getCurrentModuleEnvironment());
    }
   
    Command stat = new ASTBuilder().buildCommand(tree);
   
    if (stat == null) {
      throw new ImplementationError("Disambiguation failed: it removed all alternatives");
    }
View Full Code Here

Examples of org.rascalmpl.parser.ASTBuilder

 
    if (!noBacktickOutsideStringConstant(command)) {
      tree = org.rascalmpl.semantics.dynamic.Import.parseFragments(this, tree, location, getCurrentModuleEnvironment());
    }

    Commands stat = new ASTBuilder().buildCommands(tree);
   
    if (stat == null) {
      throw new ImplementationError("Disambiguation failed: it removed all alternatives");
    }
View Full Code Here

Examples of org.rascalmpl.parser.ASTBuilder

    // the complete URI up front, we don't need to keep providing it later.
    StringBuilder sb = new StringBuilder();
    sb.append("public ").append(tagStr).append("Type ").append(tagStr).append("() { ");
    sb.append(" return getTypedResource(").append(uriLoc.toString()).append(",#").append(tagStr).append("Type); }");
    IConstructor declTree = ctx.getEvaluator().parseCommand(ctx.getEvaluator().getMonitor(), sb.toString(), ctx.getCurrentAST().getLocation().getURI());
    Command cmd = new ASTBuilder().buildCommand(declTree);
    Environment env = ctx.getCurrentEnvt();
    ctx.setCurrentEnvt(env.getRoot());
    Result<IValue> fun0 = ctx.getEvaluator().eval(ctx.getEvaluator().getMonitor(), cmd);
    ctx.unwind(env);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.