* Returns the node more strictly typed iff it is of the given type. Otherwise, * returns null.
(node)
| 6061 | */ |
| 6062 | |
| 6063 | function assertSymbolNodeType(node) { |
| 6064 | var typedNode = checkSymbolNodeType(node); |
| 6065 | |
| 6066 | if (!typedNode) { |
| 6067 | throw new Error("Expected node of symbol group type, but got " + (node ? "node of type " + node.type : String(node))); |
| 6068 | } |
| 6069 | |
| 6070 | return typedNode; |
| 6071 | } |
| 6072 | /** |
| 6073 | * Returns the node more strictly typed iff it is of the given type. Otherwise, |
| 6074 | * returns null. |
no test coverage detected