@alloy-js/csharp 0.5.0 → 0.7.0
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.
- package/CHANGELOG.md +11 -0
- package/dist/src/components/Class.d.ts.map +1 -1
- package/dist/src/components/Class.js +26 -14
- package/dist/src/components/Class.js.map +1 -1
- package/dist/src/components/Declaration.d.ts.map +1 -1
- package/dist/src/components/Declaration.js +0 -1
- package/dist/src/components/Declaration.js.map +1 -1
- package/dist/src/components/Enum.d.ts.map +1 -1
- package/dist/src/components/Enum.js +6 -6
- package/dist/src/components/Enum.js.map +1 -1
- package/dist/src/components/Name.js +1 -1
- package/dist/src/components/Name.js.map +1 -1
- package/dist/src/components/Namespace.js +0 -1
- package/dist/src/components/Namespace.js.map +1 -1
- package/dist/src/components/Parameters.d.ts +1 -1
- package/dist/src/components/Parameters.d.ts.map +1 -1
- package/dist/src/components/Parameters.js +6 -4
- package/dist/src/components/Parameters.js.map +1 -1
- package/dist/src/components/ProjectDirectory.d.ts.map +1 -1
- package/dist/src/components/ProjectDirectory.js +1 -1
- package/dist/src/components/ProjectDirectory.js.map +1 -1
- package/dist/src/components/Reference.js +1 -1
- package/dist/src/components/Reference.js.map +1 -1
- package/dist/src/components/SourceFile.d.ts +2 -0
- package/dist/src/components/SourceFile.d.ts.map +1 -1
- package/dist/src/components/SourceFile.js +7 -9
- package/dist/src/components/SourceFile.js.map +1 -1
- package/dist/src/components/UsingDirective.d.ts +2 -1
- package/dist/src/components/UsingDirective.d.ts.map +1 -1
- package/dist/src/components/UsingDirective.js +7 -7
- package/dist/src/components/UsingDirective.js.map +1 -1
- package/dist/src/components/stc/index.d.ts +5 -5
- package/dist/test/utils.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -5
- package/src/components/Class.tsx +48 -42
- package/src/components/Declaration.tsx +1 -3
- package/src/components/Enum.tsx +15 -13
- package/src/components/Namespace.tsx +5 -5
- package/src/components/Parameters.tsx +9 -9
- package/src/components/ProjectDirectory.tsx +9 -7
- package/src/components/SourceFile.tsx +20 -12
- package/src/components/UsingDirective.tsx +8 -9
- package/temp/api.json +8 -20
- package/test/class.test.tsx +106 -38
- package/test/enum.test.tsx +19 -22
- package/test/namespace.test.tsx +6 -10
- package/test/projectdirectory.test.tsx +19 -12
- package/test/sourcefile.test.tsx +7 -8
- package/test/using.test.tsx +26 -14
- package/test/utils.tsx +2 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# Changelog - @alloy-js/csharp
|
|
2
2
|
|
|
3
|
+
## 0.7.0
|
|
4
|
+
|
|
5
|
+
No changes, version bump only.
|
|
6
|
+
|
|
7
|
+
## 0.6.0
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
- [#56](https://github.com/alloy-framework/alloy/pull/56) Emitted code is now formatted properly.
|
|
12
|
+
|
|
13
|
+
|
|
3
14
|
## 0.5.0
|
|
4
15
|
|
|
5
16
|
No changes, version bump only.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Class.d.ts","sourceRoot":"","sources":["../../../src/components/Class.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,gBAAgB,CAAC;AACvC,OAAO,EACL,cAAc,EAGd,cAAc,EACf,MAAM,iBAAiB,CAAC;AAKzB,OAAO,EAAE,cAAc,EAAc,MAAM,iBAAiB,CAAC;AAG7D,MAAM,WAAW,UAAW,SAAQ,IAAI,CAAC,IAAI,CAAC,gBAAgB,EAAE,UAAU,CAAC;IACzE,IAAI,EAAE,MAAM,CAAC;IACb,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;CAC9C;AAGD,wBAAgB,KAAK,CAAC,KAAK,EAAE,UAAU,
|
|
1
|
+
{"version":3,"file":"Class.d.ts","sourceRoot":"","sources":["../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C;IAChC,UAAU,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,CAAC;IACnC,OAAO,CAAC,EAAE,IAAI,CAAC,QAAQ,CAAC;CACzB;AAGD,wBAAgB,WAAW,CAAC,KAAK,EAAE,gBAAgB,iBAsClD"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Indent as _$Indent } from "@alloy-js/core";
|
|
2
|
-
import { createComponent as _$createComponent } from "@alloy-js/core/jsx-runtime";
|
|
3
1
|
import { memo as _$memo } from "@alloy-js/core/jsx-runtime";
|
|
2
|
+
import { createIntrinsic as _$createIntrinsic } from "@alloy-js/core/jsx-runtime";
|
|
3
|
+
import { createComponent as _$createComponent } from "@alloy-js/core/jsx-runtime";
|
|
4
4
|
import * as core from "@alloy-js/core";
|
|
5
5
|
import { getAccessModifier, getMethodModifier } from "../modifiers.js";
|
|
6
6
|
import { useCSharpNamePolicy } from "../name-policy.js";
|
|
@@ -38,21 +38,31 @@ export function Class(props) {
|
|
|
38
38
|
refkey: entry[1]
|
|
39
39
|
});
|
|
40
40
|
}
|
|
41
|
-
typeParams =
|
|
41
|
+
typeParams = _$createIntrinsic("group", {
|
|
42
|
+
get children() {
|
|
43
|
+
return ["<", _$createComponent(core.For, {
|
|
44
|
+
each: typeParamNames,
|
|
45
|
+
comma: true,
|
|
46
|
+
line: true,
|
|
47
|
+
children: name => name
|
|
48
|
+
}), ">"];
|
|
49
|
+
}
|
|
50
|
+
});
|
|
42
51
|
}
|
|
43
52
|
return _$createComponent(core.Declaration, {
|
|
44
53
|
symbol: thisClassSymbol,
|
|
45
54
|
get children() {
|
|
46
|
-
return [_$memo(() => getAccessModifier(props.accessModifier)), "class ", _$createComponent(Name, {}), typeParams, _$memo(() => !props.children && ";"), _$memo(() => _$memo(() => !!props.children)() &&
|
|
55
|
+
return [_$memo(() => getAccessModifier(props.accessModifier)), "class ", _$createComponent(Name, {}), typeParams, _$memo(() => !props.children && ";"), _$memo(() => _$memo(() => !!props.children)() && _$createComponent(core.Block, {
|
|
56
|
+
newline: true,
|
|
47
57
|
get children() {
|
|
48
|
-
return
|
|
58
|
+
return _$createComponent(core.Scope, {
|
|
49
59
|
value: thisClassScope,
|
|
50
60
|
get children() {
|
|
51
61
|
return props.children;
|
|
52
62
|
}
|
|
53
|
-
})
|
|
63
|
+
});
|
|
54
64
|
}
|
|
55
|
-
})
|
|
65
|
+
}))];
|
|
56
66
|
}
|
|
57
67
|
});
|
|
58
68
|
}
|
|
@@ -87,11 +97,12 @@ export function ClassConstructor(props) {
|
|
|
87
97
|
return _$createComponent(core.Scope, {
|
|
88
98
|
value: ctorDeclScope,
|
|
89
99
|
get children() {
|
|
90
|
-
return [accessModifier, _$createComponent(Name, {}), "(", params, ")", _$
|
|
100
|
+
return [accessModifier, _$createComponent(Name, {}), "(", params, ")", _$createComponent(core.Block, {
|
|
101
|
+
newline: true,
|
|
91
102
|
get children() {
|
|
92
|
-
return
|
|
103
|
+
return props.children;
|
|
93
104
|
}
|
|
94
|
-
})
|
|
105
|
+
})];
|
|
95
106
|
}
|
|
96
107
|
});
|
|
97
108
|
}
|
|
@@ -119,7 +130,7 @@ export function ClassMember(props) {
|
|
|
119
130
|
return _$createComponent(core.Declaration, {
|
|
120
131
|
symbol: memberSymbol,
|
|
121
132
|
get children() {
|
|
122
|
-
return [_$memo(() => getAccessModifier(props.accessModifier)), _$memo(() => props.type), " ", _$createComponent(Name, {})
|
|
133
|
+
return [_$memo(() => getAccessModifier(props.accessModifier)), _$memo(() => props.type), " ", _$createComponent(Name, {})];
|
|
123
134
|
}
|
|
124
135
|
});
|
|
125
136
|
}
|
|
@@ -157,11 +168,12 @@ export function ClassMethod(props) {
|
|
|
157
168
|
return _$createComponent(core.Scope, {
|
|
158
169
|
value: methodScope,
|
|
159
170
|
get children() {
|
|
160
|
-
return [accessModifier, methodModifier, returns, " ", _$createComponent(Name, {}), "(", params, ")", _$
|
|
171
|
+
return [accessModifier, methodModifier, returns, " ", _$createComponent(Name, {}), "(", params, ")", _$createComponent(core.Block, {
|
|
172
|
+
newline: true,
|
|
161
173
|
get children() {
|
|
162
|
-
return
|
|
174
|
+
return props.children;
|
|
163
175
|
}
|
|
164
|
-
})
|
|
176
|
+
})];
|
|
165
177
|
}
|
|
166
178
|
});
|
|
167
179
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Class.js","names":["core","getAccessModifier","getMethodModifier","useCSharpNamePolicy","createCSharpMemberScope","useCSharpScope","Name","Parameters","Class","props","name","getName","scope","thisClassSymbol","binder","createSymbol","refkey","thisClassScope","typeParams","typeParameters","typeParamNames","Array","entry","Object","entries","push","
|
|
1
|
+
{"version":3,"file":"Class.js","names":["core","getAccessModifier","getMethodModifier","useCSharpNamePolicy","createCSharpMemberScope","useCSharpScope","Name","Parameters","Class","props","name","getName","scope","thisClassSymbol","binder","createSymbol","refkey","thisClassScope","typeParams","typeParameters","typeParamNames","Array","entry","Object","entries","push","_$createIntrinsic","children","_$createComponent","For","each","comma","line","Declaration","symbol","_$memo","accessModifier","Block","newline","Scope","value","ClassConstructor","kind","Error","owner","ctorSymbol","ctorDeclScope","params","parameters","ClassMember","nameElement","memberSymbol","type","ClassMethod","methodSymbol","methodScope","methodModifier","returns"],"sources":["../../../src/components/Class.tsx"],"sourcesContent":[null],"mappings":";;;AAAA,OAAO,KAAKA,IAAI,MAAM,gBAAgB;AACtC,SAEEC,iBAAiB,EACjBC,iBAAiB,QAEZ,iBAAiB;AACxB,SAAyBC,mBAAmB,QAAQ,mBAAmB;AAEvE,SAASC,uBAAuB,EAAEC,cAAc,QAAQ,sBAAsB;AAC9E,SAASC,IAAI,QAAQ,WAAW;AAChC,SAAyBC,UAAU,QAAQ,iBAAiB;;AAE5D;;AAOA;AACA,OAAO,SAASC,KAAKA,CAACC,KAAiB,EAAE;EACvC,MAAMC,IAAI,GAAGP,mBAAmB,CAAC,CAAC,CAACQ,OAAO,CAACF,KAAK,CAACC,IAAI,EAAG,OAAO,CAAC;EAChE,MAAME,K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AMS,OAAO,GAAGhD,KAAK,CAACgD,OAAO,IAAI,MAAM;;EAEvC;EACA,OAAA7B,iBAAA,CACG5B,IAAI,CAACiC,WAAW;IAACC,MAAM,EAAEoB,YAAY;IAAA,IAAA3B,SAAA;MAAA,OAAAC,iBAAA,CACnC5B,IAAI,CAACuC,KAAK;QAACC,KAAK,EAAEe,WAAW;QAAA,IAAA5B,SAAA;UAAA,QAC3BS,cAAc,EACdoB,cAAc,EACdC,OAAO,OAAA7B,iBAAA,CAAGtB,IAAI,YAAKyC,MAAM,OAAAnB,iBAAA,CACzB5B,IAAI,CAACqC,KAAK;YAACC,OAAO;YAAA,IAAAX,SAAA;cAAA,OAAElB,KAAK,CAACkB,QAAQ;YAAA;UAAA;QAAA;MAAA;IAAA;EAAA;AAI3C","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Declaration.d.ts","sourceRoot":"","sources":["../../../src/components/Declaration.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,gBAAgB,CAAC;AAIvC,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,IAAI,CAAC,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,IAAI,CAAC,QAAQ,CAAC;CAC1B;AAGD,wBAAgB,WAAW,CAAC,KAAK,EAAE,gBAAgB,
|
|
1
|
+
{"version":3,"file":"Declaration.d.ts","sourceRoot":"","sources":["../../../src/components/Declaration.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,gBAAgB,CAAC;AAIvC,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,IAAI,CAAC,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,IAAI,CAAC,QAAQ,CAAC;CAC1B;AAGD,wBAAgB,WAAW,CAAC,KAAK,EAAE,gBAAgB,iBAGlD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Declaration.js","names":["core","createCSharpSymbol","Declaration","props","sym","_$createComponent","symbol","children"],"sources":["../../../src/components/Declaration.tsx"],"sourcesContent":[null],"mappings":"
|
|
1
|
+
{"version":3,"file":"Declaration.js","names":["core","createCSharpSymbol","Declaration","props","sym","_$createComponent","symbol","children"],"sources":["../../../src/components/Declaration.tsx"],"sourcesContent":[null],"mappings":";AAAA,OAAO,KAAKA,IAAI,MAAM,gBAAgB;AACtC,SAASC,kBAAkB,QAAQ,oCAAoC;;AAEvE;;AAOA;AACA,OAAO,SAASC,WAAWA,CAACC,KAAuB,EAAE;EACnD,MAAMC,GAAG,GAAGH,kBAAkB,CAACE,KAAK,CAAC;EACrC,OAAAE,iBAAA,CAAQL,IAAI,CAACE,WAAW;IAACI,MAAM,EAAEF,GAAG;IAAA,IAAAG,SAAA;MAAA,OAAGJ,KAAK,CAACI,QAAQ;IAAA;EAAA;AACvD","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Enum.d.ts","sourceRoot":"","sources":["../../../src/components/Enum.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,gBAAgB,CAAC;AACvC,OAAO,EAAE,cAAc,EAAqB,MAAM,iBAAiB,CAAC;AAOpE,MAAM,WAAW,SAAU,SAAQ,IAAI,CAAC,IAAI,CAAC,gBAAgB,EAAE,UAAU,CAAC;IACxE,IAAI,EAAE,MAAM,CAAC;IACb,cAAc,CAAC,EAAE,cAAc,CAAC;CACjC;AAGD,wBAAgB,IAAI,CAAC,KAAK,EAAE,SAAS,iBAgCpC;AAGD,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,IAAI,CAAC,MAAM,CAAC;CACtB;AAGD,wBAAgB,UAAU,CAAC,KAAK,EAAE,eAAe,
|
|
1
|
+
{"version":3,"file":"Enum.d.ts","sourceRoot":"","sources":["../../../src/components/Enum.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,gBAAgB,CAAC;AACvC,OAAO,EAAE,cAAc,EAAqB,MAAM,iBAAiB,CAAC;AAOpE,MAAM,WAAW,SAAU,SAAQ,IAAI,CAAC,IAAI,CAAC,gBAAgB,EAAE,UAAU,CAAC;IACxE,IAAI,EAAE,MAAM,CAAC;IACb,cAAc,CAAC,EAAE,cAAc,CAAC;CACjC;AAGD,wBAAgB,IAAI,CAAC,KAAK,EAAE,SAAS,iBAgCpC;AAGD,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,IAAI,CAAC,MAAM,CAAC;CACtB;AAGD,wBAAgB,UAAU,CAAC,KAAK,EAAE,eAAe,iBAoBhD"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { Indent as _$Indent } from "@alloy-js/core";
|
|
2
1
|
import { createComponent as _$createComponent } from "@alloy-js/core/jsx-runtime";
|
|
3
2
|
import { memo as _$memo } from "@alloy-js/core/jsx-runtime";
|
|
4
3
|
import * as core from "@alloy-js/core";
|
|
@@ -27,16 +26,17 @@ export function Enum(props) {
|
|
|
27
26
|
return _$createComponent(core.Declaration, {
|
|
28
27
|
symbol: thisEnumSymbol,
|
|
29
28
|
get children() {
|
|
30
|
-
return [_$memo(() => getAccessModifier(props.accessModifier)), "enum ", _$createComponent(Name, {}), _$memo(() => !props.children && ";"), _$memo(() => _$memo(() => !!props.children)() &&
|
|
29
|
+
return [_$memo(() => getAccessModifier(props.accessModifier)), "enum ", _$createComponent(Name, {}), _$memo(() => !props.children && ";"), _$memo(() => _$memo(() => !!props.children)() && _$createComponent(core.Scope, {
|
|
30
|
+
value: thisEnumScope,
|
|
31
31
|
get children() {
|
|
32
|
-
return
|
|
33
|
-
|
|
32
|
+
return _$createComponent(core.Block, {
|
|
33
|
+
newline: true,
|
|
34
34
|
get children() {
|
|
35
35
|
return props.children;
|
|
36
36
|
}
|
|
37
|
-
})
|
|
37
|
+
});
|
|
38
38
|
}
|
|
39
|
-
})
|
|
39
|
+
}))];
|
|
40
40
|
}
|
|
41
41
|
});
|
|
42
42
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Enum.js","names":["core","getAccessModifier","useCSharpNamePolicy","createCSharpMemberScope","useCSharpScope","Name","Enum","props","name","getName","scope","thisEnumSymbol","binder","createSymbol","refkey","thisEnumScope","_$createComponent","Declaration","symbol","children","_$memo","accessModifier","
|
|
1
|
+
{"version":3,"file":"Enum.js","names":["core","getAccessModifier","useCSharpNamePolicy","createCSharpMemberScope","useCSharpScope","Name","Enum","props","name","getName","scope","thisEnumSymbol","binder","createSymbol","refkey","thisEnumScope","_$createComponent","Declaration","symbol","children","_$memo","accessModifier","Scope","value","Block","newline","EnumMember","kind","Error","thisEnumValueSymbol"],"sources":["../../../src/components/Enum.tsx"],"sourcesContent":[null],"mappings":";;AAAA,OAAO,KAAKA,IAAI,MAAM,gBAAgB;AACtC,SAAyBC,iBAAiB,QAAQ,iBAAiB;AACnE,SAASC,mBAAmB,QAAQ,mBAAmB;AAEvD,SAASC,uBAAuB,EAAEC,cAAc,QAAQ,sBAAsB;AAC9E,SAASC,IAAI;;AAEb;;AAMA;AACA,OAAO,SAASC,IAAIA,CAACC,KAAgB,EAAE;EACrC,MAAMC,IAAI,GAAGN,mBAAmB,CAAC,CAAC,CAACO,OAAO,CAACF,KAAK,CAACC,IAAI,EAAG,MAAM,CAAC;EAC/D,MAAME,KAAK,GAAGN,cAAc,CAAC,CAAC;EAE9B,MAAMO,cAAc,GAAGD,KAAK,CAACE,MAAM,CAACC,YAAY,CAAqB;IACnEL,IAAI,EAAEA,IAAI;IACVE,KAAK;IACLI,MAAM,EAAEP,KAAK,CAACO,MAAM,IAAId,IAAI,CAACc,MAAM,CAACP,KAAK,CAACC,IAAI;EAChD,CAAC,CAAC;;EAEF;EACA;EACA;EACA;EACA,MAAMO,aAAa,GAAGZ,uBAAuB,CAC3CO,KAA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A,IAAAV,SAAA;MAAA,OAAAH,iBAAA,CAC1CX,IAAI;IAAA;EAAA;AAGX","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Name.js","names":["core","Name","declSymbol","useContext","DeclarationContext","Error","_$memo","name"],"sources":["../../../src/components/Name.tsx"],"sourcesContent":[null],"mappings":";AAAA,OAAO,KAAKA,IAAI,MAAM,gBAAgB;;AAEtC;AACA,OAAO,SAASC,IAAIA,CAAA,EAAG;EACrB,MAAMC,UAAU,GAAGF,IAAI,CAACG,UAAU,CAACH,IAAI,CAACI,kBAAkB,CAAC;EAC3D,IAAI,CAACF,UAAU,EAAE;IACf,MAAM,IAAIG,KAAK,CAAC,6BAA6B,CAAC;EAChD;EAEA,
|
|
1
|
+
{"version":3,"file":"Name.js","names":["core","Name","declSymbol","useContext","DeclarationContext","Error","_$memo","name"],"sources":["../../../src/components/Name.tsx"],"sourcesContent":[null],"mappings":";AAAA,OAAO,KAAKA,IAAI,MAAM,gBAAgB;;AAEtC;AACA,OAAO,SAASC,IAAIA,CAAA,EAAG;EACrB,MAAMC,UAAU,GAAGF,IAAI,CAACG,UAAU,CAACH,IAAI,CAACI,kBAAkB,CAAC;EAC3D,IAAI,CAACF,UAAU,EAAE;IACf,MAAM,IAAIG,KAAK,CAAC,6BAA6B,CAAC;EAChD;EAEA,QAAAC,MAAA,OAAUJ,UAAU,CAACK,IAAI;AAC3B","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Namespace.js","names":["core","createCSharpNamespaceScope","NamespaceContext","createContext","useNamespace","useContext","Namespace","props","scope","useBinder","useScope","name","namespaceCtx","_$createComponent","Provider","value","children","Scope"],"sources":["../../../src/components/Namespace.tsx"],"sourcesContent":[null],"mappings":"
|
|
1
|
+
{"version":3,"file":"Namespace.js","names":["core","createCSharpNamespaceScope","NamespaceContext","createContext","useNamespace","useContext","Namespace","props","scope","useBinder","useScope","name","namespaceCtx","_$createComponent","Provider","value","children","Scope"],"sources":["../../../src/components/Namespace.tsx"],"sourcesContent":[null],"mappings":";AAAA,OAAO,KAAKA,IAAI,MAAM,gBAAgB;AACtC,SAASC,0BAA0B,QAAQ,sBAAsB;;AAEjE;;AAKA,MAAMC,gBAAgB,GAAGF,IAAI,CAACG,aAAa,CAAmB,CAAC;;AAE/D;AACA,OAAO,SAASC,YAAYA,CAAA,EAAiC;EAC3D,OAAOJ,IAAI,CAACK,UAAU,CAACH,gBAAgB,CAAC;AAC1C;;AAEA;;AAMA;AACA,OAAO,SAASI,SAASA,CAACC,KAAqB,EAAE;EAC/C,MAAMC,KAAK,GAAGP,0BAA0B,CACtCD,IAAI,CAACS,SAAS,CAAC,CAAC,EAChBT,IAAI,CAACU,QAAQ,CAAC,CAAC,EACfH,KAAK,CAACI,IACR,CAAC;EAED,MAAMC,YAA8B,GAAG;IACrCD,IAAI,EAAEJ,KAAK,CAACI;EACd,CAAC;EAED,OAAAE,iBAAA,CACGX,gBAAgB,CAACY,QAAQ;IAACC,KAAK,EAAEH,YAAY;IAAA,IAAAI,SAAA;MAAA,OAAAH,iBAAA,CAC3Cb,IAAI,CAACiB,KAAK;QAACF,KAAK,EAAEP,KAAK;QAAA,IAAAQ,SAAA;UAAA,OAAGT,KAAK,CAACS,QAAQ;QAAA;MAAA;IAAA;EAAA;AAG/C","ignoreList":[]}
|
|
@@ -9,5 +9,5 @@ export declare function Parameter(props: ParameterProps): core.Children;
|
|
|
9
9
|
export interface ParametersProps {
|
|
10
10
|
parameters: Array<ParameterProps>;
|
|
11
11
|
}
|
|
12
|
-
export declare function Parameters(props: ParametersProps):
|
|
12
|
+
export declare function Parameters(props: ParametersProps): core.Children;
|
|
13
13
|
//# sourceMappingURL=Parameters.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Parameters.d.ts","sourceRoot":"","sources":["../../../src/components/Parameters.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,gBAAgB,CAAC;AAMvC,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,IAAI,CAAC,QAAQ,CAAC;IACpB,MAAM,CAAC,EAAE,IAAI,CAAC,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,IAAI,CAAC,YAAY,CAAC;CAC5B;AAGD,wBAAgB,SAAS,CAAC,KAAK,EAAE,cAAc,
|
|
1
|
+
{"version":3,"file":"Parameters.d.ts","sourceRoot":"","sources":["../../../src/components/Parameters.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,gBAAgB,CAAC;AAMvC,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,IAAI,CAAC,QAAQ,CAAC;IACpB,MAAM,CAAC,EAAE,IAAI,CAAC,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,IAAI,CAAC,YAAY,CAAC;CAC5B;AAGD,wBAAgB,SAAS,CAAC,KAAK,EAAE,cAAc,iBAuB9C;AAED,MAAM,WAAW,eAAe;IAE9B,UAAU,EAAE,KAAK,CAAC,cAAc,CAAC,CAAC;CACnC;AAGD,wBAAgB,UAAU,CAAC,KAAK,EAAE,eAAe,iBAMhD"}
|
|
@@ -25,10 +25,12 @@ export function Parameter(props) {
|
|
|
25
25
|
}
|
|
26
26
|
// a collection of parameters
|
|
27
27
|
export function Parameters(props) {
|
|
28
|
-
return core.
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
28
|
+
return _$createComponent(core.For, {
|
|
29
|
+
get each() {
|
|
30
|
+
return props.parameters;
|
|
31
|
+
},
|
|
32
|
+
joiner: ", ",
|
|
33
|
+
children: param => _$createComponent(Parameter, param)
|
|
32
34
|
});
|
|
33
35
|
}
|
|
34
36
|
//# sourceMappingURL=Parameters.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Parameters.js","names":["core","useCSharpNamePolicy","useCSharpScope","Name","Parameter","props","name","getName","scope","kind","Error","memberSymbol","binder","createSymbol","refkey","_$createComponent","Declaration","symbol","children","_$memo","type","Parameters","
|
|
1
|
+
{"version":3,"file":"Parameters.js","names":["core","useCSharpNamePolicy","useCSharpScope","Name","Parameter","props","name","getName","scope","kind","Error","memberSymbol","binder","createSymbol","refkey","_$createComponent","Declaration","symbol","children","_$memo","type","Parameters","For","each","parameters","joiner","param"],"sources":["../../../src/components/Parameters.tsx"],"sourcesContent":[null],"mappings":";;AAAA,OAAO,KAAKA,IAAI,MAAM,gBAAgB;AACtC,SAASC,mBAAmB,QAAQ,mBAAmB;AAEvD,SAASC,cAAc,QAAQ,sBAAsB;AACrD,SAASC,IAAI,QAAQ,WAAW;AAShC;AACA,OAAO,SAASC,SAASA,CAACC,KAAqB,EAAE;EAC/C,MAAMC,IAAI,GAAGL,mBAAmB,CAAC,CAAC,CAACM,OAAO,CAACF,KAAK,CAACC,IAAI,EAAE,WAAW,CAAC;EACnE,MAAME,KAAK,GAAGN,cAAc,CAAC,CAAC;EAC9B,IACEM,KAAK,CAACC,IAAI,KAAK,QAAQ,IACtBD,KAAK,CAACF,IAAI,KAAK,kBAAkB,IAAIE,KAAK,CAACF,IAAI,KAAK,aAAc,EACnE;IACA,MAAM,IAAII,KAAK,CACb,6EACF,CAAC;EACH;EAEA,MAAMC,YAAY,GAAGH,KAAK,CAACI,MAAM,CAACC,YAAY,CAAqB;IACjEP,IAAI,EAAEA,IAAI;IACVE,KAAK;IACLM,MAAM,EAAET,KAAK,CAACS,MAAM,IAAId,IAAI,CAACc,MAAM,CAACT,KAAK,CAACC,IAAI;EAChD,CAAC,CAAC;EAEF,OAAAS,iBAAA,CACGf,IAAI,CAACgB,WAAW;IAACC,MAAM,EAAEN,YAAY;IAAA,IAAAO,SAAA;MAAA,QAAAC,MAAA,OACnCd,KAAK,CAACe,IAAI,QAAAL,iBAAA,CAAGZ,IAAI;IAAA;EAAA;AAGxB;AAOA;AACA,OAAO,SAASkB,UAAUA,CAAChB,KAAsB,EAAE;EACjD,OAAAU,iBAAA,CACGf,IAAI,CAACsB,GAAG;IAAA,IAACC,IAAIA,CAAA;MAAA,OAAElB,KAAK,CAACmB,UAAU;IAAA;IAAEC,MAAM,EAAE,IAAI;IAAAP,QAAA,EAC1CQ,KAAK,IAAAX,iBAAA,CAAMX,SAAS,EAAKsB,KAAK;EAAI;AAG1C","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProjectDirectory.d.ts","sourceRoot":"","sources":["../../../src/components/ProjectDirectory.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,gBAAgB,CAAC;AAIvC,MAAM,WAAW,qBAAqB;IAEpC,IAAI,EAAE,MAAM,CAAC;IAGb,OAAO,EAAE,MAAM,CAAC;IAGhB,WAAW,EAAE,MAAM,CAAC;IAGpB,IAAI,EAAE,MAAM,CAAC;IAGb,MAAM,CAAC,EAAE,MAAM,CAAC;IAGhB,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAGhC,QAAQ,CAAC,EAAE,IAAI,CAAC,QAAQ,CAAC;CAC1B;AAGD,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,qBAAqB,
|
|
1
|
+
{"version":3,"file":"ProjectDirectory.d.ts","sourceRoot":"","sources":["../../../src/components/ProjectDirectory.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,gBAAgB,CAAC;AAIvC,MAAM,WAAW,qBAAqB;IAEpC,IAAI,EAAE,MAAM,CAAC;IAGb,OAAO,EAAE,MAAM,CAAC;IAGhB,WAAW,EAAE,MAAM,CAAC;IAGpB,IAAI,EAAE,MAAM,CAAC;IAGb,MAAM,CAAC,EAAE,MAAM,CAAC;IAGhB,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAGhC,QAAQ,CAAC,EAAE,IAAI,CAAC,QAAQ,CAAC;CAC1B;AAGD,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,qBAAqB,iBA2B5D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProjectDirectory.js","names":["core","join","ProjectDirectory","props","srcDir","targetFrameworkMoniker","_$createComponent","SourceDirectory","path","name","children","SourceFile","filetype","code","version","description"],"sources":["../../../src/components/ProjectDirectory.tsx"],"sourcesContent":[null],"mappings":";;AAAA,OAAO,KAAKA,IAAI,MAAM,gBAAgB;AACtC,SAASC,IAAI,QAAQ,OAAO;;AAE5B;;AAwBA;AACA,OAAO,SAASC,gBAAgBA,CAACC,KAA4B,EAAE;EAC7D,IAAI,CAACA,KAAK,CAACC,MAAM,EAAE;IACjBD,KAAK,CAACC,MAAM,GAAG,KAAK;EACtB;EAEA,IAAI,CAACD,KAAK,CAACE,sBAAsB,EAAE;IACjCF,KAAK,CAACE,sBAAsB,GAAG,QAAQ;EACzC;EAEA,OAAAC,iBAAA,
|
|
1
|
+
{"version":3,"file":"ProjectDirectory.js","names":["core","join","ProjectDirectory","props","srcDir","targetFrameworkMoniker","_$createComponent","SourceDirectory","path","name","children","SourceFile","filetype","code","version","description"],"sources":["../../../src/components/ProjectDirectory.tsx"],"sourcesContent":[null],"mappings":";;AAAA,OAAO,KAAKA,IAAI,MAAM,gBAAgB;AACtC,SAASC,IAAI,QAAQ,OAAO;;AAE5B;;AAwBA;AACA,OAAO,SAASC,gBAAgBA,CAACC,KAA4B,EAAE;EAC7D,IAAI,CAACA,KAAK,CAACC,MAAM,EAAE;IACjBD,KAAK,CAACC,MAAM,GAAG,KAAK;EACtB;EAEA,IAAI,CAACD,KAAK,CAACE,sBAAsB,EAAE;IACjCF,KAAK,CAACE,sBAAsB,GAAG,QAAQ;EACzC;EAEA,OAAAC,iBAAA,CACGN,IAAI,CAACO,eAAe;IAAA,IAACC,IAAIA,CAAA;MAAA,OAAEP,IAAI,CAACE,KAAK,CAACK,IAAI,EAAEL,KAAK,CAACM,IAAI,CAAC;IAAA;IAAA,IAAAC,SAAA;MAAA,QAAAJ,iBAAA,CACrDN,IAAI,CAACW,UAAU;QAAA,IAACH,IAAIA,CAAA;UAAA,OAAEL,KAAK,CAACM,IAAI,GAAG,SAAS;QAAA;QAAEG,QAAQ;QAAA,IAAAF,SAAA;UAAA,OACpDV,IAAI,CAACa,IAAI;AAClB;AACA;AACA,uBAAuBV,KAAK,CAACW,OAAO;AACpC,2BAA2BX,KAAK,CAACY,WAAW;AAC5C,+BAA+BZ,KAAK,CAACE,sBAAsB;AAC3D;AACA;AACA,OAAO;QAAA;MAAA,IAAAC,iBAAA,CAEAN,IAAI,CAACO,eAAe;QAAA,IAACC,IAAIA,CAAA;UAAA,OAAEL,KAAK,CAACC,MAAM;QAAA;QAAA,IAAAM,SAAA;UAAA,OACrCP,KAAK,CAACO,QAAQ;QAAA;MAAA;IAAA;EAAA;AAIvB","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Reference.js","names":["ref","Reference","refkey","reference"],"sources":["../../../src/components/Reference.tsx"],"sourcesContent":[null],"mappings":"AACA,SAASA,GAAG,QAAQ,yBAAyB;AAM7C;AACA,OAAO,SAASC,SAASA,CAAC;EAAEC;AAAuB,CAAC,EAAE;EACpD,MAAMC,SAAS,GAAGH,GAAG,CAACE,MAAM,CAAC;EAE7B,
|
|
1
|
+
{"version":3,"file":"Reference.js","names":["ref","Reference","refkey","reference"],"sources":["../../../src/components/Reference.tsx"],"sourcesContent":[null],"mappings":"AACA,SAASA,GAAG,QAAQ,yBAAyB;AAM7C;AACA,OAAO,SAASC,SAASA,CAAC;EAAEC;AAAuB,CAAC,EAAE;EACpD,MAAMC,SAAS,GAAGH,GAAG,CAACE,MAAM,CAAC;EAE7B,QAAUC,SAAS;AACrB","ignoreList":[]}
|
|
@@ -4,7 +4,9 @@ export interface SourceFileContext {
|
|
|
4
4
|
}
|
|
5
5
|
export declare function useSourceFile(): SourceFileContext | undefined;
|
|
6
6
|
export interface SourceFileProps {
|
|
7
|
+
/** Path of the source file */
|
|
7
8
|
path: string;
|
|
9
|
+
/** A list of namespaces to use */
|
|
8
10
|
using?: Array<string>;
|
|
9
11
|
children?: core.Children;
|
|
10
12
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SourceFile.d.ts","sourceRoot":"","sources":["../../../src/components/SourceFile.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,gBAAgB,CAAC;AAMvC,MAAM,WAAW,iBAAiB;IAEhC,QAAQ,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;CACnC;AAKD,wBAAgB,aAAa,IAAI,iBAAiB,GAAG,SAAS,CAE7D;
|
|
1
|
+
{"version":3,"file":"SourceFile.d.ts","sourceRoot":"","sources":["../../../src/components/SourceFile.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,gBAAgB,CAAC;AAMvC,MAAM,WAAW,iBAAiB;IAEhC,QAAQ,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;CACnC;AAKD,wBAAgB,aAAa,IAAI,iBAAiB,GAAG,SAAS,CAE7D;AAED,MAAM,WAAW,eAAe;IAC9B,8BAA8B;IAC9B,IAAI,EAAE,MAAM,CAAC;IAEb,kCAAkC;IAClC,KAAK,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAEtB,QAAQ,CAAC,EAAE,IAAI,CAAC,QAAQ,CAAC;CAC1B;AAID,wBAAgB,UAAU,CAAC,KAAK,EAAE,eAAe,iBA8ChD"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { createIntrinsic as _$createIntrinsic } from "@alloy-js/core/jsx-runtime";
|
|
2
2
|
import { createComponent as _$createComponent } from "@alloy-js/core/jsx-runtime";
|
|
3
3
|
import { memo as _$memo } from "@alloy-js/core/jsx-runtime";
|
|
4
4
|
import * as core from "@alloy-js/core";
|
|
@@ -14,9 +14,6 @@ const SourceFileContext = core.createContext();
|
|
|
14
14
|
export function useSourceFile() {
|
|
15
15
|
return core.useContext(SourceFileContext);
|
|
16
16
|
}
|
|
17
|
-
|
|
18
|
-
// properties fro creating a C# source file
|
|
19
|
-
|
|
20
17
|
// a C# source file. exists within the context of a namespace
|
|
21
18
|
// contains using statements and declarations
|
|
22
19
|
export function SourceFile(props) {
|
|
@@ -45,7 +42,7 @@ export function SourceFile(props) {
|
|
|
45
42
|
},
|
|
46
43
|
filetype: "cs",
|
|
47
44
|
reference: Reference,
|
|
48
|
-
|
|
45
|
+
tabWidth: 4,
|
|
49
46
|
get children() {
|
|
50
47
|
return _$createComponent(SourceFileContext.Provider, {
|
|
51
48
|
value: sourceFileCtx,
|
|
@@ -56,13 +53,14 @@ export function SourceFile(props) {
|
|
|
56
53
|
},
|
|
57
54
|
kind: "source-file",
|
|
58
55
|
get children() {
|
|
59
|
-
return [_$memo(() => _$memo(() => using.length > 0)()
|
|
56
|
+
return [_$memo(() => _$memo(() => using.length > 0)() && [_$createComponent(UsingDirective, {
|
|
60
57
|
namespaces: using
|
|
61
|
-
}), "
|
|
58
|
+
}), _$createIntrinsic("hbr", {}), _$createIntrinsic("hbr", {})]), "namespace ", _$memo(() => namespaceCtx.name), _$createComponent(core.Block, {
|
|
59
|
+
newline: true,
|
|
62
60
|
get children() {
|
|
63
|
-
return
|
|
61
|
+
return props.children;
|
|
64
62
|
}
|
|
65
|
-
})
|
|
63
|
+
})];
|
|
66
64
|
}
|
|
67
65
|
});
|
|
68
66
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SourceFile.js","names":["core","useNamespace","Reference","UsingDirective","SourceFileContext","createContext","useSourceFile","useContext","SourceFile","props","namespaceCtx","Error","using","reactive","Array","push","addUsing","namespace","includes","sourceFileCtx","_$createComponent","path","filetype","reference","
|
|
1
|
+
{"version":3,"file":"SourceFile.js","names":["core","useNamespace","Reference","UsingDirective","SourceFileContext","createContext","useSourceFile","useContext","SourceFile","props","namespaceCtx","Error","using","reactive","Array","push","addUsing","namespace","includes","sourceFileCtx","_$createComponent","path","filetype","reference","tabWidth","children","Provider","value","Scope","name","kind","_$memo","length","namespaces","_$createIntrinsic","Block","newline"],"sources":["../../../src/components/SourceFile.tsx"],"sourcesContent":[null],"mappings":";;;AAAA,OAAO,KAAKA,IAAI,MAAM,gBAAgB;AACtC,SAASC,YAAY;AACrB,SAASC,SAAS;AAClB,SAASC,cAAc;;AAEvB;;AAMA,MAAMC,iBAAiB,GAAGJ,IAAI,CAACK,aAAa,CAAoB,CAAC;;AAEjE;AACA,OAAO,SAASC,aAAaA,CAAA,EAAkC;EAC7D,OAAON,IAAI,CAACO,UAAU,CAACH,iBAAiB,CAAC;AAC3C;AAYA;AACA;AACA,OAAO,SAASI,UAAUA,CAACC,KAAsB,EAAE;EACjD,MAAMC,YAAY,GAAGT,YAAY,CAAC,CAAC;EAEnC,IAAI,CAACS,YAAY,EAAE;IACjB,MAAM,IAAIC,KAAK,CAAC,gDAAgD,CAAC;EACnE;EAEA,MAAMC,KAAoB,GAAGZ,IAAI,CAACa,QAAQ,CAAC,IAAIC,KAAK,CAAS,CAAC,CAAC;EAC/D,IAAIL,KAAK,CAACG,KAAK,EAAE;IACfA,KAAK,CAACG,IAAI,CAAC,GAAGN,KAAK,CAACG,KAAK,CAAC;EAC5B;;EAEA;EACA;EACA,SAASI,QAAQA,CAACC,SAAiB,EAAQ;IACzC,IAAI,CAACL,KAAK,CAACM,QAAQ,CAACD,SAAS,CAAC,EAAE;MAC9BL,KAAK,CAACG,IAAI,CAACE,SAAS,CAAC;IACvB;EACF;EAEA,MAAME,aAAgC,GAAG;IACvCH;EACF,CAAC;EAED,OAAAI,iBAAA,CACGpB,IAAI,CAACQ,UAAU;IAAA,IACda,IAAIA,CAAA;MAAA,OAAEZ,KAAK,CAACY,IAAI;IAAA;IAChBC,QAAQ;IACRC,SAAS,EAAErB,SAAS;IACpBsB,QAAQ,EAAE,CAAC;IAAA,IAAAC,SAAA;MAAA,OAAAL,iBAAA,CAEVhB,iBAAiB,CAACsB,QAAQ;QAACC,KAAK,EAAER,aAAa;QAAA,IAAAM,SAAA;UAAA,OAAAL,iBAAA,CAC7CpB,IAAI,CAAC4B,KAAK;YAAA,IAACC,IAAIA,CAAA;cAAA,OAAEpB,KAAK,CAACY,IAAI;YAAA;YAAES,IAAI;YAAA,IAAAL,SAAA;cAAA,QAAAM,MAAA,OAC/BA,MAAA,OAAAnB,KAAK,CAACoB,MAAM,GAAG,CAAC,QAAAZ,iBAAA,CAEZjB,cAAc;gBAAC8B,UAAU,EAAErB;cAAK,IAAAsB,iBAAA,aAAAA,iBAAA,YAIpC,iBAAAH,MAAA,OACUrB,YAAY,CAACmB,IAAI,GAAAT,iBAAA,CAC3BpB,IAAI,CAACmC,KAAK;gBAACC,OAAO;gBAAA,IAAAX,SAAA;kBAAA,OAAEhB,KAAK,CAACgB,QAAQ;gBAAA;cAAA;YAAA;UAAA;QAAA;MAAA;IAAA;EAAA;AAK7C","ignoreList":[]}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import * as core from "@alloy-js/core";
|
|
1
2
|
export interface UsingDirectiveProps {
|
|
2
3
|
namespaces: Array<string>;
|
|
3
4
|
}
|
|
4
|
-
export declare function UsingDirective(props: UsingDirectiveProps):
|
|
5
|
+
export declare function UsingDirective(props: UsingDirectiveProps): core.Children;
|
|
5
6
|
//# sourceMappingURL=UsingDirective.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UsingDirective.d.ts","sourceRoot":"","sources":["../../../src/components/UsingDirective.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"UsingDirective.d.ts","sourceRoot":"","sources":["../../../src/components/UsingDirective.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,gBAAgB,CAAC;AAEvC,MAAM,WAAW,mBAAmB;IAClC,UAAU,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAC3B;AAGD,wBAAgB,cAAc,CAAC,KAAK,EAAE,mBAAmB,iBAUxD"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
+
import { createComponent as _$createComponent } from "@alloy-js/core/jsx-runtime";
|
|
1
2
|
import * as core from "@alloy-js/core";
|
|
2
3
|
// one ore more C# using directives
|
|
3
4
|
export function UsingDirective(props) {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}).join("");
|
|
5
|
+
const sortedNamespaces = core.computed(() => {
|
|
6
|
+
return props.namespaces.sort();
|
|
7
|
+
});
|
|
8
|
+
return _$createComponent(core.For, {
|
|
9
|
+
each: sortedNamespaces,
|
|
10
|
+
children: namespace => `using ${namespace};`
|
|
11
11
|
});
|
|
12
12
|
}
|
|
13
13
|
//# sourceMappingURL=UsingDirective.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UsingDirective.js","names":["core","UsingDirective","props","
|
|
1
|
+
{"version":3,"file":"UsingDirective.js","names":["core","UsingDirective","props","sortedNamespaces","computed","namespaces","sort","_$createComponent","For","each","children","namespace"],"sources":["../../../src/components/UsingDirective.tsx"],"sourcesContent":[null],"mappings":";AAAA,OAAO,KAAKA,IAAI,MAAM,gBAAgB;AAMtC;AACA,OAAO,SAASC,cAAcA,CAACC,KAA0B,EAAE;EACzD,MAAMC,gBAAgB,GAAGH,IAAI,CAACI,QAAQ,CAAC,MAAM;IAC3C,OAAOF,KAAK,CAACG,UAAU,CAACC,IAAI,CAAC,CAAC;EAChC,CAAC,CAAC;EAEF,OAAAC,iBAAA,CACGP,IAAI,CAACQ,GAAG;IAACC,IAAI,EAAEN,gBAAgB;IAAAO,QAAA,EAC5BC,SAAS,IAAK,SAASA,SAAS;EAAG;AAG3C","ignoreList":[]}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as core from "@alloy-js/core";
|
|
2
2
|
import * as base from "../index.js";
|
|
3
|
-
export declare const Class: (props: base.ClassProps) => core.ComponentCreator<base.ClassProps> & {
|
|
3
|
+
export declare const Class: (props: Omit<base.ClassProps, "children"> & Partial<Pick<base.ClassProps, "children">>) => core.ComponentCreator<base.ClassProps> & {
|
|
4
4
|
code(template: TemplateStringsArray, ...substitutions: core.Children[]): core.ComponentCreator<base.ClassProps>;
|
|
5
5
|
children(...children: core.Children[]): core.ComponentCreator<base.ClassProps>;
|
|
6
6
|
};
|
|
7
|
-
export declare const ClassConstructor: (props?: base.ClassConstructorProps | undefined) => core.ComponentCreator<base.ClassConstructorProps> & {
|
|
7
|
+
export declare const ClassConstructor: (props?: (Omit<base.ClassConstructorProps, "children"> & Partial<Pick<base.ClassConstructorProps, "children">>) | undefined) => core.ComponentCreator<base.ClassConstructorProps> & {
|
|
8
8
|
code(template: TemplateStringsArray, ...substitutions: core.Children[]): core.ComponentCreator<base.ClassConstructorProps>;
|
|
9
9
|
children(...children: core.Children[]): core.ComponentCreator<base.ClassConstructorProps>;
|
|
10
10
|
};
|
|
@@ -12,11 +12,11 @@ export declare const ClassMember: (props: base.ClassMemberProps) => core.Compone
|
|
|
12
12
|
code(template: TemplateStringsArray, ...substitutions: core.Children[]): core.ComponentCreator<base.ClassMemberProps>;
|
|
13
13
|
children(...children: core.Children[]): core.ComponentCreator<base.ClassMemberProps>;
|
|
14
14
|
};
|
|
15
|
-
export declare const ClassMethod: (props: base.ClassMethodProps) => core.ComponentCreator<base.ClassMethodProps> & {
|
|
15
|
+
export declare const ClassMethod: (props: Omit<base.ClassMethodProps, "children"> & Partial<Pick<base.ClassMethodProps, "children">>) => core.ComponentCreator<base.ClassMethodProps> & {
|
|
16
16
|
code(template: TemplateStringsArray, ...substitutions: core.Children[]): core.ComponentCreator<base.ClassMethodProps>;
|
|
17
17
|
children(...children: core.Children[]): core.ComponentCreator<base.ClassMethodProps>;
|
|
18
18
|
};
|
|
19
|
-
export declare const Enum: (props: base.EnumProps) => core.ComponentCreator<base.EnumProps> & {
|
|
19
|
+
export declare const Enum: (props: Omit<base.EnumProps, "children"> & Partial<Pick<base.EnumProps, "children">>) => core.ComponentCreator<base.EnumProps> & {
|
|
20
20
|
code(template: TemplateStringsArray, ...substitutions: core.Children[]): core.ComponentCreator<base.EnumProps>;
|
|
21
21
|
children(...children: core.Children[]): core.ComponentCreator<base.EnumProps>;
|
|
22
22
|
};
|
|
@@ -32,7 +32,7 @@ export declare const Parameters: (props: base.ParametersProps) => core.Component
|
|
|
32
32
|
code(template: TemplateStringsArray, ...substitutions: core.Children[]): core.ComponentCreator<base.ParametersProps>;
|
|
33
33
|
children(...children: core.Children[]): core.ComponentCreator<base.ParametersProps>;
|
|
34
34
|
};
|
|
35
|
-
export declare const ProjectDirectory: (props: base.ProjectDirectoryProps) => core.ComponentCreator<base.ProjectDirectoryProps> & {
|
|
35
|
+
export declare const ProjectDirectory: (props: Omit<base.ProjectDirectoryProps, "children"> & Partial<Pick<base.ProjectDirectoryProps, "children">>) => core.ComponentCreator<base.ProjectDirectoryProps> & {
|
|
36
36
|
code(template: TemplateStringsArray, ...substitutions: core.Children[]): core.ComponentCreator<base.ProjectDirectoryProps>;
|
|
37
37
|
children(...children: core.Children[]): core.ComponentCreator<base.ProjectDirectoryProps>;
|
|
38
38
|
};
|
package/dist/test/utils.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../test/utils.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,gBAAgB,CAAC;AAKvC,wBAAgB,YAAY,CAAC,CAAC,EAAE,IAAI,CAAC,QAAQ,GAAG,MAAM,CAWrD;AAED,wBAAgB,UAAU,CAAC,CAAC,EAAE,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,eAAe,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../test/utils.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,gBAAgB,CAAC;AAKvC,wBAAgB,YAAY,CAAC,CAAC,EAAE,IAAI,CAAC,QAAQ,GAAG,MAAM,CAWrD;AAED,wBAAgB,UAAU,CAAC,CAAC,EAAE,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,eAAe,CAMjE;AAED,wBAAgB,QAAQ,CACtB,GAAG,EAAE,IAAI,CAAC,eAAe,EACzB,IAAI,EAAE,MAAM,GACX,IAAI,CAAC,UAAU,CA2BjB;AAED,wBAAgB,kBAAkB,CAChC,GAAG,EAAE,IAAI,CAAC,eAAe,EACzB,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GACpC,IAAI,CAKN"}
|