public Node parseObjectPattern(List<Token> @params, string kind) { Node node = new Node(); List<Node> properties = new List<Node>(); expect("{"); while (!match("}")) { properties.Add(parsePropertyPattern(@params, kind)); if (!match("}")) { expect(","); } } lex(); return node.finishObjectPattern(properties); }