Пример #1
0
        public override void ExitInheritanceSpecifier([NotNull] InheritanceSpecifierContext context)
        {
            string importName = context.Start.Text + ".sol";

            if (multiContracts != null && multiContracts.ContainsKey(context.Start.Text))
            {
                SolList subdecoder = solidtyDecoder.DecodeInoSubDecoder(multiContracts[context.Start.Text], address, ethURL, searchpath, multiContracts);
            }
            else
            {
                foreach (string filepath in searchpath)
                {
                    if (File.Exists(Path.Combine(filepath, importName)))
                    {
                        StreamReader txt        = new StreamReader(Path.Combine(filepath, importName));
                        SolList      subdecoder = solidtyDecoder.DecodeInoSubDecoder(txt.ReadToEnd(), address, ethURL, searchpath, multiContracts);
                        this.MergeSubDecoder(subdecoder);
                        return;
                    }
                }
            }
            errorList.Add("File for import not found :" + importName);
        }
Пример #2
0
 public override void EnterInheritanceSpecifier([NotNull] InheritanceSpecifierContext context)
 {
 }