Skip to content

Commit 022a8ca

Browse files
committed
Use canonical casing for annotations
1 parent 8aafab2 commit 022a8ca

2 files changed

Lines changed: 15 additions & 15 deletions

File tree

src/transformation/utils/annotations/collect.ts

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,20 @@ import { flatMap } from "../../../utils";
33
import { TransformationContext } from "../../context";
44

55
export enum AnnotationKind {
6-
Extension = "Extension",
7-
MetaExtension = "MetaExtension",
8-
CustomConstructor = "CustomConstructor",
9-
CompileMembersOnly = "CompileMembersOnly",
10-
NoResolution = "NoResolution",
11-
PureAbstract = "PureAbstract",
12-
Phantom = "Phantom",
13-
TupleReturn = "TupleReturn",
14-
LuaIterator = "LuaIterator",
15-
LuaTable = "LuaTable",
16-
NoSelf = "NoSelf",
17-
NoSelfInFile = "NoSelfInFile",
18-
Vararg = "Vararg",
19-
ForRange = "ForRange",
6+
Extension = "extension",
7+
MetaExtension = "metaExtension",
8+
CustomConstructor = "customConstructor",
9+
CompileMembersOnly = "compileMembersOnly",
10+
NoResolution = "noResolution",
11+
PureAbstract = "pureAbstract",
12+
Phantom = "phantom",
13+
TupleReturn = "tupleReturn",
14+
LuaIterator = "luaIterator",
15+
LuaTable = "luaTable",
16+
NoSelf = "noSelf",
17+
NoSelfInFile = "noSelfInFile",
18+
VarArg = "varArg",
19+
ForRange = "forRange",
2020
}
2121

2222
export interface Annotation {

src/transformation/utils/annotations/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export function isLuaIteratorType(context: TransformationContext, node: ts.Node)
6868

6969
export function isVarArgType(context: TransformationContext, node: ts.Node): boolean {
7070
const type = context.checker.getTypeAtLocation(node);
71-
return getTypeAnnotations(context, type).has(AnnotationKind.Vararg);
71+
return getTypeAnnotations(context, type).has(AnnotationKind.VarArg);
7272
}
7373

7474
export function isForRangeType(context: TransformationContext, node: ts.Node): boolean {

0 commit comments

Comments
 (0)