Examples of IFunctionDefinition


Examples of org.apache.flex.compiler.definitions.IFunctionDefinition

        write(ASEmitterTokens.MEMBER_ACCESS);
        write(JSEmitterTokens.DEFINE_PROPERTY);
        writeNewline(ASEmitterTokens.PAREN_OPEN, true);

        // Type
        IFunctionDefinition definition = node.getDefinition();
        ITypeDefinition type = (ITypeDefinition) definition.getParent();
        write(type.getQualifiedName());
        if (!node.hasModifier(ASModifier.STATIC))
        {
            write(ASEmitterTokens.MEMBER_ACCESS);
            write(JSEmitterTokens.PROTOTYPE);
        }
        writeToken(ASEmitterTokens.COMMA);
        writeNewline();

        // name
        write(ASEmitterTokens.SINGLE_QUOTE);
        write(definition.getBaseName());
        write(ASEmitterTokens.SINGLE_QUOTE);
        writeToken(ASEmitterTokens.COMMA);
        writeNewline();

        // info object
View Full Code Here

Examples of org.apache.flex.compiler.definitions.IFunctionDefinition

        project = getWalker().getProject();

        IClassDefinition definition = node.getDefinition();

        IFunctionDefinition ctorDefinition = definition.getConstructor();

        // Static-only (Singleton) classes may not have a constructor
        if (ctorDefinition != null)
        {
            IFunctionNode ctorNode = (IFunctionNode) ctorDefinition.getNode();
            if (ctorNode != null)
            {
                // constructor
                emitMethod(ctorNode);
                write(ASEmitterTokens.SEMICOLON);
View Full Code Here

Examples of org.apache.flex.compiler.definitions.IFunctionDefinition

    protected void emitObjectDefineProperty(IAccessorNode node)
    {
        FunctionNode fn = (FunctionNode) node;
        fn.parseFunctionBody(problems);

        IFunctionDefinition definition = node.getDefinition();
        ITypeDefinition type = (ITypeDefinition) definition.getParent();

        if (project == null)
            project = getWalker().getProject();

        getDoc().emitMethodDoc(fn, project);
View Full Code Here

Examples of org.apache.flex.compiler.definitions.IFunctionDefinition

        }

        FunctionNode fn = (FunctionNode) node;
        fn.parseFunctionBody(problems);

        IFunctionDefinition definition = node.getDefinition();

        emitNamespaceIdentifier(node);
        emitModifiers(definition);
        emitMemberKeyword(node);
View Full Code Here

Examples of org.apache.flex.compiler.definitions.IFunctionDefinition

        write("Object.defineProperty(");
        indentPush();
        write("\n");

        // Type
        IFunctionDefinition definition = node.getDefinition();
        ITypeDefinition type = (ITypeDefinition) definition.getParent();
        write(type.getQualifiedName());
        write(".");
        write("prototype");
        write(", ");
        write("\n");

        // name
        write("'");
        write(definition.getBaseName());
        write("'");
        write(", ");
        write("\n");

        // info object
View Full Code Here

Examples of org.xvr.s3D.IFunctionDefinition

      return ((classDeclImpl)element).getName();
     
   
    if(element instanceof funcDecl){
      //funcDecl e = ;
      IFunctionDefinition f = ((funcDecl) element).getBase();
      builder = new StringBuilder(f.getName().getFunctionName());
     
      formalParamListImpl params = (formalParamListImpl) f.getParams();
      if(params != null){
        EList<String> list = params.getParams();
        Iterator<String> it = list.iterator();
        builder.append("(");
        while(it.hasNext()){
          builder.append(it.next());
          if(it.hasNext())
            builder.append(",");
        }
        builder.append(")");
      }
      return builder.toString();
    }
   
    if(element instanceof function){
      IFunctionDefinition f = ((function) element).getDeclaration();
      builder = new StringBuilder(f.getName().getFunctionName());
      formalParamListImpl params = (formalParamListImpl) f.getParams();
      if(params != null){
        EList<String> list = params.getParams();
        Iterator<String> it = list.iterator();
        builder.append("(");
        while(it.hasNext()){
View Full Code Here

Examples of org.xvr.s3D.IFunctionDefinition

   * <!-- end-user-doc -->
   * @generated
   */
  public NotificationChain basicSetBase(IFunctionDefinition newBase, NotificationChain msgs)
  {
    IFunctionDefinition oldBase = base;
    base = newBase;
    if (eNotificationRequired())
    {
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, S3DPackage.FUNC_DECL__BASE, oldBase, newBase);
      if (msgs == null) msgs = notification; else msgs.add(notification);
View Full Code Here

Examples of org.xvr.s3D.IFunctionDefinition

   * <!-- end-user-doc -->
   * @generated
   */
  public NotificationChain basicSetDeclaration(IFunctionDefinition newDeclaration, NotificationChain msgs)
  {
    IFunctionDefinition oldDeclaration = declaration;
    declaration = newDeclaration;
    if (eNotificationRequired())
    {
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, S3DPackage.FUNCTION__DECLARATION, oldDeclaration, newDeclaration);
      if (msgs == null) msgs = notification; else msgs.add(notification);
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.