| 302 | if (type == "variable") {cx.marked = "property"; return cont();} |
| 303 | } |
| 304 | function objprop(type, value) { |
| 305 | if (type == "variable") { |
| 306 | cx.marked = "property"; |
| 307 | if (value == "get" || value == "set") return cont(getterSetter); |
| 308 | } else if (type == "number" || type == "string") { |
| 309 | cx.marked = type + " property"; |
| 310 | } |
| 311 | if (atomicTypes.hasOwnProperty(type)) return cont(expect(":"), expression); |
| 312 | } |
| 313 | function getterSetter(type) { |
| 314 | if (type == ":") return cont(expression); |
| 315 | if (type != "variable") return cont(expect(":"), expression); |