Examples of LocalScope


Examples of com.github.sommeri.less4j.core.compiler.scopes.local.LocalScope

public class NullScope extends BasicScope {

  private static final String NULL = "#null#";

  public NullScope() {
    super(new LocalScope(null, Arrays.asList(NULL), NULL), new ScopesTree());
  }
View Full Code Here

Examples of com.github.sommeri.less4j.core.compiler.scopes.local.LocalScope

  public static final String BODY_OWNER = "#body-owner#";
  public static final String DUMMY = "#dummy#";
  public static final String PLACEHOLDER = "#placeholder#";

  public static IScope createDefaultScope(ASTCssNode owner) {
    return new BasicScope(new LocalScope(owner, new ArrayList<String>(), DEFAULT), new ScopesTree());
  }
View Full Code Here

Examples of com.github.sommeri.less4j.core.compiler.scopes.local.LocalScope

  public static IScope createScope(ASTCssNode owner, IScope parent) {
    return createScope(owner, parent, SCOPE);
  }

  public static PlaceholderScope createPlaceholderScope(ASTCssNode owner, IScope parent) {
    PlaceholderScope result = new PlaceholderScope(parent, new LocalScope(owner, new ArrayList<String>(), PLACEHOLDER), new ScopesTree());
    return result;
  }
View Full Code Here

Examples of com.github.sommeri.less4j.core.compiler.scopes.local.LocalScope

  public static IScope createDummyScope() {
    return createScope(null, null, DUMMY);
  }

  public static IScope createDummyScope(ASTCssNode owner, String name) {
    return new BasicScope(new LocalScope(owner, Arrays.asList(name), DUMMY), new ScopesTree());
  }
View Full Code Here

Examples of com.github.sommeri.less4j.core.compiler.scopes.local.LocalScope

  public static IScope createDummyScope(ASTCssNode owner, String name) {
    return new BasicScope(new LocalScope(owner, Arrays.asList(name), DUMMY), new ScopesTree());
  }

  private static IScope createScope(ASTCssNode owner, IScope parent, String type) {
    BasicScope result = new BasicScope(new LocalScope(owner, new ArrayList<String>(), type), new ScopesTree());
    result.setParentKeepConsistency(parent);
    return result;
  }
View Full Code Here

Examples of com.hellblazer.slp.local.LocalScope

    /* (non-Javadoc)
     * @see com.hellblazer.slp.config.ServiceScopeConfiguration#construct()
     */
    @Override
    public ServiceScope construct() throws Exception {
        return new LocalScope(notificationThreads);
    }
View Full Code Here

Examples of org.cx4a.rsense.ruby.LocalScope

    public static void dummyCall(Graph graph, MethodDefNode node, Method method, IRubyObject receiver) {
        if (node.getBodyNode() != null) {
            Context context = graph.getRuntime().getContext();
            context.pushFrame(context.getFrameModule(), node.getName(), receiver, null, Visibility.PUBLIC);
            context.pushScope(new LocalScope(method.getModule()));
            graph.createVertex(node.getBodyNode());
            context.popScope();
            context.popFrame();
        }
        Logger.debug(SourceLocation.of(node), "dummy call: %s", method);
View Full Code Here

Examples of org.cx4a.rsense.ruby.LocalScope

        Ruby runtime = graph.getRuntime();
        Context context = runtime.getContext();

        Block block = attr.getBlock();
        Scope scope = new LocalScope(method.getModule());
        context.pushFrame(context.getFrameModule(), name, receiver, block, Visibility.PUBLIC);
        context.pushScope(scope);

        Template template = new Template(method, context.getCurrentFrame(), scope, attr);
        method.addTemplate(attr, template);
View Full Code Here

Examples of org.cx4a.rsense.ruby.LocalScope

        RubyModule klass = module.defineOrGetClassUnder(name, superClass, SourceLocation.of(node));

        if (klass != null) {
            context.pushFrame(klass, name, klass, null, Visibility.PUBLIC);
            context.pushScope(new LocalScope(klass));

            RuntimeHelper.classPartialUpdate(this, klass, node.getBodyNode());

            context.popScope();
            context.popFrame();
View Full Code Here

Examples of org.cx4a.rsense.ruby.LocalScope

        RubyModule module = enclosingModule.defineOrGetModuleUnder(name, SourceLocation.of(node));

        if (module != null) {
            context.pushFrame(module, name, module, null, Visibility.PUBLIC);
            context.pushScope(new LocalScope(module));

            RuntimeHelper.classPartialUpdate(this, module, node.getBodyNode());

            context.popScope();
            context.popFrame();
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.