agency-lang 0.0.22 → 0.0.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -48,7 +48,7 @@ export class AgencyGenerator extends BaseGenerator {
|
|
|
48
48
|
processTypeAlias(node) {
|
|
49
49
|
this.typeAliases[node.aliasName] = node.aliasedType;
|
|
50
50
|
const aliasedTypeStr = this.aliasedTypeToString(node.aliasedType);
|
|
51
|
-
return this.indentStr(`type ${node.aliasName} = ${aliasedTypeStr}
|
|
51
|
+
return this.indentStr(`type ${node.aliasName} = ${aliasedTypeStr}`);
|
|
52
52
|
}
|
|
53
53
|
processTypeHint(node) {
|
|
54
54
|
this.typeHints[node.variableName] = node.variableType;
|
|
@@ -57,8 +57,8 @@ export class AgencyGenerator extends BaseGenerator {
|
|
|
57
57
|
}
|
|
58
58
|
// Assignment and literals
|
|
59
59
|
processAssignment(node) {
|
|
60
|
-
const varName = node.typeHint
|
|
61
|
-
`${node.variableName}: ${variableTypeToString(node.typeHint, this.typeAliases)}`
|
|
60
|
+
const varName = node.typeHint
|
|
61
|
+
? `${node.variableName}: ${variableTypeToString(node.typeHint, this.typeAliases)}`
|
|
62
62
|
: node.variableName;
|
|
63
63
|
if (node.value.type === "timeBlock") {
|
|
64
64
|
const code = this.processTimeBlock(node.value);
|
|
@@ -332,7 +332,7 @@ export class AgencyGenerator extends BaseGenerator {
|
|
|
332
332
|
}
|
|
333
333
|
processAwaitStatement(node) {
|
|
334
334
|
const code = this.processNode(node.expression);
|
|
335
|
-
return this.indentStr(`await ${code.trim()}
|
|
335
|
+
return this.indentStr(`await ${code.trim()}`);
|
|
336
336
|
}
|
|
337
337
|
processNewLine(_node) {
|
|
338
338
|
return "\n";
|
package/package.json
CHANGED