We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
much of the code in the following 2 methods are identical
public getDefinitions(): string { let g = new Graph<Class>(); this.classes.forEach((c) => { g.addNode(c.getName(), c); c.getDependencies().forEach((d) => { g.addEdge(c.getName(), d); } ); }); let result = ""; while (g.countNodes() > 0) { let leaf = g.popLeaf(); result = result + leaf.getDefinition() + "\n"; } return result; } public getExceptions(): string { let g = new Graph<Class>(); this.exceptions.forEach((c) => { g.addNode(c.getName(), c); c.getDependencies().forEach((d) => { g.addEdge(c.getName(), d); } ); }); let result = ""; while (g.countNodes() > 0) { let leaf = g.popLeaf(); result = result + leaf.getDefinition() + "\n" + leaf.getImplementation() + "\n"; } return result; }
The text was updated successfully, but these errors were encountered:
plus interfaces (in a bit)
Sorry, something went wrong.
refactoring #45
8fe0c8b
No branches or pull requests
much of the code in the following 2 methods are identical
The text was updated successfully, but these errors were encountered: