@harmoniclabs/pebble 0.1.0-dev8 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/parser/Parser.js +2 -0
- package/package.json +1 -1
package/dist/parser/Parser.js
CHANGED
|
@@ -246,6 +246,7 @@ export class Parser extends DiagnosticEmitter {
|
|
|
246
246
|
const proposeMethods = [];
|
|
247
247
|
const voteMethods = [];
|
|
248
248
|
while (!tn.skip(Token.CloseBrace)) {
|
|
249
|
+
tn.skip(Token.Semicolon); // if any
|
|
249
250
|
const thisStartPos = tn.tokenPos;
|
|
250
251
|
const prevState = tn.mark();
|
|
251
252
|
const nextToken = tn.next();
|
|
@@ -291,6 +292,7 @@ export class Parser extends DiagnosticEmitter {
|
|
|
291
292
|
break;
|
|
292
293
|
default: {
|
|
293
294
|
tn.reset(prevState);
|
|
295
|
+
console.log(Token[nextToken]);
|
|
294
296
|
return this.error(DiagnosticCode._0_expected, tn.range(), "contract member declaration");
|
|
295
297
|
}
|
|
296
298
|
}
|
package/package.json
CHANGED