()
| 197 | } |
| 198 | |
| 199 | static register() { |
| 200 | const typeRegistration = new TypeRegistration() |
| 201 | typeRegistration.typeName = NULL_LITERAL |
| 202 | typeRegistration.deserializer = NullLiteral.deserializer |
| 203 | typeRegistration.properties = [] |
| 204 | typeRegistration.layout = new NodeLayout(HighlightColorCategory.KEYWORD, [ |
| 205 | new LayoutComponent(LayoutComponentType.KEYWORD, 'null'), |
| 206 | ]) |
| 207 | typeRegistration.pasteAdapters[SPLOOT_EXPRESSION] = (node: SplootNode) => { |
| 208 | const exp = new SplootExpression(null) |
| 209 | exp.getTokenSet().addChild(node) |
| 210 | return exp |
| 211 | } |
| 212 | registerType(typeRegistration) |
| 213 | registerNodeCateogry(NULL_LITERAL, NodeCategory.ExpressionToken) |
| 214 | registerAutocompleter(NodeCategory.ExpressionToken, new NullGenerator()) |
| 215 | } |
| 216 | } |
nothing calls this directly
no test coverage detected