Permalink
Commits on Jun 9, 2012
  1. @leojay
  2. @leojay

    Add method "getBlock" for GoFunctionLiteral and all "for" statements.

    Don't visit null element.
    leojay committed Jun 9, 2012
  3. @leojay

    Make "GoElementVisitor" could visit "GoVarDeclaration" and "GoShortVa…

    …rDeclartion" and all 3 "for" statements.
    leojay committed Jun 9, 2012
  4. @leojay

    Put "missing return statement" error at the right curly of function b…

    …lock, and provide a quick fix.
    leojay committed Jun 8, 2012
Commits on Jun 8, 2012
  1. @mtoader

    Don't mark certain identifiers as variables.

    Signed-off-by: Mihai Claudiu Toader <mtoader@gmail.com>
    mtoader committed Jun 8, 2012
  2. @leojay
  3. @mtoader

    Fix variable resolution as a method return parameter.

    Signed-off-by: Mihai Claudiu Toader <mtoader@gmail.com>
    mtoader committed Jun 8, 2012
  4. @mtoader

    Fix another var resolution case with for and blocks.

    Signed-off-by: Mihai Claudiu Toader <mtoader@gmail.com>
    mtoader committed Jun 8, 2012
  5. @mtoader

    Fix NPE caused by returning a null array.

    Signed-off-by: Mihai Claudiu Toader <mtoader@gmail.com>
    mtoader committed Jun 8, 2012
  6. @mtoader

    Fix variable resolution as a val into a ranged for

    Signed-off-by: Mihai Claudiu Toader <mtoader@gmail.com>
    mtoader committed Jun 8, 2012
  7. @mtoader

    Added PsiResolving test cases.

    Test resolving of variables in for clauses/ranges.
    Test resolving of variables in simple method parameters.
    Test basic type name resolution.
    
    Signed-off-by: Mihai Claudiu Toader <mtoader@gmail.com>
    mtoader committed Jun 8, 2012
  8. @mtoader

    Added PSI nodes mapping the for statement declarations.

     Signed-off-by: Mihai Claudiu Toader <mtoader@gmail.com>
    mtoader committed Jun 7, 2012
  9. @mtoader

    Created basic implementation of a GoCallOrConversionExpression PSI node.

     New test cases and updated the old ones.
    
     Signed-off-by: Mihai Claudiu Toader <mtoader@gmail.com>
    mtoader committed Jun 8, 2012
  10. @mtoader

    Created GoExpressionStatement and marked a ShortVarDeclaration as sta…

    …tement.
    
     New test cases and updated the old ones.
    
     Signed-off-by: Mihai Claudiu Toader <mtoader@gmail.com>
    mtoader committed Jun 8, 2012
Commits on Jun 7, 2012
  1. @leojay
  2. @leojay
  3. @leojay

    Add coroutine support in unused variable inspection.

    Implement variadic usage inspection.
    
    Don't add repeated expressions when introducing variables/constants.
    leojay committed Jun 7, 2012
  4. @leojay
Commits on Jun 6, 2012
  1. @mtoader

    Resolve/refactorings on functions/methods and function literals.

     Changed the Psi for the Function/MethodDeclaration to return GoFunctionParameters directly (for both params and returns).
     Added PsiNode implementation of FunctionLiteral
     Solved resolve of variables to a method / function and function literal parameters.
    
     Signed-off-by: Mihai Claudiu Toader <mtoader@gmail.com>
    mtoader committed Jun 6, 2012
  2. @mtoader

    Added new test case for a new function literal type.

     Signed-off-by: Mihai Claudiu Toader <mtoader@gmail.com>
    mtoader committed Jun 6, 2012
  3. @mtoader

    Make the GoReturnStatement return a list of expressions.

     Signed-off-by: Mihai Claudiu Toader <mtoader@gmail.com>
    mtoader committed Jun 6, 2012
  4. @mtoader

    Added proper GoReturnStmt Implementation

     Fixed old/new test cases.
     It will return the expression if any (or null if none).
     It will not include final EOL if empty.
    
     Signed-off-by: Mihai Claudiu Toader <mtoader@gmail.com>
    mtoader committed Jun 6, 2012
  5. @leojay
  6. @leojay

    Implement following function declaration inspection:

    1. function has result but no return statement at the end
    2. result argument has the same name with function argument
    3. duplicate argument in function argument list.
    leojay committed Jun 6, 2012
Commits on Jun 5, 2012
  1. @mtoader

    Added new project file.

     Signed-off-by: Mihai Claudiu Toader <mtoader@gmail.com>
    mtoader committed Jun 5, 2012
  2. @mtoader

    Added addition and multiplication expression PSI. Fixed for/range err…

    …or parsing.
    
     Fixed old test cases and added new ones.
     Enabled a simple unresolved variable (by checking that the element doesn't resolve).
    
     Signed-off-by: Mihai Claudiu Toader <mtoader@gmail.com>
    mtoader committed Jun 5, 2012
  3. @mtoader

    Removed the ExpressionList construct from the parser.

     Changed the output of the AST elements to  display properly in the test cases which one are actual nodes and which one aren't.
     Removed getExpressionList() from GoConstDeclaration and GoVarDeclaration.
     Fixed test cases.
    
     Signed-off-by: Mihai Claudiu Toader <mtoader@gmail.com>
    mtoader committed Jun 5, 2012
  4. @leojay
  5. @leojay
  6. @mtoader @leojay

    Add a debugging tool to see which elements are proper GoPsi elements.

     Signed-off-by: Mihai Claudiu Toader <mtoader@gmail.com>
    mtoader committed with leojay Jun 5, 2012
  7. @mtoader @leojay

    Added and Psi node for an expression List.

     Updated TopLevel Const and Var declarations to use this to access the child expressions.
    
     Signed-off-by: Mihai Claudiu Toader <mtoader@gmail.com>
    mtoader committed with leojay Jun 5, 2012
  8. @mtoader @leojay

    Added static instance to GoLanguage. Renamed GoFileType static instan…

    …ce to INSTANCE.
    
     Signed-off-by: Mihai Claudiu Toader <mtoader@gmail.com>
    mtoader committed with leojay Jun 5, 2012
  9. @mtoader

    Add a debugging tool to see which elements are proper GoPsi elements.

     Signed-off-by: Mihai Claudiu Toader <mtoader@gmail.com>
    mtoader committed Jun 5, 2012
  10. @leojay

    Don't collect usage of other package variables and types.

    Don't check type field in composite literals.
    Add "ForRangeClause" test case.
    leojay committed Jun 5, 2012
  11. @mtoader

    Added and Psi node for an expression List.

     Updated TopLevel Const and Var declarations to use this to access the child expressions.
    
     Signed-off-by: Mihai Claudiu Toader <mtoader@gmail.com>
    mtoader committed Jun 5, 2012