Giter Site home page Giter Site logo

gorefactor's Introduction

gorefactor's People

Contributors

vpavkin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

gorefactor's Issues

fix package name renaming

when there is an import with a default name like:

import "st"

when renaming it, import decl must change to

import "st" newName

extern sources support

somehow allow user to define extern source folders.
for now goref.cfg file is the best option

go compiler message when calling an alias's method

package main

type T struct {
    X P
}
type P *T

func (p T) Meth(){
    p.X = new(T)
}

func Method2() {
    var ttt P = P(new(T));
    ttt.Meth();
    ttt.X = ttt;
}

compiler says following:
ttt.Meth undefined (type T has no field Meth)
but ttt has type P

extract method scope issue

  1. when extracted code declares a symbol and not uses it (symbol is used later), compiler throws an error for the extracted method: symbol declared and not used.
  2. when extracted code declares a symbol, and it is used later in non-extracted code, compiler throws error for this usage(s): undefined symbol_name

Objects

program sould set all objects manually

sym.Obj.Name

get rid of such gets. replace with sym.Name()

Ellipsis

in the function that has parameter ...T, this parameter has type []T

Imports support

program must locate imported packages, parse them and use to resolve names

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.