solidity-parser-diligence
Advanced tools
Comparing version 0.4.16 to 0.4.17
@@ -135,2 +135,3 @@ 'use strict'; | ||
var isReceiveEther = false; | ||
var isVirtual = false; | ||
var name = null; | ||
@@ -231,2 +232,7 @@ var parameters = []; | ||
// check if function is virtual | ||
if (ctx.modifierList().VirtualKeyword(0)) { | ||
isVirtual = true; | ||
} | ||
isConstructor = name === this._currentContract; | ||
@@ -247,2 +253,3 @@ isFallback = name === ''; | ||
isFallback: isFallback, | ||
isVirtual: isVirtual, | ||
stateMutability: stateMutability | ||
@@ -249,0 +256,0 @@ }; |
@@ -5,3 +5,3 @@ 'use strict'; | ||
/* babel-plugin-inline-import './lib/Solidity.tokens' */var tokens = 'T__0=1\nT__1=2\nT__2=3\nT__3=4\nT__4=5\nT__5=6\nT__6=7\nT__7=8\nT__8=9\nT__9=10\nT__10=11\nT__11=12\nT__12=13\nT__13=14\nT__14=15\nT__15=16\nT__16=17\nT__17=18\nT__18=19\nT__19=20\nT__20=21\nT__21=22\nT__22=23\nT__23=24\nT__24=25\nT__25=26\nT__26=27\nT__27=28\nT__28=29\nT__29=30\nT__30=31\nT__31=32\nT__32=33\nT__33=34\nT__34=35\nT__35=36\nT__36=37\nT__37=38\nT__38=39\nT__39=40\nT__40=41\nT__41=42\nT__42=43\nT__43=44\nT__44=45\nT__45=46\nT__46=47\nT__47=48\nT__48=49\nT__49=50\nT__50=51\nT__51=52\nT__52=53\nT__53=54\nT__54=55\nT__55=56\nT__56=57\nT__57=58\nT__58=59\nT__59=60\nT__60=61\nT__61=62\nT__62=63\nT__63=64\nT__64=65\nT__65=66\nT__66=67\nT__67=68\nT__68=69\nT__69=70\nT__70=71\nT__71=72\nT__72=73\nT__73=74\nT__74=75\nT__75=76\nT__76=77\nT__77=78\nT__78=79\nT__79=80\nT__80=81\nT__81=82\nT__82=83\nT__83=84\nT__84=85\nT__85=86\nT__86=87\nT__87=88\nT__88=89\nT__89=90\nT__90=91\nT__91=92\nT__92=93\nT__93=94\nInt=95\nUint=96\nByte=97\nFixed=98\nUfixed=99\nBooleanLiteral=100\nDecimalNumber=101\nHexNumber=102\nNumberUnit=103\nHexLiteral=104\nReservedKeyword=105\nAnonymousKeyword=106\nBreakKeyword=107\nConstantKeyword=108\nContinueKeyword=109\nLeaveKeyword=110\nExternalKeyword=111\nIndexedKeyword=112\nInternalKeyword=113\nPayableKeyword=114\nPrivateKeyword=115\nPublicKeyword=116\nPureKeyword=117\nTypeKeyword=118\nViewKeyword=119\nConstructorKeyword=120\nFallbackKeyword=121\nReceiveKeyword=122\nIdentifier=123\nWS=124\nStringLiteralFragment=125\nVersionLiteral=126\nCOMMENT=127\nLINE_COMMENT=128\n\'pragma\'=1\n\';\'=2\n\'^\'=3\n\'~\'=4\n\'>=\'=5\n\'>\'=6\n\'<\'=7\n\'<=\'=8\n\'=\'=9\n\'as\'=10\n\'import\'=11\n\'*\'=12\n\'from\'=13\n\'{\'=14\n\',\'=15\n\'}\'=16\n\'abstract\'=17\n\'contract\'=18\n\'interface\'=19\n\'library\'=20\n\'is\'=21\n\'(\'=22\n\')\'=23\n\'using\'=24\n\'for\'=25\n\'struct\'=26\n\'modifier\'=27\n\'virtual\'=28\n\'function\'=29\n\'returns\'=30\n\'event\'=31\n\'enum\'=32\n\'[\'=33\n\']\'=34\n\'address\'=35\n\'.\'=36\n\'mapping\'=37\n\'=>\'=38\n\'memory\'=39\n\'storage\'=40\n\'calldata\'=41\n\'if\'=42\n\'else\'=43\n\'try\'=44\n\'catch\'=45\n\'while\'=46\n\'assembly\'=47\n\'do\'=48\n\'return\'=49\n\'throw\'=50\n\'emit\'=51\n\'var\'=52\n\'bool\'=53\n\'string\'=54\n\'byte\'=55\n\'++\'=56\n\'--\'=57\n\'new\'=58\n\':\'=59\n\'+\'=60\n\'-\'=61\n\'after\'=62\n\'delete\'=63\n\'!\'=64\n\'**\'=65\n\'/\'=66\n\'%\'=67\n\'<<\'=68\n\'>>\'=69\n\'&\'=70\n\'|\'=71\n\'==\'=72\n\'!=\'=73\n\'&&\'=74\n\'||\'=75\n\'?\'=76\n\'|=\'=77\n\'^=\'=78\n\'&=\'=79\n\'<<=\'=80\n\'>>=\'=81\n\'+=\'=82\n\'-=\'=83\n\'*=\'=84\n\'/=\'=85\n\'%=\'=86\n\'let\'=87\n\':=\'=88\n\'=:\'=89\n\'switch\'=90\n\'case\'=91\n\'default\'=92\n\'->\'=93\n\'override\'=94\n\'anonymous\'=106\n\'break\'=107\n\'constant\'=108\n\'continue\'=109\n\'leave\'=110\n\'external\'=111\n\'indexed\'=112\n\'internal\'=113\n\'payable\'=114\n\'private\'=115\n\'public\'=116\n\'pure\'=117\n\'type\'=118\n\'view\'=119\n\'constructor\'=120\n\'fallback\'=121\n\'receive\'=122\n'; | ||
/* babel-plugin-inline-import './lib/Solidity.tokens' */var tokens = 'T__0=1\nT__1=2\nT__2=3\nT__3=4\nT__4=5\nT__5=6\nT__6=7\nT__7=8\nT__8=9\nT__9=10\nT__10=11\nT__11=12\nT__12=13\nT__13=14\nT__14=15\nT__15=16\nT__16=17\nT__17=18\nT__18=19\nT__19=20\nT__20=21\nT__21=22\nT__22=23\nT__23=24\nT__24=25\nT__25=26\nT__26=27\nT__27=28\nT__28=29\nT__29=30\nT__30=31\nT__31=32\nT__32=33\nT__33=34\nT__34=35\nT__35=36\nT__36=37\nT__37=38\nT__38=39\nT__39=40\nT__40=41\nT__41=42\nT__42=43\nT__43=44\nT__44=45\nT__45=46\nT__46=47\nT__47=48\nT__48=49\nT__49=50\nT__50=51\nT__51=52\nT__52=53\nT__53=54\nT__54=55\nT__55=56\nT__56=57\nT__57=58\nT__58=59\nT__59=60\nT__60=61\nT__61=62\nT__62=63\nT__63=64\nT__64=65\nT__65=66\nT__66=67\nT__67=68\nT__68=69\nT__69=70\nT__70=71\nT__71=72\nT__72=73\nT__73=74\nT__74=75\nT__75=76\nT__76=77\nT__77=78\nT__78=79\nT__79=80\nT__80=81\nT__81=82\nT__82=83\nT__83=84\nT__84=85\nT__85=86\nT__86=87\nT__87=88\nT__88=89\nT__89=90\nT__90=91\nT__91=92\nT__92=93\nInt=94\nUint=95\nByte=96\nFixed=97\nUfixed=98\nBooleanLiteral=99\nDecimalNumber=100\nHexNumber=101\nNumberUnit=102\nHexLiteral=103\nReservedKeyword=104\nAnonymousKeyword=105\nBreakKeyword=106\nConstantKeyword=107\nContinueKeyword=108\nLeaveKeyword=109\nExternalKeyword=110\nIndexedKeyword=111\nInternalKeyword=112\nPayableKeyword=113\nPrivateKeyword=114\nPublicKeyword=115\nVirtualKeyword=116\nPureKeyword=117\nTypeKeyword=118\nViewKeyword=119\nConstructorKeyword=120\nFallbackKeyword=121\nReceiveKeyword=122\nIdentifier=123\nStringLiteralFragment=124\nVersionLiteral=125\nWS=126\nCOMMENT=127\nLINE_COMMENT=128\n\'pragma\'=1\n\';\'=2\n\'^\'=3\n\'~\'=4\n\'>=\'=5\n\'>\'=6\n\'<\'=7\n\'<=\'=8\n\'=\'=9\n\'as\'=10\n\'import\'=11\n\'*\'=12\n\'from\'=13\n\'{\'=14\n\',\'=15\n\'}\'=16\n\'abstract\'=17\n\'contract\'=18\n\'interface\'=19\n\'library\'=20\n\'is\'=21\n\'(\'=22\n\')\'=23\n\'using\'=24\n\'for\'=25\n\'struct\'=26\n\'modifier\'=27\n\'function\'=28\n\'returns\'=29\n\'event\'=30\n\'enum\'=31\n\'[\'=32\n\']\'=33\n\'address\'=34\n\'.\'=35\n\'mapping\'=36\n\'=>\'=37\n\'memory\'=38\n\'storage\'=39\n\'calldata\'=40\n\'if\'=41\n\'else\'=42\n\'try\'=43\n\'catch\'=44\n\'while\'=45\n\'assembly\'=46\n\'do\'=47\n\'return\'=48\n\'throw\'=49\n\'emit\'=50\n\'var\'=51\n\'bool\'=52\n\'string\'=53\n\'byte\'=54\n\'++\'=55\n\'--\'=56\n\'new\'=57\n\':\'=58\n\'+\'=59\n\'-\'=60\n\'after\'=61\n\'delete\'=62\n\'!\'=63\n\'**\'=64\n\'/\'=65\n\'%\'=66\n\'<<\'=67\n\'>>\'=68\n\'&\'=69\n\'|\'=70\n\'==\'=71\n\'!=\'=72\n\'&&\'=73\n\'||\'=74\n\'?\'=75\n\'|=\'=76\n\'^=\'=77\n\'&=\'=78\n\'<<=\'=79\n\'>>=\'=80\n\'+=\'=81\n\'-=\'=82\n\'*=\'=83\n\'/=\'=84\n\'%=\'=85\n\'let\'=86\n\':=\'=87\n\'=:\'=88\n\'switch\'=89\n\'case\'=90\n\'default\'=91\n\'->\'=92\n\'override\'=93\n\'anonymous\'=105\n\'break\'=106\n\'constant\'=107\n\'continue\'=108\n\'leave\'=109\n\'external\'=110\n\'indexed\'=111\n\'internal\'=112\n\'payable\'=113\n\'private\'=114\n\'public\'=115\n\'virtual\'=116\n\'pure\'=117\n\'type\'=118\n\'view\'=119\n\'constructor\'=120\n\'fallback\'=121\n\'receive\'=122\n'; | ||
@@ -8,0 +8,0 @@ |
{ | ||
"name": "solidity-parser-diligence", | ||
"version": "0.4.16", | ||
"version": "0.4.17", | ||
"description": "A Solidity parser built from a robust ANTLR 4 grammar", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
1051159
21559