Example #1
0
 public override void ExitStateMutability([NotNull] StateMutabilityContext context)
 {
     if (context.Start.Text == "constant")
     {
         isconst = true;
     }
 }
Example #2
0
        public override void EnterStateMutability([NotNull] StateMutabilityContext context)
        {
            string payload = context.Payload.ToString();

            if (context.Payload.ToString().Contains(SolidityParser.ConstantKeyword.ToString()))
            {
                isconst = true;
            }
        }