コード例 #1
0
    def index_lval(self, lval: CLval, subst: Dict[Any, Any] = {}, fid: int = -1) -> int:
        args = [
            self.index_lhost(lval.get_lhost(), subst=subst, fid=fid),
            self.index_offset(lval.get_offset()),
        ]

        def f(index: int, key: object) -> CLval:
            return CLval(self, index, [], args)

        return self.lval_table.add(IT.get_key([], args), f)
コード例 #2
0
 def get_value(node: ET.Element) -> CLval:
     rep = IT.get_rep(node)
     args = (self,) + rep
     return CLval(*args)
コード例 #3
0
 def f(index: int, key: object) -> CLval:
     return CLval(self, index, [], args)
コード例 #4
0
 def f(index: int, key: Tuple[str, str]) -> CLval:
     return CLval(self, index, tags, args)