* return 1;
*
* def foo3:
* return 3;
*/
CodeBlock file1a = createCodeBlock("1", "/file1.py", CodeBlock.Type.FILE, 0, 0, 3, 0);
CodeBlock funFoo1a = createCodeBlock(
file1a, "11", "foo1", CodeBlock.Type.FIELD, 0, 0, 1, 0);
CodeBlock funFoo3 = createCodeBlock(
file1a, "11", "foo3", CodeBlock.Type.FIELD, 1, 0, 2, 0);
/*
* /file1.py:
*
* def foo1:
* return 1;
*
* def foo2:
* return 2;
*/
CodeBlock file1b = createCodeBlock("2", "/file1.py", CodeBlock.Type.FILE, 0, 0, 3, 0);
CodeBlock funFoo1b = createCodeBlock(
file1b, "21", "foo1", CodeBlock.Type.FUNCTION, 0, 0, 0, 99);
CodeBlock funFoo2 = createCodeBlock(
file1b, "22", "foo2", CodeBlock.Type.FUNCTION, 1, 0, 1, 99);
JsoStringMap<CodeBlock> files = JsoStringMap.<CodeBlock>create();
files.put(file1a.getId(), file1a);
files.put(file1b.getId(), file1b);