do not throw if ast not found

pull/7/head
yann300 8 years ago
parent 0061b3b997
commit 97f8454cae
  1. 7
      src/solidity/solidityProxy.js

@ -113,7 +113,12 @@ class SolidityProxy {
*/
ast (sourceLocation) {
var file = this.sourceList[sourceLocation.file]
return this.sources[file].AST
if (this.sources[file]) {
return this.sources[file].AST
} else {
console.log('AST not found for file id ' + sourceLocation.file)
return null
}
}
}

Loading…
Cancel
Save