()
| 228 | } |
| 229 | |
| 230 | static register() { |
| 231 | const typeRegistration = new TypeRegistration() |
| 232 | typeRegistration.typeName = PYTHON_BOOL |
| 233 | typeRegistration.deserializer = PythonBool.deserializer |
| 234 | typeRegistration.properties = ['value'] |
| 235 | typeRegistration.layout = new NodeLayout(HighlightColorCategory.KEYWORD, [ |
| 236 | new LayoutComponent(LayoutComponentType.PROPERTY, 'value'), |
| 237 | ]) |
| 238 | typeRegistration.pasteAdapters[PYTHON_EXPRESSION] = (node: SplootNode) => { |
| 239 | const exp = new PythonExpression(null) |
| 240 | exp.getTokenSet().addChild(node) |
| 241 | return exp |
| 242 | } |
| 243 | registerType(typeRegistration) |
| 244 | registerNodeCateogry(PYTHON_BOOL, NodeCategory.PythonExpressionToken) |
| 245 | registerAutocompleter(NodeCategory.PythonExpressionToken, new PythonBoolGenerator()) |
| 246 | } |
| 247 | } |
no test coverage detected