Package org.zkoss.zuss.metainfo

Examples of org.zkoss.zuss.metainfo.VariableDefinition


      final char symbol = ((Symbol)t0).getValue();
      if (symbol == ':') { //variable definition
        final Expression expr = new Expression(t0.getLine());
          //note: expr is NOT a child of any node but part of VariableDefinition below
        parseExpression(ctx, expr, ';');
        new VariableDefinition(
          ctx.block.owner, name, expr, lineno);
        return;
      } else if (symbol == '{') { //mixin definition
        newBlock(ctx, new MixinDefinition(
          ctx.block.owner, name,
View Full Code Here


  }

  /** Generates definitions other than rules, styles and mixins. */
  private void outOther(Scope scope, List<String> outerSels, NodeInfo node) throws IOException {
    if (node instanceof VariableDefinition) {
      final VariableDefinition vdef = (VariableDefinition)node;
      scope.setVariable(vdef.getName(), evalDefinition(scope, vdef));
        //spec: evaluate when it is defined (not when it is used)
    } else if (node instanceof FunctionDefinition) {
      final FunctionDefinition fd = (FunctionDefinition)node;
      scope.setVariable(fd.getName(), fd);
    } else if (node instanceof MixinDefinition) {
View Full Code Here

TOP

Related Classes of org.zkoss.zuss.metainfo.VariableDefinition

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.