Ejemplo n.º 1
0
 public void AddVisibleStateVarToContract(VariableDeclaration varDecl, ContractDefinition contract)
 {
     if (!ContractToVisibleStateVarsMap.ContainsKey(contract))
     {
         ContractToVisibleStateVarsMap[contract] = new HashSet <VariableDeclaration>();
     }
     ContractToVisibleStateVarsMap[contract].Add(varDecl);
 }
Ejemplo n.º 2
0
 public HashSet <VariableDeclaration> GetVisibleStateVarsByContract(ContractDefinition contract)
 {
     return(ContractToVisibleStateVarsMap.ContainsKey(contract) ?
            ContractToVisibleStateVarsMap[contract] :
            new HashSet <VariableDeclaration>());
 }