public void RemoveLevel(BindingLevel level) { _levels.Remove(level); if (_levels.IsEmpty()) { Clear(); } }
static IBindingLevel Create(IFunctionDeclaration declaration, Associativity associativity) { var result = new BindingLevel { Associaticity = associativity }; // add syntax pattern return(result); }
public void AddLevel(BindingLevel level) { _levels.Add(level); }