Examples of span()


Examples of edu.mit.csail.sdg.alloy4compiler.ast.ExprHasName.span()

         }
      }
      status=3;
      dup(p, n, false);
      ExprHasName dup = Decl.findDuplicateName(decls);
      if (dup!=null) throw new ErrorSyntax(dup.span(), "The parameter name \""+dup.label+"\" cannot appear more than once.");
      Func ans = new Func(p, isPrivate, n, decls, t, v);
      ArrayList<Func> list = funcs.get(n);
      if (list==null) { list = new ArrayList<Func>(); funcs.put(n, list); }
      list.add(ans);
   }
View Full Code Here

Examples of edu.mit.csail.sdg.alloy4compiler.ast.ExprHasName.span()

      final List<Decl> oldDecls = res.old2fields.get(res.new2old.get(s));
      if (oldDecls==null) return;
      final CompModule m = res.sig2module.get(s);
      final Context cx = new Context(m, warns);
      final ExprHasName dup = Decl.findDuplicateName(oldDecls);
      if (dup!=null) throw new ErrorSyntax(dup.span(), "sig \""+s+"\" cannot have 2 fields named \""+dup.label+"\"");
      for(final Decl d: oldDecls) {
         if (d.expr.mult()!=ExprUnary.Op.EXACTLYOF) {if (defined) continue;} else {if (!defined) continue;}
         // The name "this" does matter, since the parser and the typechecker both refer to it as "this"
         cx.rootfield = d;
         cx.rootsig = s;
View Full Code Here

Examples of edu.mit.csail.sdg.alloy4compiler.ast.ExprVar.span()

         }
      }
      final TempList<String> newlist = new TempList<String>(args==null ? 0 : args.size());
      if (args!=null) for(int i=0; i<args.size(); i++) {
         ExprVar arg=args.get(i);
         if (arg.label.length()==0)      throw new ErrorSyntax(arg.span(), "Argument cannot be empty.");
         if (arg.label.indexOf('@')>=0throw new ErrorSyntax(arg.span(), "Argument cannot contain the \'@\' chracter.");
         newlist.add(arg.label);
      }
      Open x = opens.get(as);
      if (x!=null) {
View Full Code Here

Examples of edu.mit.csail.sdg.alloy4compiler.ast.ExprVar.span()

      }
      final TempList<String> newlist = new TempList<String>(args==null ? 0 : args.size());
      if (args!=null) for(int i=0; i<args.size(); i++) {
         ExprVar arg=args.get(i);
         if (arg.label.length()==0)      throw new ErrorSyntax(arg.span(), "Argument cannot be empty.");
         if (arg.label.indexOf('@')>=0throw new ErrorSyntax(arg.span(), "Argument cannot contain the \'@\' chracter.");
         newlist.add(arg.label);
      }
      Open x = opens.get(as);
      if (x!=null) {
         // we allow this, especially because of util/sequniv
View Full Code Here

Examples of org.apache.flex.compiler.internal.tree.as.IdentifierNode.span()

    }

    protected final IdentifierNode build(Token token)
    {
        IdentifierNode name = new IdentifierNode(getText(token));
        name.span(token);
        return name;
    }

    @Override
    public IMetaTagsNode parse(Reader reader)
View Full Code Here

Examples of org.apache.flex.compiler.internal.tree.as.NamespaceIdentifierNode.span()

        retVal[1] = superNode;

        //add the fixed getter/setter pair
        GetterNode fixGetter = new GetterNode(null, null, new IdentifierNode("fixed"));
        NamespaceIdentifierNode pub = new NamespaceIdentifierNode(INamespaceConstants.public_);
        pub.span(-1, -1, -1, -1);
        fixGetter.setNamespace(pub);
        fixGetter.setType(null, new IdentifierNode(IASLanguageConstants.Boolean));
        retVal[2] = fixGetter;

        SetterNode fixSetter = new SetterNode(null, null, new IdentifierNode("fixed"));
View Full Code Here

Examples of org.apache.flex.compiler.internal.tree.as.NamespaceIdentifierNode.span()

        fixGetter.setType(null, new IdentifierNode(IASLanguageConstants.Boolean));
        retVal[2] = fixGetter;

        SetterNode fixSetter = new SetterNode(null, null, new IdentifierNode("fixed"));
        pub = new NamespaceIdentifierNode(INamespaceConstants.public_);
        pub.span(-1, -1, -1, -1);
        fixSetter.setNamespace(pub);
        fixSetter.setType(null, new IdentifierNode(IASLanguageConstants.void_));
        ParameterNode value = new ParameterNode(new IdentifierNode("value"));
        value.setType(null, new IdentifierNode(IASLanguageConstants.Boolean));
        fixSetter.getParametersContainerNode().addChild(value);
View Full Code Here

Examples of org.eclipse.jface.layout.GridDataFactory.span()

        final GridData spinnerLayoutData = factory.create();
        spinnerLayoutData.horizontalSpan = 1;
        spinnerLayoutData.grabExcessHorizontalSpace = false;
        spinnerLayoutData.verticalAlignment = SWT.CENTER;

        final GridData scaleLayoutData = factory.span(gridColumns - 1, 1).grab(true,
            false).create();

        if (minBounded && maxBounded)
        {
            createScale(parent);
View Full Code Here

Examples of org.eclipse.jface.layout.GridDataFactory.span()

 
  protected GridData layoutLastControl(Control lastControl, int numColumns, boolean expandLast) {
    GridDataFactory gdf = expandLast ?
        GridDataFactory.fillDefaults() :
        GridDataFactory.swtDefaults();
    GridData gridData = gdf.span(numColumns, 1).create();
    lastControl.setLayoutData(gridData);
    return gridData;
  }
 
}
View Full Code Here

Examples of org.eclipse.jface.layout.GridDataFactory.span()

          getModel().setVersion(version);
        }
      });

      // Rest is on a line of their own so they need to span 3 columns
      textGDFactory = textGDFactory.span(3, 1);
      textGDFactory.applyTo(versionText);

      toolkit.createLabel(client, UIPlugin.getLocalString("_UI_Author_label")); //$NON-NLS-1$

      authorText = toolkit.createText(client, null);
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.