/*
* /window.js:
*
* Window.prototype.doThis = function() {}
*/
CodeBlock fileWindow = createCodeBlock("1", "/bar.js", CodeBlock.Type.FILE, 0, 0, 0, 99);
createCodeBlock(fileWindow, "11", "Window", CodeBlock.Type.FIELD, 0, 0, 0, 99);
CodeBlock typeWindow = createCodeBlock(fileWindow, "12", "Window.prototype",
CodeBlock.Type.FIELD, 0, 0, 0, 99);
createCodeBlock(fileWindow, "13", "Window.prototype.doThis",
CodeBlock.Type.FUNCTION, 0, 0, 0, 99);
/*
* /jquery.js:
*
* Window.prototype.doThat = function() {}
*/
CodeBlock fileJquery = createCodeBlock("0", "/jquery.js", CodeBlock.Type.FILE, 0, 0, 0, 99);
CodeBlock varJqueryWindow = createCodeBlock(fileJquery, "11", "Window",
CodeBlock.Type.FIELD, 0, 0, 0, 99);
createCodeBlock(fileJquery, "12", "Window.prototype",
CodeBlock.Type.FIELD, 0, 0, 0, 99);
createCodeBlock(fileJquery, "13", "Window.prototype.doThat",
CodeBlock.Type.FUNCTION, 0, 0, 0, 99);
/*
* /decl.js:
*
* // @type{Window}
* var top;
*/
CodeBlock fileDecl = createCodeBlock("2", "/decl.js", CodeBlock.Type.FILE, 0, 0, 0, 99);
CodeBlock varWindow = createCodeBlock(fileDecl, "11", "top",
CodeBlock.Type.FIELD, 0, 0, 0, 99);
JsoStringMap<CodeBlock> files = JsoStringMap.<CodeBlock>create();
files.put(fileWindow.getName(), fileWindow);
files.put(fileJquery.getName(), fileJquery);