Examples of DeclarationType


Examples of com.redhat.ceylon.compiler.loader.ModelLoader.DeclarationType

    public static <DeclarationType extends ceylon.language.meta.declaration.Declaration>
        DeclarationType findDeclarationByName(Sequential<? extends DeclarationType> declarations, String name) {
        Iterator<? extends DeclarationType> iterator = declarations.iterator();
        Object it;
        while((it = iterator.next()) != finished_.get_()){
            @SuppressWarnings("unchecked")
            DeclarationType tp = (DeclarationType) it;
            if(tp.getName().equals(name))
                return tp;
        }
        return null;
    }
View Full Code Here

Examples of se.jbee.inject.DeclarationType

    Set<Type<?>> nullified = new HashSet<Type<?>>();
    for ( int i = 1; i < bindings.length; i++ ) {
      Binding<?> one = bindings[lastDistinctIndex];
      Binding<?> other = bindings[i];
      final boolean equalResource = one.resource.equalTo( other.resource );
      DeclarationType oneType = one.source.getType();
      DeclarationType otherType = other.source.getType();
      if ( equalResource && oneType.clashesWith( otherType ) ) {
        throw new IllegalStateException( "Duplicate binds:\n" + one + "\n" + other );
      }
      if ( other.source.getType() == DeclarationType.REQUIRED ) {
        required.add( other.resource.getType() );
      } else if ( equalResource && oneType.nullifiedBy( otherType ) ) {
        if ( i - 1 == lastDistinctIndex ) {
          uniques.remove( uniques.size() - 1 );
          nullified.add( one.resource.getType() );
        }
      } else if ( !equalResource || !otherType.replacedBy( oneType ) ) {
        uniques.add( other );
        lastDistinctIndex = i;
      }
    }
    if ( required.isEmpty() ) {
View Full Code Here

Examples of tree.expression.Declaration.DeclarationType

            super.put(name, declaration);
            return true;
        }
        if (decl instanceof Declaration)
        {
            DeclarationType foundType =
                    ((Declaration)decl).getDeclaratonType();
            DeclarationType addType =
                    ((Declaration)declaration).getDeclaratonType();
            if (foundType != addType ||
                    addType != DeclarationType.ClassVarDeclaration)
            {
View Full Code Here

Examples of tree.expression.Declaration.DeclarationType

        if (!status.isOK())
        {
            return status;
        }
       
        DeclarationType type = targetNode.getDeclaratonType();
        HaxeTree searchScope = null;
        switch (type)
        {
            case FunctionParameter:
                searchScope = TreeUtils.getParentFunction(targetNode);
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.