Package com.googlecode.goclipse.go.lang.model

Examples of com.googlecode.goclipse.go.lang.model.Type


        } else {
          str.append(node.toString());
        }
       
        if (node instanceof Type) {
          Type type = (Type)node;
         
          if (type.getTypeClass() != TypeClass.UNKNOWN) {
            String typeName = type.getTypeClass().name().toLowerCase();
           
            str.append(" " + typeName, StyledString.DECORATIONS_STYLER);
          }
        }
       
View Full Code Here


      else if(TokenType.BOOL.equals(tokenType))  {type.setTypeClass(TypeClass.BOOL);    text.append(": "+TokenType.BOOL.getText());}
      else if(TokenType.CHAN.equals(tokenType))  {type.setTypeClass(TypeClass.CHAN);    text.append(": "+TokenType.CHAN.getText());}
      else if(TokenType.MAP.equals(tokenType))  {type.setTypeClass(TypeClass.MAP);     text.append(": "+TokenType.MAP.getText());}
      else {
        type.setTypeClass(TypeClass.UNKNOWN);
        type       = new Type();
        type.setFile(file);
       
        comment     = new StringBuffer();
        state       = State.START;
      }
      type.setName(text.toString());
      types.add(type);
     
      if (scopeParser!=null){
        scopeParser.addType(type);
      }
     
      text          = new StringBuffer();
      type       = new Type();
      type.setFile(file);
     
      comment     = new StringBuffer();
      state       = State.START;
      break;
     
    case CONSUME_STRUCT:
      if(TokenType.RBRACE.equals(tokenType)){
        types.add(type);
        type       = new Type();
        type.setFile(file);
       
        comment     = new StringBuffer();
        state       = State.START;
      }
      else if(TokenType.LBRACE.equals(tokenType)){
       
      }
      else if(TokenType.IDENTIFIER.equals(tokenType)){
        var = new Var();
      }
      break;
     
    case CONSUME_INTERFACE:
      types.add(type);
      if (scopeParser!=null){
        scopeParser.addType(type);
      }
      type       = new Type();
      type.setFile(file);
     
      comment     = new StringBuffer();
      state       = State.START;
      break;
View Full Code Here

TOP

Related Classes of com.googlecode.goclipse.go.lang.model.Type

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.