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

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


          link[0] = h;
          return link;
        }
       
        // Is there a variable?
        Function f = cc1.getFunctionForName(word+"()");
        if (f != null) {
          h.node = f;
          h.region = wordRegion;
          h.text = word;
          h.type = "go variable";
View Full Code Here


    @Override
    public StyledString getStyledText(Object element) {
      StyledString str = new StyledString();
     
      if (element instanceof Function) {
        Function function = (Function)element;
       
        String[] strs = splitFunctionName(function.getName());
       
        str.append(strs[0]);
       
        if (strs.length > 1) {
          str.append(strs[1], StyledString.DECORATIONS_STYLER);
View Full Code Here

          // add it to current scope
          if (scopeParser!=null){
            scopeParser.addFunction(func);
          }
         
          func = new Function();
          func.setFile(file);
          comment = new StringBuffer();
          state = State.START;
        }
        else {
View Full Code Here

            // parse test file and mark correctly failed tests
            File        f       = parent.getLocation().toFile();
            CodeContext context = CodeContext.getTestCodeContext(activeTest.project, f);
           
            for (String name:failedTests){
              Function func = context.getFunctionForName(name+"()");
              if(func != null) {
                IResource res = parent.findMember(func.getFile().getName());
                MarkerUtilities.addMarker(res, func.getLine(), name+" failed.", IMarker.SEVERITY_ERROR);
              }
            }
          }
         
        } catch (NumberFormatException e) {
View Full Code Here

TOP

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

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.