MCPcopy Create free account
hub / github.com/SplootCode/splootcode / register

Method register

packages/language-web/types/js/literals.ts:199–215  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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}

Callers

nothing calls this directly

Calls 5

getTokenSetMethod · 0.95
registerTypeFunction · 0.90
registerNodeCateogryFunction · 0.90
registerAutocompleterFunction · 0.90
addChildMethod · 0.80

Tested by

no test coverage detected