MCPcopy Create free account
hub / github.com/coder/guts / modifier

Function modifier

typescript-engine/src/index.ts:17–25  ·  view source on GitHub ↗
(name: modifierKeys | ts.Modifier)

Source from the content-addressed store, hash-verified

15
16type modifierKeys = FilterKeys<typeof ts.SyntaxKind, ModifierSyntaxKind>;
17export function modifier(name: modifierKeys | ts.Modifier): Modifier {
18 if (typeof name !== "string") {
19 return name;
20 }
21
22 const x = ts.SyntaxKind[name];
23
24 return ts.factory.createModifier(x);
25}
26
27export function identifier(name: string | ts.Identifier): ts.Identifier {
28 if (typeof name !== "string") {

Callers 9

IdentifierMethod · 0.85
ReferenceMethod · 0.85
ModifierMethod · 0.85
propertySignatureFunction · 0.85
interfaceDeclFunction · 0.85
aliasDeclFunction · 0.85
typeParameterDeclarationFunction · 0.85
variableStatementFunction · 0.85
enumDeclarationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…