@@ -74,18 +74,18 @@ import { LazyPyDsl } from './utils/lazy';
7474import { safeKeywordName } from './utils/name' ;
7575
7676const pyDsl = {
77- /** Creates an array literal expression (e.g. `[1, 2, 3]`). */
77+ /** Creates an array literal expression (e.g., `[1, 2, 3]`). */
7878 // array: (...args: ConstructorParameters<typeof ArrayTsDsl>) => new ArrayTsDsl(...args),
79- /** Creates an `as` type assertion expression (e.g. `value as Type`). */
79+ /** Creates an `as` type assertion expression (e.g., `value as Type`). */
8080 // as: (...args: ConstructorParameters<typeof AsTsDsl>) => new AsTsDsl(...args),
8181
82- /** Creates a property access expression (e.g. `obj.foo`). */
82+ /** Creates a property access expression (e.g., `obj.foo`). */
8383 attr : ( ...args : ConstructorParameters < typeof AttrPyDsl > ) => new AttrPyDsl ( ...args ) ,
8484
85- /** Creates an await expression (e.g. `await promise`). */
85+ /** Creates an await expression (e.g., `await promise`). */
8686 // await: (...args: ConstructorParameters<typeof AwaitTsDsl>) => new AwaitTsDsl(...args),
8787
88- /** Creates a binary expression (e.g. `a + b`). */
88+ /** Creates a binary expression (e.g., `a + b`). */
8989 binary : ( ...args : ConstructorParameters < typeof BinaryPyDsl > ) => new BinaryPyDsl ( ...args ) ,
9090
9191 /** Creates a statement block. */
@@ -94,7 +94,7 @@ const pyDsl = {
9494 /** Creates a break statement. */
9595 break : ( ...args : ConstructorParameters < typeof BreakPyDsl > ) => new BreakPyDsl ( ...args ) ,
9696
97- /** Creates a function or method call expression (e.g. `fn(arg)`). */
97+ /** Creates a function or method call expression (e.g., `fn(arg)`). */
9898 call : ( ...args : ConstructorParameters < typeof CallPyDsl > ) => new CallPyDsl ( ...args ) ,
9999
100100 /** Creates a class declaration or expression. */
@@ -103,10 +103,10 @@ const pyDsl = {
103103 /** Creates a continue statement. */
104104 continue : ( ...args : ConstructorParameters < typeof ContinuePyDsl > ) => new ContinuePyDsl ( ...args ) ,
105105
106- /** Creates a decorator expression (e.g. `@decorator`). */
106+ /** Creates a decorator expression (e.g., `@decorator`). */
107107 // decorator: (...args: ConstructorParameters<typeof DecoratorTsDsl>) => new DecoratorTsDsl(...args),
108108
109- /** Creates a dictionary expression (e.g. `{ 'a': 1 }`). */
109+ /** Creates a dictionary expression (e.g., `{ 'a': 1 }`). */
110110 dict : ( ...args : ConstructorParameters < typeof DictPyDsl > ) => new DictPyDsl ( ...args ) ,
111111
112112 /** Creates a Python docstring (`"""..."""`). */
@@ -121,7 +121,7 @@ const pyDsl = {
121121 /** Creates a field declaration in a class or object. */
122122 // field: (...args: ConstructorParameters<typeof FieldTsDsl>) => new FieldTsDsl(...args),
123123
124- /** Creates a for statement (e.g. `for x in items:`). */
124+ /** Creates a for statement (e.g., `for x in items:`). */
125125 for : ( ...args : ConstructorParameters < typeof ForPyDsl > ) => new ForPyDsl ( ...args ) ,
126126
127127 /** Converts a runtime value into a corresponding expression node. */
@@ -139,7 +139,7 @@ const pyDsl = {
139139 /** Creates a Python comment (`# ...`). */
140140 hint : ( ...args : ConstructorParameters < typeof HintPyDsl > ) => new HintPyDsl ( ...args ) ,
141141
142- /** Creates an identifier (e.g. `foo`). */
142+ /** Creates an identifier (e.g., `foo`). */
143143 id : ( ...args : ConstructorParameters < typeof IdPyDsl > ) => new IdPyDsl ( ...args ) ,
144144
145145 /** Creates an if statement. */
@@ -151,17 +151,17 @@ const pyDsl = {
151151 /** Creates an initialization block or statement. */
152152 // init: (...args: ConstructorParameters<typeof InitTsDsl>) => new InitTsDsl(...args),
153153
154- /** Creates a keyword argument expression (e.g. `name=value`). */
154+ /** Creates a keyword argument expression (e.g., `name=value`). */
155155 kwarg : ( ...args : ConstructorParameters < typeof KwargPyDsl > ) => new KwargPyDsl ( ...args ) ,
156156
157157 /** Creates a lazy, context-aware node with deferred evaluation. */
158158 lazy : < T extends py . Node > ( ...args : ConstructorParameters < typeof LazyPyDsl < T > > ) =>
159159 new LazyPyDsl < T > ( ...args ) ,
160160
161- /** Creates a list expression (e.g. `[1, 2, 3]`). */
161+ /** Creates a list expression (e.g., `[1, 2, 3]`). */
162162 list : ( ...args : ConstructorParameters < typeof ListPyDsl > ) => new ListPyDsl ( ...args ) ,
163163
164- /** Creates a literal value (e.g. string, number, boolean). */
164+ /** Creates a literal value (e.g., string, number, boolean). */
165165 literal : ( ...args : ConstructorParameters < typeof LiteralPyDsl > ) => new LiteralPyDsl ( ...args ) ,
166166
167167 /** Creates an enum member declaration. */
@@ -177,7 +177,7 @@ const pyDsl = {
177177 /** Creates a negation expression (`-x`). */
178178 // neg: (...args: ConstructorParameters<typeof PrefixTsDsl>) => new PrefixTsDsl(...args).neg(),
179179
180- /** Creates a new expression (e.g. `new ClassName()`). */
180+ /** Creates a new expression (e.g., `new ClassName()`). */
181181 // new: (...args: ConstructorParameters<typeof NewTsDsl>) => new NewTsDsl(...args),
182182
183183 /** Creates a newline (for formatting purposes). */
@@ -195,22 +195,22 @@ const pyDsl = {
195195 /** Creates a pattern for destructuring or matching. */
196196 // pattern: (...args: ConstructorParameters<typeof PatternTsDsl>) => new PatternTsDsl(...args),
197197
198- /** Creates a prefix unary expression (e.g. `-x`, `!x`, `~x`). */
198+ /** Creates a prefix unary expression (e.g., `-x`, `!x`, `~x`). */
199199 // prefix: (...args: ConstructorParameters<typeof PrefixTsDsl>) => new PrefixTsDsl(...args),
200200
201- /** Creates an object literal property (e.g. `{ foo: bar }`). */
201+ /** Creates an object literal property (e.g., `{ foo: bar }`). */
202202 // prop: (...args: ConstructorParameters<typeof ObjectPropTsDsl>) => new ObjectPropTsDsl(...args),
203203
204204 /** Creates a raise statement. */
205205 raise : ( ...args : ConstructorParameters < typeof RaisePyDsl > ) => new RaisePyDsl ( ...args ) ,
206206
207- /** Creates a regular expression literal (e.g. `/foo/gi`). */
207+ /** Creates a regular expression literal (e.g., `/foo/gi`). */
208208 // regexp: (...args: ConstructorParameters<typeof RegExpTsDsl>) => new RegExpTsDsl(...args),
209209
210210 /** Creates a return statement. */
211211 return : ( ...args : ConstructorParameters < typeof ReturnPyDsl > ) => new ReturnPyDsl ( ...args ) ,
212212
213- /** Creates a set expression (e.g. `{1, 2, 3}`). */
213+ /** Creates a set expression (e.g., `{1, 2, 3}`). */
214214 set : ( ...args : ConstructorParameters < typeof SetPyDsl > ) => new SetPyDsl ( ...args ) ,
215215
216216 /** Creates a setter method declaration. */
@@ -219,7 +219,7 @@ const pyDsl = {
219219 /** Wraps an expression or statement-like value into a `StmtPyDsl`. */
220220 stmt : ( ...args : ConstructorParameters < typeof StmtPyDsl > ) => new StmtPyDsl ( ...args ) ,
221221
222- /** Creates a subscript expression (e.g. `obj[index]` or `Type[Param]`). */
222+ /** Creates a subscript expression (e.g., `obj[index]` or `Type[Param]`). */
223223 subscript : ( ...args : ConstructorParameters < typeof SubscriptPyDsl > ) => new SubscriptPyDsl ( ...args ) ,
224224
225225 /** Creates a template literal expression. */
@@ -231,69 +231,69 @@ const pyDsl = {
231231 // /** Creates a throw statement. */
232232 // throw: (...args: ConstructorParameters<typeof ThrowTsDsl>) => new ThrowTsDsl(...args),
233233
234- /** Creates a syntax token (e.g. `?`, `readonly`, `+`, `-`). */
234+ /** Creates a syntax token (e.g., `?`, `readonly`, `+`, `-`). */
235235 // token: (...args: ConstructorParameters<typeof TokenTsDsl>) => new TokenTsDsl(...args),
236236
237237 /** Creates a try/except/finally statement. */
238238 try : ( ...args : ConstructorParameters < typeof TryPyDsl > ) => new TryPyDsl ( ...args ) ,
239239
240- /** Creates a tuple expression (e.g. `(1, 2, 3)`). */
240+ /** Creates a tuple expression (e.g., `(1, 2, 3)`). */
241241 tuple : ( ...args : ConstructorParameters < typeof TuplePyDsl > ) => new TuplePyDsl ( ...args ) ,
242242
243- /** Creates a basic type reference or type expression (e.g. Foo or Foo<T>). */
243+ /** Creates a basic type reference or type expression (e.g., Foo or Foo<T>). */
244244 // type: Object.assign(
245245 // (...args: ConstructorParameters<typeof TypeExprTsDsl>) => new TypeExprTsDsl(...args),
246246 // {
247- /** Creates a type alias declaration (e.g. `type Foo = Bar`). */
247+ /** Creates a type alias declaration (e.g., `type Foo = Bar`). */
248248 // alias: (...args: ConstructorParameters<typeof TypeAliasTsDsl>) => new TypeAliasTsDsl(...args),
249- /** Creates an intersection type (e.g. `A & B`). */
249+ /** Creates an intersection type (e.g., `A & B`). */
250250 // and: (...args: ConstructorParameters<typeof TypeAndTsDsl>) => new TypeAndTsDsl(...args),
251- /** Creates a qualified type reference (e.g. Foo.Bar). */
251+ /** Creates a qualified type reference (e.g., Foo.Bar). */
252252 // attr: (...args: ConstructorParameters<typeof TypeAttrTsDsl>) => new TypeAttrTsDsl(...args),
253- /** Creates a basic type reference or type expression (e.g. Foo or Foo<T>). */
253+ /** Creates a basic type reference or type expression (e.g., Foo or Foo<T>). */
254254 // expr: (...args: ConstructorParameters<typeof TypeExprTsDsl>) => new TypeExprTsDsl(...args),
255255 /** Converts a runtime value into a corresponding type expression node. */
256256 // fromValue: (...args: Parameters<typeof typeValue>) => typeValue(...args),
257- /** Creates a function type node (e.g. `(a: string) => number`). */
257+ /** Creates a function type node (e.g., `(a: string) => number`). */
258258 // func: (...args: ConstructorParameters<typeof TypeFuncTsDsl>) => new TypeFuncTsDsl(...args),
259- /** Creates an indexed-access type (e.g. `Foo<T>[K]`). */
259+ /** Creates an indexed-access type (e.g., `Foo<T>[K]`). */
260260 // idx: (...args: ConstructorParameters<typeof TypeIdxTsDsl>) => new TypeIdxTsDsl(...args),
261- /** Creates a literal type node (e.g. 'foo', 42, or true). */
261+ /** Creates a literal type node (e.g., 'foo', 42, or true). */
262262 // literal: (...args: ConstructorParameters<typeof TypeLiteralTsDsl>) =>
263263 // new TypeLiteralTsDsl(...args),
264- /** Creates a mapped type (e.g. `{ [K in keyof T]: U }`). */
264+ /** Creates a mapped type (e.g., `{ [K in keyof T]: U }`). */
265265 // mapped: (...args: ConstructorParameters<typeof TypeMappedTsDsl>) =>
266266 // new TypeMappedTsDsl(...args),
267- /** Creates a type literal node (e.g. { foo: string }). */
267+ /** Creates a type literal node (e.g., { foo: string }). */
268268 // object: (...args: ConstructorParameters<typeof TypeObjectTsDsl>) =>
269269 // new TypeObjectTsDsl(...args),
270- /** Creates a type operator node (e.g. `readonly T`, `keyof T`, `unique T`). */
270+ /** Creates a type operator node (e.g., `readonly T`, `keyof T`, `unique T`). */
271271 // operator: (...args: ConstructorParameters<typeof TypeOperatorTsDsl>) =>
272272 // new TypeOperatorTsDsl(...args),
273- /** Represents a union type (e.g. `A | B | C`). */
273+ /** Represents a union type (e.g., `A | B | C`). */
274274 // or: (...args: ConstructorParameters<typeof TypeOrTsDsl>) => new TypeOrTsDsl(...args),
275- /** Creates a type parameter (e.g. `<T>`). */
275+ /** Creates a type parameter (e.g., `<T>`). */
276276 // param: (...args: ConstructorParameters<typeof TypeParamTsDsl>) => new TypeParamTsDsl(...args),
277- /** Creates a type query node (e.g. `typeof Foo`). */
277+ /** Creates a type query node (e.g., `typeof Foo`). */
278278 // query: (...args: ConstructorParameters<typeof TypeQueryTsDsl>) => new TypeQueryTsDsl(...args),
279- /** Builds a TypeScript template literal *type* (e.g. `${Foo}-${Bar}` as a type). */
279+ /** Builds a TypeScript template literal *type* (e.g., `${Foo}-${Bar}` as a type). */
280280 // template: (...args: ConstructorParameters<typeof TypeTemplateTsDsl>) =>
281281 // new TypeTemplateTsDsl(...args),
282- /** Creates a tuple type (e.g. [A, B, C]). */
282+ /** Creates a tuple type (e.g., [A, B, C]). */
283283 // tuple: (...args: ConstructorParameters<typeof TypeTupleTsDsl>) => new TypeTupleTsDsl(...args),
284284 // },
285285 // ),
286- /** Creates a `typeof` expression (e.g. `typeof value`). */
286+ /** Creates a `typeof` expression (e.g., `typeof value`). */
287287 // typeofExpr: (...args: ConstructorParameters<typeof TypeOfExprTsDsl>) =>
288288 // new TypeOfExprTsDsl(...args),
289289
290290 /** Creates a variable assignment. */
291291 var : ( ...args : ConstructorParameters < typeof VarPyDsl > ) => new VarPyDsl ( ...args ) ,
292292
293- /** Creates a while statement (e.g. `while x:`). */
293+ /** Creates a while statement (e.g., `while x:`). */
294294 while : ( ...args : ConstructorParameters < typeof WhilePyDsl > ) => new WhilePyDsl ( ...args ) ,
295295
296- /** Creates a with statement (e.g. `with open(f) as file:`). */
296+ /** Creates a with statement (e.g., `with open(f) as file:`). */
297297 with : ( ...args : ConstructorParameters < typeof WithPyDsl > ) => new WithPyDsl ( ...args ) ,
298298} ;
299299
0 commit comments