I'm a Scala Developer and Functional Programming enthusiast.
vpavkin / gorefactor Goto Github PK
View Code? Open in Web Editor NEWrefactoring tool for Go Programming Language
refactoring tool for Go Programming Language
I'm a Scala Developer and Functional Programming enthusiast.
method must contain one return statement
name can already exist in current scope
function can also have alias type symbol
http://golang.org/doc/go_spec.html#Expressions
section "Method Expressions"
fix parsing selectors at globals assignment
don't treat them as parameters and warn user
map does not assure correct order of results
when there is an import with a default name like:
import "st"
when renaming it, import decl must change to
import "st" newName
somehow allow user to define extern source folders.
for now goref.cfg file is the best option
now it is marked by Obj.Kind == -1.
Example - package unicode:
type CaseRange struct {
Lo int
Hi int
Delta d
}
for now types like d stay unresolved
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
program sould set all objects manually
like (*T).Method(...)
get rid of such gets. replace with sym.Name()
in the function that has parameter ...T, this parameter has type []T
add support for -vl and -vc flags, to add reciever to extracted method
program must locate imported packages, parse them and use to resolve names
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.