Package com.github.sommeri.less4j.core.compiler.scopes.local

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


  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

  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

  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

  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

TOP

Related Classes of com.github.sommeri.less4j.core.compiler.scopes.local.LocalScope

Copyright © 2018 www.massapicom. 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.