* Parse bind feature * @param {Parser} parser * @returns {BindFeature | undefined}
(parser)
| 9864 | * @returns {BindFeature | undefined} |
| 9865 | */ |
| 9866 | static parse(parser) { |
| 9867 | if (!parser.matchToken("bind")) return; |
| 9868 | var follows = parser.pushFollows("and", "with", "to"); |
| 9869 | var left; |
| 9870 | try { |
| 9871 | left = parser.requireElement("expression"); |
| 9872 | } finally { |
| 9873 | parser.popFollows(follows); |
| 9874 | } |
| 9875 | if (!parser.matchToken("and") && !parser.matchToken("with") && !parser.matchToken("to")) { |
| 9876 | parser.raiseExpected("and", "with", "to"); |
| 9877 | } |
| 9878 | var right = parser.requireElement("expression"); |
| 9879 | return new _BindFeature(left, right); |
| 9880 | } |
| 9881 | constructor(left, right) { |
| 9882 | super(); |
| 9883 | this.left = left; |
nothing calls this directly
no test coverage detected