pyebnf/primitive.py
def retyped(self, new_type):
    """Returns a new node with the same contents as self, but with a new node_type."""
    return ParseNode(new_type,
                      children=list(self.children),
                      consumed=self.consumed,
                      position=self.position,
                      ignored=self.ignored)
def retyped(self, new_type):
    return ParseNode(new_type,
                      children=list(self.children),
                      consumed=self.consumed,
                      position=self.position,
                      ignored=self.ignored)
def retyped ( self , new_type ) : return ParseNode ( new_type , children = list ( self . children ) , consumed = self . consumed , position = self . position , ignored = self . ignored )
Returns a new node with the same contents as self, but with a new node_type.
Returns a new node with the same contents as self but with a new node_type .