constellation / az Goto Github PK
View Code? Open in Web Editor NEWECMAScript analyzing tools
Home Page: http://d.hatena.ne.jp/Constellation/
ECMAScript analyzing tools
Home Page: http://d.hatena.ne.jp/Constellation/
@constructor to FunctionDeclaration is not implemented yet.
/**
* @constructor
*/
function Test() { }
Test.prototype.getValue = function() { return "STRING"; }
/**
* @type {Test}
*/
var test;
test.<COMPLETION>
if we get the code like,
/**
* @param {function(string)} arg1
*/
function callLater(func) { }
and use it like,
callLater(funciton(target) {
target.<COMPLETION>
add string type information to target
if target script is,
var obj = {
x: 10,
y: 20,
t: function() {
this.<COMPLETION>
obj is broken, so function target t is not bound to object.
=> handling ObjectLiteral?
type expression ObjectLiteral is following,
{ { test: string } }
so, we should parse type expression with balancing BRACE( { / } )
such as:
var obj = {
target: function() {
var o = { test: "OK" };
o.<COMPLETION POINT>
completion is not fired.
because, ObjectLiteral expression is broken, so not defined in Recovery AST.
limit mutation in script file unit, and caching it. (refactoring browser)
add JSDocCollector pass and rm jsdoc code in BindingResolver.
and, add TypeExpression Identifier resolve code to BindingResolver, so use it in Interpreter
use JSDoc Information for CFA2
I think, we create AST from TypeExpression and Interpret in CFA2.
now, using byte offset information for completion.
but, if we use multibyte character like "おはよーおはよー", byteoffset and UTF-16 offset is not the same and cannot provide completion results.
so, use line/column information for completion.
add type registry 6612b46
faster implementation is requred.
type expression parser http://code.google.com/intl/ja/closure/compiler/docs/js-for-compiler.html#types
create server
first implementation
if target script is such as,
function Test() {
this.value = "OK";
}
Test.prototype.getValue = function() {
return this.value;
}
and, if getValue is not used in this function, now AbstractInterpreter calls getValue with this value undefined.
but, if we use completion in function getValue, this is not Test instance.
skip method
if target script is
var obj = {
v: 10,
publicMethod: function() {
this.<COMPLETION>
}
}
publicMethod function's this value (not called) to obj and complete it.
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.