@alloy-js/java 0.25.0-dev.1 → 0.25.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 +4 -0
- package/dist/dev/src/builtins/index.js.map +1 -1
- package/dist/dev/src/builtins/util.js.map +1 -1
- package/dist/dev/src/components/Annotation.js +4 -4
- package/dist/dev/src/components/Annotation.js.map +1 -1
- package/dist/dev/src/components/ArgumentList.js +3 -3
- package/dist/dev/src/components/ArgumentList.js.map +1 -1
- package/dist/dev/src/components/Class.js +10 -10
- package/dist/dev/src/components/Class.js.map +1 -1
- package/dist/dev/src/components/Constructor.js +5 -5
- package/dist/dev/src/components/Constructor.js.map +1 -1
- package/dist/dev/src/components/Declaration.js +1 -1
- package/dist/dev/src/components/Declaration.js.map +1 -1
- package/dist/dev/src/components/Enum.js +9 -9
- package/dist/dev/src/components/Enum.js.map +1 -1
- package/dist/dev/src/components/ExtendsClause.js +4 -4
- package/dist/dev/src/components/ExtendsClause.js.map +1 -1
- package/dist/dev/src/components/ImplementsClause.js +4 -4
- package/dist/dev/src/components/ImplementsClause.js.map +1 -1
- package/dist/dev/src/components/ImportStatement.js.map +1 -1
- package/dist/dev/src/components/Interface.js +8 -8
- package/dist/dev/src/components/Interface.js.map +1 -1
- package/dist/dev/src/components/LexicalScope.js +1 -1
- package/dist/dev/src/components/LexicalScope.js.map +1 -1
- package/dist/dev/src/components/MavenProject.js +24 -24
- package/dist/dev/src/components/MavenProject.js.map +1 -1
- package/dist/dev/src/components/Method.js +4 -4
- package/dist/dev/src/components/Method.js.map +1 -1
- package/dist/dev/src/components/Modifiers.js.map +1 -1
- package/dist/dev/src/components/Name.js.map +1 -1
- package/dist/dev/src/components/NamedArgumentList.js.map +1 -1
- package/dist/dev/src/components/ObjectDeclaration.js +2 -2
- package/dist/dev/src/components/ObjectDeclaration.js.map +1 -1
- package/dist/dev/src/components/PackageDirectory.js +5 -5
- package/dist/dev/src/components/PackageDirectory.js.map +1 -1
- package/dist/dev/src/components/Parameters.js.map +1 -1
- package/dist/dev/src/components/ProjectDirectory.js +1 -1
- package/dist/dev/src/components/ProjectDirectory.js.map +1 -1
- package/dist/dev/src/components/Reference.js.map +1 -1
- package/dist/dev/src/components/SourceFile.js +9 -9
- package/dist/dev/src/components/SourceFile.js.map +1 -1
- package/dist/dev/src/components/TypeArguments.js +11 -11
- package/dist/dev/src/components/TypeArguments.js.map +1 -1
- package/dist/dev/src/components/TypeParameters.js +5 -5
- package/dist/dev/src/components/TypeParameters.js.map +1 -1
- package/dist/dev/src/components/Value.js.map +1 -1
- package/dist/dev/src/components/Variable.js +1 -1
- package/dist/dev/src/components/Variable.js.map +1 -1
- package/dist/dev/src/components/index.js.map +1 -1
- package/dist/dev/src/components/stc/index.js.map +1 -1
- package/dist/dev/src/create-library.js.map +1 -1
- package/dist/dev/src/index.js.map +1 -1
- package/dist/dev/src/name-policy.js.map +1 -1
- package/dist/dev/src/symbols/index.js +0 -1
- package/dist/dev/src/symbols/index.js.map +1 -1
- package/dist/dev/src/symbols/java-lexical-scope.js.map +1 -1
- package/dist/dev/src/symbols/java-output-symbol.js.map +1 -1
- package/dist/dev/src/symbols/java-package-scope.js.map +1 -1
- package/dist/dev/src/symbols/java-project-scope.js.map +1 -1
- package/dist/dev/src/symbols/reference.js.map +1 -1
- package/dist/dev/src/symbols/scopes.js.map +1 -1
- package/dist/dev/src/utils.js.map +1 -1
- package/dist/dev/test/annotation.test.js +13 -13
- package/dist/dev/test/annotation.test.js.map +1 -1
- package/dist/dev/test/class.test.js +29 -29
- package/dist/dev/test/class.test.js.map +1 -1
- package/dist/dev/test/constructor.test.js +16 -16
- package/dist/dev/test/constructor.test.js.map +1 -1
- package/dist/dev/test/enum.test.js +28 -28
- package/dist/dev/test/enum.test.js.map +1 -1
- package/dist/dev/test/externals.test.js +6 -6
- package/dist/dev/test/externals.test.js.map +1 -1
- package/dist/dev/test/interface.test.js +22 -22
- package/dist/dev/test/interface.test.js.map +1 -1
- package/dist/dev/test/maven.test.js +4 -4
- package/dist/dev/test/maven.test.js.map +1 -1
- package/dist/dev/test/method.test.js +40 -40
- package/dist/dev/test/method.test.js.map +1 -1
- package/dist/dev/test/package.test.js +4 -4
- package/dist/dev/test/package.test.js.map +1 -1
- package/dist/dev/test/reference.test.js +21 -21
- package/dist/dev/test/reference.test.js.map +1 -1
- package/dist/dev/test/type-arguments.test.js +21 -21
- package/dist/dev/test/type-arguments.test.js.map +1 -1
- package/dist/dev/test/utils.js +3 -3
- package/dist/dev/test/utils.js.map +1 -1
- package/dist/dev/test/values.test.js +5 -5
- package/dist/dev/test/values.test.js.map +1 -1
- package/dist/dev/test/variables.test.js +32 -32
- package/dist/dev/test/variables.test.js.map +1 -1
- package/dist/dev/test/vitest.setup.js.map +1 -1
- package/dist/src/builtins/index.js.map +1 -1
- package/dist/src/builtins/util.d.ts.map +1 -1
- package/dist/src/builtins/util.js.map +1 -1
- package/dist/src/components/Annotation.d.ts +1 -1
- package/dist/src/components/Annotation.d.ts.map +1 -1
- package/dist/src/components/Annotation.js.map +1 -1
- package/dist/src/components/ArgumentList.d.ts +1 -1
- package/dist/src/components/ArgumentList.d.ts.map +1 -1
- package/dist/src/components/ArgumentList.js.map +1 -1
- package/dist/src/components/Class.d.ts +4 -4
- package/dist/src/components/Class.d.ts.map +1 -1
- package/dist/src/components/Class.js.map +1 -1
- package/dist/src/components/Constructor.d.ts +2 -2
- package/dist/src/components/Constructor.d.ts.map +1 -1
- package/dist/src/components/Constructor.js.map +1 -1
- package/dist/src/components/Declaration.d.ts +2 -2
- package/dist/src/components/Declaration.d.ts.map +1 -1
- package/dist/src/components/Declaration.js.map +1 -1
- package/dist/src/components/Enum.d.ts +3 -3
- package/dist/src/components/Enum.d.ts.map +1 -1
- package/dist/src/components/Enum.js.map +1 -1
- package/dist/src/components/ExtendsClause.d.ts +1 -1
- package/dist/src/components/ExtendsClause.d.ts.map +1 -1
- package/dist/src/components/ExtendsClause.js.map +1 -1
- package/dist/src/components/ImplementsClause.d.ts +1 -1
- package/dist/src/components/ImplementsClause.d.ts.map +1 -1
- package/dist/src/components/ImplementsClause.js.map +1 -1
- package/dist/src/components/ImportStatement.js.map +1 -1
- package/dist/src/components/Interface.d.ts +4 -4
- package/dist/src/components/Interface.d.ts.map +1 -1
- package/dist/src/components/Interface.js.map +1 -1
- package/dist/src/components/LexicalScope.d.ts +1 -1
- package/dist/src/components/LexicalScope.d.ts.map +1 -1
- package/dist/src/components/LexicalScope.js.map +1 -1
- package/dist/src/components/MavenProject.d.ts +2 -2
- package/dist/src/components/MavenProject.d.ts.map +1 -1
- package/dist/src/components/MavenProject.js.map +1 -1
- package/dist/src/components/Method.d.ts +3 -3
- package/dist/src/components/Method.d.ts.map +1 -1
- package/dist/src/components/Method.js.map +1 -1
- package/dist/src/components/Modifiers.js.map +1 -1
- package/dist/src/components/Name.js.map +1 -1
- package/dist/src/components/NamedArgumentList.d.ts +1 -1
- package/dist/src/components/NamedArgumentList.d.ts.map +1 -1
- package/dist/src/components/NamedArgumentList.js.map +1 -1
- package/dist/src/components/ObjectDeclaration.d.ts +3 -3
- package/dist/src/components/ObjectDeclaration.d.ts.map +1 -1
- package/dist/src/components/ObjectDeclaration.js.map +1 -1
- package/dist/src/components/PackageDirectory.d.ts +1 -1
- package/dist/src/components/PackageDirectory.d.ts.map +1 -1
- package/dist/src/components/PackageDirectory.js.map +1 -1
- package/dist/src/components/Parameters.d.ts +2 -2
- package/dist/src/components/Parameters.d.ts.map +1 -1
- package/dist/src/components/Parameters.js.map +1 -1
- package/dist/src/components/ProjectDirectory.d.ts +3 -2
- package/dist/src/components/ProjectDirectory.d.ts.map +1 -1
- package/dist/src/components/ProjectDirectory.js.map +1 -1
- package/dist/src/components/Reference.d.ts +1 -1
- package/dist/src/components/Reference.d.ts.map +1 -1
- package/dist/src/components/Reference.js.map +1 -1
- package/dist/src/components/SourceFile.d.ts +2 -2
- package/dist/src/components/SourceFile.d.ts.map +1 -1
- package/dist/src/components/SourceFile.js.map +1 -1
- package/dist/src/components/TypeArguments.d.ts +1 -1
- package/dist/src/components/TypeArguments.d.ts.map +1 -1
- package/dist/src/components/TypeArguments.js.map +1 -1
- package/dist/src/components/TypeParameters.d.ts +1 -1
- package/dist/src/components/TypeParameters.d.ts.map +1 -1
- package/dist/src/components/TypeParameters.js.map +1 -1
- package/dist/src/components/Value.js.map +1 -1
- package/dist/src/components/Variable.d.ts +2 -2
- package/dist/src/components/Variable.d.ts.map +1 -1
- package/dist/src/components/Variable.js.map +1 -1
- package/dist/src/components/index.js.map +1 -1
- package/dist/src/components/stc/index.d.ts.map +1 -1
- package/dist/src/components/stc/index.js.map +1 -1
- package/dist/src/create-library.d.ts +1 -1
- package/dist/src/create-library.d.ts.map +1 -1
- package/dist/src/create-library.js.map +1 -1
- package/dist/src/index.js.map +1 -1
- package/dist/src/name-policy.d.ts +1 -1
- package/dist/src/name-policy.d.ts.map +1 -1
- package/dist/src/name-policy.js.map +1 -1
- package/dist/src/symbols/index.d.ts +1 -1
- package/dist/src/symbols/index.d.ts.map +1 -1
- package/dist/src/symbols/index.js +0 -1
- package/dist/src/symbols/index.js.map +1 -1
- package/dist/src/symbols/java-lexical-scope.js.map +1 -1
- package/dist/src/symbols/java-output-symbol.d.ts +2 -1
- package/dist/src/symbols/java-output-symbol.d.ts.map +1 -1
- package/dist/src/symbols/java-output-symbol.js.map +1 -1
- package/dist/src/symbols/java-package-scope.d.ts.map +1 -1
- package/dist/src/symbols/java-package-scope.js.map +1 -1
- package/dist/src/symbols/java-project-scope.d.ts +2 -1
- package/dist/src/symbols/java-project-scope.d.ts.map +1 -1
- package/dist/src/symbols/java-project-scope.js.map +1 -1
- package/dist/src/symbols/reference.d.ts +1 -1
- package/dist/src/symbols/reference.d.ts.map +1 -1
- package/dist/src/symbols/reference.js.map +1 -1
- package/dist/src/symbols/scopes.d.ts +2 -2
- package/dist/src/symbols/scopes.d.ts.map +1 -1
- package/dist/src/symbols/scopes.js.map +1 -1
- package/dist/src/utils.d.ts.map +1 -1
- package/dist/src/utils.js.map +1 -1
- package/dist/test/annotation.test.js.map +1 -1
- package/dist/test/class.test.js.map +1 -1
- package/dist/test/constructor.test.js.map +1 -1
- package/dist/test/enum.test.js.map +1 -1
- package/dist/test/externals.test.js.map +1 -1
- package/dist/test/interface.test.js.map +1 -1
- package/dist/test/maven.test.js.map +1 -1
- package/dist/test/method.test.js.map +1 -1
- package/dist/test/package.test.js.map +1 -1
- package/dist/test/reference.test.js.map +1 -1
- package/dist/test/type-arguments.test.js.map +1 -1
- package/dist/test/utils.d.ts +1 -1
- package/dist/test/utils.d.ts.map +1 -1
- package/dist/test/utils.js.map +1 -1
- package/dist/test/values.test.js.map +1 -1
- package/dist/test/variables.test.js.map +1 -1
- package/dist/test/vitest.setup.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/docs/api/components/ArgumentList.md +4 -4
- package/docs/api/components/Class.md +4 -4
- package/docs/api/components/Constructor.md +1 -1
- package/docs/api/components/Declaration.md +6 -6
- package/docs/api/components/Enum.md +18 -18
- package/docs/api/components/EnumMember.md +16 -16
- package/docs/api/components/Interface.md +3 -3
- package/docs/api/components/Method.md +3 -3
- package/docs/api/components/ObjectDeclaration.md +19 -19
- package/docs/api/components/PackageDirectory.md +4 -4
- package/docs/api/components/ProjectDirectory.md +6 -6
- package/docs/api/components/SourceFile.md +4 -4
- package/docs/api/components/TypeArguments.md +3 -3
- package/docs/api/components/Variable.md +17 -17
- package/docs/api/types/CommonDeclarationProps.md +5 -5
- package/docs/api/types/JavaProjectScopeOptions.md +4 -4
- package/package.json +8 -8
- package/src/builtins/util.ts +1 -0
- package/src/components/Annotation.tsx +2 -1
- package/src/components/ArgumentList.tsx +2 -1
- package/src/components/Class.tsx +9 -4
- package/src/components/Constructor.tsx +4 -2
- package/src/components/Declaration.tsx +5 -8
- package/src/components/Enum.tsx +7 -3
- package/src/components/ExtendsClause.tsx +2 -1
- package/src/components/ImplementsClause.tsx +2 -1
- package/src/components/Interface.tsx +9 -4
- package/src/components/LexicalScope.tsx +3 -7
- package/src/components/MavenProject.tsx +12 -17
- package/src/components/Method.tsx +12 -9
- package/src/components/NamedArgumentList.tsx +1 -1
- package/src/components/ObjectDeclaration.tsx +5 -3
- package/src/components/PackageDirectory.tsx +4 -5
- package/src/components/Parameters.tsx +2 -1
- package/src/components/ProjectDirectory.tsx +6 -6
- package/src/components/Reference.tsx +2 -1
- package/src/components/SourceFile.tsx +8 -7
- package/src/components/TypeArguments.tsx +2 -1
- package/src/components/TypeParameters.tsx +2 -1
- package/src/components/Variable.tsx +5 -2
- package/src/components/stc/index.ts +1 -0
- package/src/create-library.ts +5 -5
- package/src/name-policy.ts +2 -1
- package/src/symbols/index.ts +1 -1
- package/src/symbols/java-output-symbol.ts +6 -11
- package/src/symbols/java-project-scope.ts +1 -1
- package/src/symbols/reference.ts +5 -3
- package/src/symbols/scopes.ts +2 -2
- package/src/utils.ts +1 -0
- package/temp/api.json +8 -8
- package/test/annotation.test.tsx +1 -0
- package/test/class.test.tsx +1 -0
- package/test/constructor.test.tsx +3 -2
- package/test/enum.test.tsx +1 -0
- package/test/externals.test.tsx +1 -0
- package/test/interface.test.tsx +1 -0
- package/test/maven.test.tsx +2 -1
- package/test/method.test.tsx +4 -3
- package/test/package.test.tsx +1 -0
- package/test/reference.test.tsx +1 -0
- package/test/type-arguments.test.tsx +4 -3
- package/test/utils.tsx +3 -1
- package/test/values.test.tsx +1 -0
- package/test/variables.test.tsx +5 -4
- package/tsdoc-metadata.json +1 -1
- package/vitest.config.ts +0 -12
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":[],"sources":["../../../test/variables.test.tsx"],"sourcesContent":["import { code, namekey, Output, refkey } from \"@alloy-js/core\";\nimport { expect, it } from \"vitest\";\n\nimport * as jv from \"../src/components/index.js\";\nimport { TestPackage } from \"./utils.js\";\n\nit(\"works\", () => {\n expect(\n <TestPackage>\n <jv.Declaration name=\"Test\">\n {code`\n class Test {\n ${<jv.Variable public static final type=\"String\" name=\"myVar\" value={<jv.Value value=\"Test\" />} />};\n }\n `}\n </jv.Declaration>\n </TestPackage>,\n ).toRenderTo(`\n package me.test.code;\n\n class Test {\n public static final String myVar = \"Test\";\n }\n `);\n});\n\nit(\"takes a namekey\", () => {\n expect(\n <TestPackage>\n <jv.Declaration name={namekey(\"Test\")}>\n {code`\n class Test {\n ${<jv.Variable public static final type=\"String\" name=\"myVar\" value={<jv.Value value=\"Test\" />} />};\n }\n `}\n </jv.Declaration>\n </TestPackage>,\n ).toRenderTo(`\n package me.test.code;\n\n class Test {\n public static final String myVar = \"Test\";\n }\n `);\n});\n\nit(\"works with external type\", () => {\n expect(\n <Output>\n <jv.PackageDirectory package=\"me.test.code\">\n <jv.SourceFile path=\"Model.java\">\n <jv.Declaration name=\"Model\">\n {code`\n public class Model {\n }\n `}\n </jv.Declaration>\n </jv.SourceFile>\n <jv.PackageDirectory package=\"imports\">\n <jv.SourceFile path=\"Test.java\">\n <jv.Declaration name=\"Test\">\n {code`\n public class Test {\n ${<jv.Variable public static type={refkey(\"Model\")} name=\"myModel\" />};\n }\n `}\n </jv.Declaration>\n </jv.SourceFile>\n </jv.PackageDirectory>\n </jv.PackageDirectory>\n </Output>,\n ).toRenderTo({\n \"me/test/code/Model.java\": expect.any(String),\n \"me/test/code/imports/Test.java\": `\n package me.test.code.imports;\n\n import me.test.code.Model;\n\n public class Test {\n public static Model myModel;\n }\n `,\n });\n});\n\nit(\"declares new object\", () => {\n expect(\n <Output>\n <jv.PackageDirectory package=\"me.test.code\">\n <jv.SourceFile path=\"Model.java\">\n <jv.Declaration name=\"Model\">\n {code`\n public class Model {\n }\n `}\n </jv.Declaration>\n </jv.SourceFile>\n <jv.PackageDirectory package=\"imports\">\n <jv.SourceFile path=\"Test.java\">\n <jv.Declaration name=\"Test\">\n {code`\n public class Test {\n ${<jv.ObjectDeclaration public static type={refkey(\"Model\")} name=\"myModel\" args={[<jv.Value value=\"initValue\" />]} />};\n }\n `}\n </jv.Declaration>\n </jv.SourceFile>\n </jv.PackageDirectory>\n </jv.PackageDirectory>\n </Output>,\n ).toRenderTo({\n \"me/test/code/Model.java\": expect.any(String),\n \"me/test/code/imports/Test.java\": `\n package me.test.code.imports;\n\n import me.test.code.Model;\n\n public class Test {\n public static Model myModel = new Model(\"initValue\");\n }\n `,\n });\n});\n"],"mappings":";AAAA,SAAS,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,gBAAgB;AAC9D,SAAS,MAAM,EAAE,EAAE,QAAQ,QAAQ;AAEnC,OAAO,KAAK,EAAE,MAAM,4BAA4B;AAChD,SAAS,WAAW,QAAQ,YAAY;AAExC,EAAE,CAAC,OAAO,EAAE,MAAM;EAChB,MAAM,mBACH,WAAW;IAAA;MAAA,yBACT,EAAE,CAAC,WAAW;QAAC,IAAI;QAAA;UAAA,OACjB,IAAI;AACb;AACA,cAFa,kBAEE,EAAE,CAAC,QAAQ;YAAA;YAAA;YAAe,KAAK;YAAC,IAAI;YAAU,IAAI;YAAA,IAAS,KAAK;cAAA,yBAAG,EAAE,CAAC,KAAK;gBAAC,KAAK;cAAA;gBAAA;gBAAA;gBAAA;cAAA;YAAA;UAAA;YAAA;YAAA;YAAA;UAAA;AAChG;AACA,SAAS;QAAA;MAAA;QAAA;QAAA;QAAA;MAAA;IAAA;EAAA;IAAA;IAAA;IAAA;EAAA,EAGP,CAAC,CAAC,UAAU,CAAC;AACf;AACA;AACA;AACA;AACA;AACA,GAAG,CAAC;AACJ,CAAC,CAAC;AAEF,EAAE,CAAC,iBAAiB,EAAE,MAAM;EAC1B,MAAM,mBACH,WAAW;IAAA;MAAA,yBACT,EAAE,CAAC,WAAW;QAAA,IAAC,IAAI;UAAA,OAAE,OAAO,CAAC,MAAM,CAAC;QAAA;QAAA;UAAA,OAClC,IAAI;AACb;AACA,cAFa,kBAEE,EAAE,CAAC,QAAQ;YAAA;YAAA;YAAe,KAAK;YAA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;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACE,CAAC,CAAC;AACJ,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["../../../test/vitest.setup.ts"],"sourcesContent":[
|
|
1
|
+
{"version":3,"names":[],"sources":["../../../test/vitest.setup.ts"],"sourcesContent":["import \"@alloy-js/core/testing\";\n"],"mappings":"AAAA,OAAO,wBAAwB","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["../../../src/builtins/index.ts"],"sourcesContent":[
|
|
1
|
+
{"version":3,"names":[],"sources":["../../../src/builtins/index.ts"],"sourcesContent":["export * from \"./util.js\";\n"],"mappings":"AAAA,cAAc,WAAW","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../../src/builtins/util.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../../src/builtins/util.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AASpD,eAAO,MAAM,QAAQ;;kBAkHnB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":[],"sources":["../../../src/builtins/util.ts"],"sourcesContent":["import type { SymbolCreator } from \"@alloy-js/core\";\n\nimport { createLibrary } from \"../create-library.js\";\n// work around very strange issue where TypeScript complains that the inferred\n// type of the below cannot be named without a reference to ../../alloy-js/core\n// and demands a type annotation.\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\ntype dummy = SymbolCreator;\n\nexport const javaUtil = createLibrary({\n groupId: \"java.util\",\n artifactId: \"java-util\",\n version: \"1.0.0\",\n descriptor: {\n \"java.util\": [\n \"Collection\",\n \"Comparator\",\n \"Deque\",\n \"Enumeration\",\n \"EventListener\",\n \"Formattable\",\n \"Iterator\",\n \"List\",\n \"ListIterator\",\n \"Map\",\n \"Map.Entry\",\n \"NavigableMap\",\n \"NavigableSet\",\n \"Observer\",\n \"PrimitiveIterator\",\n \"Queue\",\n \"RandomAccess\",\n \"Set\",\n \"SortedMap\",\n \"SortedSet\",\n \"Spliterator\",\n \"AbstractCollection\",\n \"AbstractList\",\n \"AbstractMap\",\n \"AbstractQueue\",\n \"AbstractSequentialList\",\n \"AbstractSet\",\n \"ArrayDeque\",\n \"ArrayList\",\n \"Arrays\",\n \"Base64\",\n \"BitSet\",\n \"Calendar\",\n \"Collections\",\n \"Currency\",\n \"Date\",\n \"Dictionary\",\n \"DoubleSummaryStatistics\",\n \"EnumMap\",\n \"EnumSet\",\n \"EventListenerProxy\",\n \"EventObject\",\n \"FormattableFlags\",\n \"Formatter\",\n \"GregorianCalendar\",\n \"HashMap\",\n \"HashSet\",\n \"Hashtable\",\n \"IdentityHashMap\",\n \"IntSummaryStatistics\",\n \"LinkedHashMap\",\n \"LinkedHashSet\",\n \"LinkedList\",\n \"ListResourceBundle\",\n \"Locale\",\n \"LongSummaryStatistics\",\n \"Objects\",\n \"Observable\",\n \"Optional\",\n \"OptionalDouble\",\n \"OptionalInt\",\n \"OptionalLong\",\n \"PriorityQueue\",\n \"Properties\",\n \"PropertyPermission\",\n \"PropertyResourceBundle\",\n \"Random\",\n \"ResourceBundle\",\n \"ResourceBundle.Control\",\n \"Scanner\",\n \"ServiceLoader\",\n \"SimpleTimeZone\",\n \"Spliterators\",\n \"SplittableRandom\",\n \"Stack\",\n \"StringJoiner\",\n \"StringTokenizer\",\n \"Timer\",\n \"TimerTask\",\n \"TimeZone\",\n \"TreeMap\",\n \"TreeSet\",\n \"UUID\",\n \"Vector\",\n \"WeakHashMap\",\n \"ConcurrentModificationException\",\n \"DuplicateFormatFlagsException\",\n \"EmptyStackException\",\n \"FormatFlagsConversionMismatchException\",\n \"FormatterClosedException\",\n \"IllegalFormatCodePointException\",\n \"IllegalFormatConversionException\",\n \"IllegalFormatException\",\n \"IllegalFormatFlagsException\",\n \"IllegalFormatPrecisionException\",\n \"IllegalFormatWidthException\",\n \"IllformedLocaleException\",\n \"InputMismatchException\",\n \"InvalidPropertiesFormatException\",\n \"MissingFormatArgumentException\",\n \"MissingFormatWidthException\",\n \"MissingResourceException\",\n \"NoSuchElementException\",\n \"TooManyListenersException\",\n \"UnknownFormatConversionException\",\n \"UnknownFormatFlagsException\",\n ],\n },\n});\n"],"mappings":"AAEA,SAAS,aAAa,QAAQ,sBAAsB;AACpD;AACA;AACA;AACA;;AAGA,OAAO,MAAM,QAAQ,GAAG,aAAa,CAAC;EACpC,OAAO,EAAE,WAAW;EACpB,UAAU,EAAE,WAAW;EACvB,OAAO,EAAE,OAAO;EAChB,UAAU,EAAE;IACV,WAAW,EAAE,CACX,YAAY,EACZ,YAAY,EACZ,OAAO,EACP,aAAa,EACb,eAAe,EACf,aAAa,EACb,UAAU,EACV,MAAM,EACN,cAAc,EACd,KAAK,EACL,WAAW,EACX,cAAc,EACd,cAAc,EACd,UAAU,EACV,mBAAmB,EACnB,OAAO,EACP,cAAc,EACd,KAAK,EACL,WAAW,EACX,WAAW,EACX,aAAa,EACb,oBAAoB,EACpB,cAAc,EACd,aAAa,EACb,eAAe,EACf,wBAAwB,EACxB,aAAa,EACb,YAAY,EACZ,WAAW,EACX,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,UAAU,EACV,aAAa,EACb,UAAU,EACV,MAAM,EACN,YAAY,EACZ,yBAAyB,EACzB,SAAS,EACT,SAAS,EACT,oBAAoB,EACpB,aAAa,EACb,kBAAkB,EAClB,WAAW,EACX,mBAAmB,EACnB,SAAS,EACT,SAAS,EACT,WAAW,EACX,iBAAiB,EACjB,sBAAsB,EACtB,eAAe,EACf,eAAe,EACf,YAAY,EACZ,oBAAoB,EACpB,QAAQ,EACR,uBAAuB,EACvB,SAAS,EACT,YAAY,EACZ,UAAU,EACV,gBAAgB,EAChB,aAAa,EACb,cAAc,EACd,eAAe,EACf,YAAY,EACZ,oBAAoB,EACpB,wBAAwB,EACxB,QAAQ,EACR,gBAAgB,EAChB,wBAAwB,EACxB,SAAS,EACT,eAAe,EACf,gBAAgB,EAChB,cAAc,EACd,kBAAkB,EAClB,OAAO,EACP,cAAc,EACd,iBAAiB,EACjB,OAAO,EACP,WAAW,EACX,UAAU,EACV,SAAS,EACT,SAAS,EACT,MAAM,EACN,QAAQ,EACR,aAAa,EACb,iCAAiC,EACjC,+BAA+B,EAC/B,qBAAqB,EACrB,wCAAwC,EACxC,0BAA0B,EAC1B,iCAAiC,EACjC,kCAAkC,EAClC,wBAAwB,EACxB,6BAA6B,EAC7B,iCAAiC,EACjC,6BAA6B,EAC7B,0BAA0B,EAC1B,wBAAwB,EACxB,kCAAkC,EAClC,gCAAgC,EAChC,6BAA6B,EAC7B,0BAA0B,EAC1B,wBAAwB,EACxB,2BAA2B,EAC3B,kCAAkC,EAClC,6BAA6B;EAEjC;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Annotation.d.ts","sourceRoot":"","sources":["../../../src/components/Annotation.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"Annotation.d.ts","sourceRoot":"","sources":["../../../src/components/Annotation.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AAI3D,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,QAAQ,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;CAClC;AAED;;;GAGG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,eAAe,YAoBhD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[
|
|
1
|
+
{"version":3,"names":[],"sources":["../../../src/components/Annotation.tsx"],"sourcesContent":["import { Match, Switch } from \"@alloy-js/core\";\nimport type { Children } from \"@alloy-js/core/jsx-runtime\";\n\nimport { NamedArgumentList } from \"./NamedArgumentList.jsx\";\n\nexport interface AnnotationProps {\n type: Children;\n value?: Record<string, Children>; // Either single value or named values if many\n}\n\n/**\n * Use an annotation in code, not declaring a new annotation.\n * For instance, use this if you want to annotate a method with '\\@Override'.\n */\nexport function Annotation(props: AnnotationProps) {\n return (\n <>\n @{props.type}\n <Switch>\n <Match\n when={\n props.value &&\n Object.keys(props.value).length === 1 &&\n \"value\" in props.value\n }\n >\n ({props.value![\"value\"]})\n </Match>\n <Match when={!!props.value}>\n <NamedArgumentList args={props.value!} />\n </Match>\n </Switch>\n </>\n );\n}\n"],"mappings":";AAAA,SAAS,KAAK,EAAE,MAAM,QAAQ,gBAAgB;AAG9C,SAAS,iBAAiB;AAO1B;AACA;AACA;AACA;AACA,OAAO,SAAS,UAAU,CAAC,KAAsB,EAAE;EACjD,0BAEM,KAAK,CAAC,IAAI,qBACX,MAAM;IAAA;MAAA,0BACJ,KAAK;QAAA,IACJ,IAAI;UAAA,OACF,KAAK,CAAC,KAAK,IACX,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,MAAM,KAAK,CAAC,IACrC,OAAO,IAAI,KAAK,CAAC,KAAK;QAAA;QAAA;UAAA,0BAGtB,KAAK,CAAC,KAAK,CAAE,OAAO,CAAC;QAAA;MAAA,sBAExB,KAAK;QAAA,IAAC,IAAI;UAAA,OAAE,CAAC,CAAC,KAAK,CAAC,KAAK;QAAA;QAAA;UAAA,yBACvB,iBAAiB;YAAA,IAAC,IAAI;cAAA,OAAE,KAAK,CAAC,KAAK;YAAA;UAAA;QAAA;MAAA;IAAA;EAAA;AAK9C","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ArgumentList.d.ts","sourceRoot":"","sources":["../../../src/components/ArgumentList.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,
|
|
1
|
+
{"version":3,"file":"ArgumentList.d.ts","sourceRoot":"","sources":["../../../src/components/ArgumentList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAG/C,MAAM,WAAW,iBAAiB;IAChC,IAAI,CAAC,EAAE,QAAQ,EAAE,CAAC;IAClB,mBAAmB,CAAC,EAAE,OAAO,CAAC;CAC/B;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,iBAAiB,YAgBpD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[
|
|
1
|
+
{"version":3,"names":[],"sources":["../../../src/components/ArgumentList.tsx"],"sourcesContent":["import type { Children } from \"@alloy-js/core\";\nimport { For, Indent } from \"@alloy-js/core\";\n\nexport interface ArgumentListProps {\n args?: Children[];\n omitParensWhenEmpty?: boolean;\n}\n\n/**\n * A list of arguments to be passed to a function, constructor, enum, and so\n * forth. Includes parenthesis when arguments are passed, otherwise returns an\n * empty string.\n */\nexport function ArgumentList(props: ArgumentListProps) {\n if (props.omitParensWhenEmpty && (!props.args || props.args.length === 0)) {\n return \"\";\n }\n\n return (\n <group>\n (\n <Indent softline trailingBreak>\n <For each={props.args ?? []} comma line>\n {(value) => value}\n </For>\n </Indent>\n )\n </group>\n );\n}\n"],"mappings":";AACA,SAAS,GAAG,EAAE,MAAM,QAAQ,gBAAgB;AAO5C;AACA;AACA;AACA;AACA;AACA,OAAO,SAAS,YAAY,CAAC,KAAwB,EAAE;EACrD,IAAI,KAAK,CAAC,mBAAmB,KAAK,CAAC,KAAK,CAAC,IAAI,IAAI,KAAK,CAAC,IAAI,CAAC,MAAM,KAAK,CAAC,CAAC,EAAE;IACzE,OAAO,EAAE;EACX;EAEA;IAAA;MAAA,+BAGK,MAAM;QAAC,QAAQ;QAAC,aAAa;QAAA;UAAA,yBAC3B,GAAG;YAAA,IAAC,IAAI;cAAA,OAAE,KAAK,CAAC,IAAI,IAAI,EAAE;YAAA;YAAE,KAAK;YAAC,IAAI;YAAA,UACnC,KAAK,IAAK;UAAK;QAAA;MAAA;IAAA;EAAA;AAM3B","ignoreList":[]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Children } from "@alloy-js/core";
|
|
2
|
-
import { CommonDeclarationProps } from "./Declaration.js";
|
|
3
|
-
import { ModifierProps } from "./Modifiers.jsx";
|
|
4
|
-
import { TypeParametersProps } from "./TypeParameters.jsx";
|
|
1
|
+
import type { Children } from "@alloy-js/core";
|
|
2
|
+
import type { CommonDeclarationProps } from "./Declaration.js";
|
|
3
|
+
import type { ModifierProps } from "./Modifiers.jsx";
|
|
4
|
+
import type { TypeParametersProps } from "./TypeParameters.jsx";
|
|
5
5
|
export interface ClassProps extends CommonDeclarationProps, ModifierProps, TypeParametersProps {
|
|
6
6
|
extends?: Children;
|
|
7
7
|
implements?: Children[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Class.d.ts","sourceRoot":"","sources":["../../../src/components/Class.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"Class.d.ts","sourceRoot":"","sources":["../../../src/components/Class.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAG/C,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAK/D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAGrD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAGhE,MAAM,WAAW,UACf,SAAQ,sBAAsB,EAAE,aAAa,EAAE,mBAAmB;IAClE,OAAO,CAAC,EAAE,QAAQ,CAAC;IACnB,UAAU,CAAC,EAAE,QAAQ,EAAE,CAAC;CACzB;AAED,wBAAgB,KAAK,CAAC,KAAK,EAAE,UAAU,YAiBtC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[
|
|
1
|
+
{"version":3,"names":[],"sources":["../../../src/components/Class.tsx"],"sourcesContent":["import type { Children } from \"@alloy-js/core\";\nimport { Block, Show } from \"@alloy-js/core\";\n\nimport type { CommonDeclarationProps } from \"./Declaration.js\";\nimport { Declaration } from \"./Declaration.js\";\nimport { ExtendsClause } from \"./ExtendsClause.js\";\nimport { ImplementsClause } from \"./ImplementsClause.js\";\nimport { LexicalScope } from \"./LexicalScope.jsx\";\nimport type { ModifierProps } from \"./Modifiers.jsx\";\nimport { Modifiers } from \"./Modifiers.jsx\";\nimport { Name } from \"./Name.js\";\nimport type { TypeParametersProps } from \"./TypeParameters.jsx\";\nimport { TypeParameters } from \"./TypeParameters.jsx\";\n\nexport interface ClassProps\n extends CommonDeclarationProps, ModifierProps, TypeParametersProps {\n extends?: Children;\n implements?: Children[];\n}\n\nexport function Class(props: ClassProps) {\n return (\n <Declaration {...props} name={props.name} nameKind=\"class\">\n <group>\n <Modifiers {...props} />\n class <Name />\n <Show when={!!props.generics}>\n <TypeParameters generics={props.generics} />\n </Show>\n <ExtendsClause extends={props.extends ? [props.extends] : []} />\n <ImplementsClause interfaces={props.implements} />{\" \"}\n <LexicalScope>\n <Block>{props.children}</Block>\n </LexicalScope>\n </group>\n </Declaration>\n );\n}\n"],"mappings":";AACA,SAAS,KAAK,EAAE,IAAI,QAAQ,gBAAgB;AAG5C,SAAS,WAAW,QAAQ,kBAAkB;AAC9C,SAAS,aAAa,QAAQ,oBAAoB;AAClD,SAAS,gBAAgB,QAAQ,uBAAuB;AACxD,SAAS,YAAY;AAErB,SAAS,SAAS;AAClB,SAAS,IAAI,QAAQ,WAAW;AAEhC,SAAS,cAAc;AAQvB,OAAO,SAAS,KAAK,CAAC,KAAiB,EAAE;EACvC,yBACG,WAAW,eAAK,KAAK;IAAA,IAAE,IAAI;MAAA,OAAE,KAAK,CAAC,IAAI;IAAA;IAAE,QAAQ;IAAA;MAAA;QAAA;UAAA,0BAE7C,SAAS,EAAK,KAAK,+BACb,IAAI,yBACV,IAAI;YAAA,IAAC,IAAI;cAAA,OAAE,CAAC,CAAC,KAAK,CAAC,QAAQ;YAAA;YAAA;cAAA,yBACzB,cAAc;gBAAA,IAAC,QAAQ;kBAAA,OAAE,KAAK,CAAC,QAAQ;gBAAA;cAAA;YAAA;UAAA,sBAEzC,aAAa;YAAA;cAAA,OAAU,KAAK,CAAC,OAAO,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE;YAAA;UAAA,sBAC3D,gBAAgB;YAAA,IAAC,UAAU;cAAA,OAAE,KAAK,CAAC,UAAU;YAAA;UAAA,IAAK,GAAG,oBACrD,YAAY;YAAA;cAAA,yBACV,KAAK;gBAAA;kBAAA,OAAE,KAAK,CAAC,QAAQ;gBAAA;cAAA;YAAA;UAAA;QAAA;MAAA;IAAA;EAAA;AAKhC","ignoreList":[]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Children } from "@alloy-js/core/jsx-runtime";
|
|
2
|
-
import { ModifierProps } from "./Modifiers.jsx";
|
|
1
|
+
import type { Children } from "@alloy-js/core/jsx-runtime";
|
|
2
|
+
import type { ModifierProps } from "./Modifiers.jsx";
|
|
3
3
|
export interface ConstructorProps extends ModifierProps {
|
|
4
4
|
name?: string;
|
|
5
5
|
parameters?: Record<string, Children>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Constructor.d.ts","sourceRoot":"","sources":["../../../src/components/Constructor.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"Constructor.d.ts","sourceRoot":"","sources":["../../../src/components/Constructor.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AAE3D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAKrD,MAAM,WAAW,gBAAiB,SAAQ,aAAa;IACrD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;IACtC,QAAQ,CAAC,EAAE,QAAQ,CAAC;CACrB;AAED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,gBAAgB,YASlD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":[],"sources":["../../../src/components/Constructor.tsx"],"sourcesContent":["import { Block } from \"@alloy-js/core\";\nimport type { Children } from \"@alloy-js/core/jsx-runtime\";\n\nimport type { ModifierProps } from \"./Modifiers.jsx\";\nimport { Modifiers } from \"./Modifiers.jsx\";\nimport { Name } from \"./Name.js\";\nimport { Parameters } from \"./Parameters.js\";\n\nexport interface ConstructorProps extends ModifierProps {\n name?: string;\n parameters?: Record<string, Children>; // Map of parameter name to type\n children?: Children;\n}\n\n/**\n * Declare a constructor, usually for a class or enum\n * If no name is provided, will try take name from class or enum declaration\n */\nexport function Constructor(props: ConstructorProps) {\n return (\n <>\n <Modifiers {...props} />\n {props.name ?? <Name />}(\n <Parameters parameters={props.parameters} />){\" \"}\n <Block>{props.children}</Block>\n </>\n );\n}\n"],"mappings":";AAAA,SAAS,KAAK,QAAQ,gBAAgB;AAItC,SAAS,SAAS;AAClB,SAAS,IAAI,QAAQ,WAAW;AAChC,SAAS,UAAU,QAAQ,iBAAiB;AAQ5C;AACA;AACA;AACA;AACA,OAAO,SAAS,WAAW,CAAC,KAAuB,EAAE;EACnD,0BAEK,SAAS,EAAK,KAAK,gBACnB,KAAK,CAAC,IAAI,sBAAK,IAAI,KAAG,0BACtB,UAAU;IAAA,IAAC,UAAU;MAAA,OAAE,KAAK,CAAC,UAAU;IAAA;EAAA,SAAM,GAAG,oBAChD,KAAK;IAAA;MAAA,OAAE,KAAK,CAAC,QAAQ;IAAA;EAAA;AAG5B","ignoreList":[]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Children, Namekey, Refkey } from "@alloy-js/core";
|
|
2
|
-
import { JavaElements } from "../name-policy.js";
|
|
1
|
+
import type { Children, Namekey, Refkey } from "@alloy-js/core";
|
|
2
|
+
import type { JavaElements } from "../name-policy.js";
|
|
3
3
|
export interface CommonDeclarationProps {
|
|
4
4
|
name: string | Namekey;
|
|
5
5
|
refkey?: Refkey;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Declaration.d.ts","sourceRoot":"","sources":["../../../src/components/Declaration.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"Declaration.d.ts","sourceRoot":"","sources":["../../../src/components/Declaration.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAGhE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAKtD,MAAM,WAAW,sBAAsB;IAErC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,QAAQ,CAAC;CACrB;AAED,MAAM,WAAW,gBAAiB,SAAQ,sBAAsB;IAC9D;;OAEG;IACH,QAAQ,CAAC,EAAE,YAAY,CAAC;CACzB;AAED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,gBAAgB,YAWlD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["Declaration","
|
|
1
|
+
{"version":3,"names":[],"sources":["../../../src/components/Declaration.tsx"],"sourcesContent":["import type { Children, Namekey, Refkey } from \"@alloy-js/core\";\nimport { Declaration as CoreDeclaration, createSymbol } from \"@alloy-js/core\";\n\nimport type { JavaElements } from \"../name-policy.js\";\nimport { useJavaNamePolicy } from \"../name-policy.js\";\nimport { JavaOutputSymbol } from \"../symbols/java-output-symbol.js\";\nimport { useLexicalScope } from \"../utils.js\";\n\nexport interface CommonDeclarationProps {\n // Name of declaration, should be fully qualified name, e.g me.example.code.Main\n name: string | Namekey;\n refkey?: Refkey;\n children?: Children;\n}\n\nexport interface DeclarationProps extends CommonDeclarationProps {\n /**\n * The name policy kind to apply to the declaration.\n */\n nameKind?: JavaElements;\n}\n\n/**\n * Declare a symbol in the program. Declaring classes, interfaces, enums, etc. Should also pass in\n * access modifier so we can manage access\n */\nexport function Declaration(props: DeclarationProps) {\n const scope = useLexicalScope();\n if (!scope) {\n throw new Error(\"A lexical scope is required for declaration\");\n }\n\n const sym = createSymbol(JavaOutputSymbol, props.name, scope.symbols, {\n refkeys: props.refkey,\n namePolicy: useJavaNamePolicy().for(props.nameKind),\n });\n return <CoreDeclaration symbol={sym}>{props.children}</CoreDeclaration>;\n}\n"],"mappings":";AACA,SAAS,WAAW,IAAI,eAAe,EAAE,YAAY,QAAQ,gBAAgB;AAG7E,SAAS,iBAAiB,QAAQ,mBAAmB;AACrD,SAAS,gBAAgB,QAAQ,kCAAkC;AACnE,SAAS,eAAe,QAAQ,aAAa;AAgB7C;AACA;AACA;AACA;AACA,OAAO,SAAS,WAAW,CAAC,KAAuB,EAAE;EACnD,MAAM,KAAK,GAAG,eAAe,CAAC,CAAC;EAC/B,IAAI,CAAC,KAAK,EAAE;IACV,MAAM,IAAI,KAAK,CAAC,6CAA6C,CAAC;EAChE;EAEA,MAAM,GAAG,GAAG,YAAY,CAAC,gBAAgB,EAAE,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,OAAO,EAAE;IACpE,OAAO,EAAE,KAAK,CAAC,MAAM;IACrB,UAAU,EAAE,iBAAiB,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,QAAQ;EACpD,CAAC,CAAC;EACF,yBAAQ,eAAe;IAAC,MAAM,EAAE,GAAG;IAAA;MAAA,OAAG,KAAK,CAAC,QAAQ;IAAA;EAAA;AACtD","ignoreList":[]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Children } from "@alloy-js/core";
|
|
2
|
-
import { CommonDeclarationProps } from "./Declaration.js";
|
|
3
|
-
import { ModifierProps } from "./Modifiers.jsx";
|
|
1
|
+
import type { Children } from "@alloy-js/core";
|
|
2
|
+
import type { CommonDeclarationProps } from "./Declaration.js";
|
|
3
|
+
import type { ModifierProps } from "./Modifiers.jsx";
|
|
4
4
|
export interface EnumProps extends CommonDeclarationProps, ModifierProps {
|
|
5
5
|
implements?: Children[];
|
|
6
6
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Enum.d.ts","sourceRoot":"","sources":["../../../src/components/Enum.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"Enum.d.ts","sourceRoot":"","sources":["../../../src/components/Enum.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAK/C,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAI/D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAIrD,MAAM,WAAW,SAAU,SAAQ,sBAAsB,EAAE,aAAa;IACtE,UAAU,CAAC,EAAE,QAAQ,EAAE,CAAC;CACzB;AAED,wBAAgB,IAAI,CAAC,KAAK,EAAE,SAAS,YAapC;AAED,MAAM,WAAW,eAAgB,SAAQ,aAAa;IACpD,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,QAAQ,EAAE,CAAC;CACnB;AAED,wBAAgB,UAAU,CAAC,KAAK,EAAE,eAAe,YAShD;AAED,MAAM,WAAW,mBAAmB;IAClC,QAAQ,EAAE,QAAQ,CAAC;CACpB;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,mBAAmB,YAExD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[
|
|
1
|
+
{"version":3,"names":[],"sources":["../../../src/components/Enum.tsx"],"sourcesContent":["import type { Children } from \"@alloy-js/core\";\nimport { Block, List } from \"@alloy-js/core\";\n\nimport { useJavaNamePolicy } from \"../name-policy.js\";\nimport { ArgumentList } from \"./ArgumentList.jsx\";\nimport type { CommonDeclarationProps } from \"./Declaration.js\";\nimport { Declaration } from \"./Declaration.js\";\nimport { ImplementsClause } from \"./ImplementsClause.jsx\";\nimport { LexicalScope } from \"./LexicalScope.jsx\";\nimport type { ModifierProps } from \"./Modifiers.jsx\";\nimport { Modifiers } from \"./Modifiers.jsx\";\nimport { Name } from \"./Name.js\";\n\nexport interface EnumProps extends CommonDeclarationProps, ModifierProps {\n implements?: Children[];\n}\n\nexport function Enum(props: EnumProps) {\n return (\n <Declaration {...props} name={props.name} nameKind=\"enum\">\n <group>\n <Modifiers {...props} />\n enum <Name />\n <ImplementsClause interfaces={props.implements} />\n </group>{\" \"}\n <LexicalScope>\n <Block>{props.children}</Block>\n </LexicalScope>\n </Declaration>\n );\n}\n\nexport interface EnumMemberProps extends ModifierProps {\n name: string;\n args?: Children[];\n}\n\nexport function EnumMember(props: EnumMemberProps) {\n const name = useJavaNamePolicy().getName(props.name, \"enum-member\");\n\n return (\n <>\n {name}\n <ArgumentList args={props.args} omitParensWhenEmpty />\n </>\n );\n}\n\nexport interface EnumMemberListProps {\n children: Children;\n}\n\n/**\n * Create a list of enum members, joining with a comma and a hardline, and\n * ending with a semicolon.\n */\nexport function EnumMemberList(props: EnumMemberListProps) {\n return <List children={props.children} comma hardline ender=\";\" />;\n}\n"],"mappings":";AACA,SAAS,KAAK,EAAE,IAAI,QAAQ,gBAAgB;AAE5C,SAAS,iBAAiB,QAAQ,mBAAmB;AACrD,SAAS,YAAY;AAErB,SAAS,WAAW,QAAQ,kBAAkB;AAC9C,SAAS,gBAAgB;AACzB,SAAS,YAAY;AAErB,SAAS,SAAS;AAClB,SAAS,IAAI,QAAQ,WAAW;AAMhC,OAAO,SAAS,IAAI,CAAC,KAAgB,EAAE;EACrC,yBACG,WAAW,eAAK,KAAK;IAAA,IAAE,IAAI;MAAA,OAAE,KAAK,CAAC,IAAI;IAAA;IAAE,QAAQ;IAAA;MAAA;QAAA;UAAA,0BAE7C,SAAS,EAAK,KAAK,8BACd,IAAI,yBACT,gBAAgB;YAAA,IAAC,UAAU;cAAA,OAAE,KAAK,CAAC,UAAU;YAAA;UAAA;QAAA;MAAA,IACvC,GAAG,oBACX,YAAY;QAAA;UAAA,yBACV,KAAK;YAAA;cAAA,OAAE,KAAK,CAAC,QAAQ;YAAA;UAAA;QAAA;MAAA;IAAA;EAAA;AAI9B;AAOA,OAAO,SAAS,UAAU,CAAC,KAAsB,EAAE;EACjD,MAAM,IAAI,GAAG,iBAAiB,CAAC,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,EAAE,aAAa,CAAC;EAEnE,QAEK,IAAI,oBACJ,YAAY;IAAA,IAAC,IAAI;MAAA,OAAE,KAAK,CAAC,IAAI;IAAA;IAAE,mBAAmB;EAAA;AAGzD;AAMA;AACA;AACA;AACA;AACA,OAAO,SAAS,cAAc,CAAC,KAA0B,EAAE;EACzD,yBAAQ,IAAI;IAAA,IAAC,QAAQ;MAAA,OAAE,KAAK,CAAC,QAAQ;IAAA;IAAE,KAAK;IAAC,QAAQ;IAAC,KAAK;EAAA;AAC7D","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExtendsClause.d.ts","sourceRoot":"","sources":["../../../src/components/ExtendsClause.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,
|
|
1
|
+
{"version":3,"file":"ExtendsClause.d.ts","sourceRoot":"","sources":["../../../src/components/ExtendsClause.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAG/C,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,QAAQ,EAAE,GAAG,SAAS,CAAC;CACjC;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,kBAAkB,YAStD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[
|
|
1
|
+
{"version":3,"names":[],"sources":["../../../src/components/ExtendsClause.tsx"],"sourcesContent":["import type { Children } from \"@alloy-js/core\";\nimport { List, Show } from \"@alloy-js/core\";\n\nexport interface ExtendsClauseProps {\n extends: Children[] | undefined;\n}\n\n/**\n * The extends clause for a class or interface.\n */\nexport function ExtendsClause(props: ExtendsClauseProps) {\n return (\n <Show when={props.extends !== undefined && props.extends.length > 0}>\n <indent>\n <br />\n extends <List children={props.extends} comma space />\n </indent>\n </Show>\n );\n}\n"],"mappings":";AACA,SAAS,IAAI,EAAE,IAAI,QAAQ,gBAAgB;AAM3C;AACA;AACA;AACA,OAAO,SAAS,aAAa,CAAC,KAAyB,EAAE;EACvD,yBACG,IAAI;IAAA,IAAC,IAAI;MAAA,OAAE,KAAK,CAAC,OAAO,KAAK,SAAS,IAAI,KAAK,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC;IAAA;IAAA;MAAA;QAAA;UAAA,mEAGtD,IAAI;YAAA,IAAC,QAAQ;cAAA,OAAE,KAAK,CAAC,OAAO;YAAA;YAAE,KAAK;YAAC,KAAK;UAAA;QAAA;MAAA;IAAA;EAAA;AAI1D","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImplementsClause.d.ts","sourceRoot":"","sources":["../../../src/components/ImplementsClause.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,
|
|
1
|
+
{"version":3,"file":"ImplementsClause.d.ts","sourceRoot":"","sources":["../../../src/components/ImplementsClause.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAG/C,MAAM,WAAW,qBAAqB;IACpC,UAAU,EAAE,QAAQ,EAAE,GAAG,SAAS,CAAC;CACpC;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,qBAAqB,YAS5D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[
|
|
1
|
+
{"version":3,"names":[],"sources":["../../../src/components/ImplementsClause.tsx"],"sourcesContent":["import type { Children } from \"@alloy-js/core\";\nimport { List, Show } from \"@alloy-js/core\";\n\nexport interface ImplementsClauseProps {\n interfaces: Children[] | undefined;\n}\n\n/**\n * The implements clause for a class, interface, or enum.\n */\nexport function ImplementsClause(props: ImplementsClauseProps) {\n return (\n <Show when={props.interfaces !== undefined && props.interfaces.length > 0}>\n <indent>\n <br />\n implements <List children={props.interfaces} comma space />\n </indent>\n </Show>\n );\n}\n"],"mappings":";AACA,SAAS,IAAI,EAAE,IAAI,QAAQ,gBAAgB;AAM3C;AACA;AACA;AACA,OAAO,SAAS,gBAAgB,CAAC,KAA4B,EAAE;EAC7D,yBACG,IAAI;IAAA,IAAC,IAAI;MAAA,OAAE,KAAK,CAAC,UAAU,KAAK,SAAS,IAAI,KAAK,CAAC,UAAU,CAAC,MAAM,GAAG,CAAC;IAAA;IAAA;MAAA;QAAA;UAAA,sEAGzD,IAAI;YAAA,IAAC,QAAQ;cAAA,OAAE,KAAK,CAAC,UAAU;YAAA;YAAE,KAAK;YAAC,KAAK;UAAA;QAAA;MAAA;IAAA;EAAA;AAIhE","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[
|
|
1
|
+
{"version":3,"names":[],"sources":["../../../src/components/ImportStatement.tsx"],"sourcesContent":["import { mapJoin, memo } from \"@alloy-js/core\";\n\nexport interface ImportSymbol {\n package: string;\n name?: string;\n wildcard?: boolean;\n}\n\nexport interface ImportStatementsProps {\n imports: ImportSymbol[];\n}\n\nexport function ImportStatements(props: ImportStatementsProps) {\n return memo(() =>\n mapJoin(\n () => props.imports,\n (importProp) => () => <ImportStatement {...importProp} />,\n ),\n );\n}\n\nexport function ImportStatement(props: ImportSymbol) {\n return () => `import ${props.package}.${props.wildcard ? \"*\" : props.name};`;\n}\n"],"mappings":";AAAA,SAAS,OAAO,EAAE,IAAI,QAAQ,gBAAgB;AAY9C,OAAO,SAAS,gBAAgB,CAAC,KAA4B,EAAE;EAC7D,OAAO,IAAI,CAAC,MACV,OAAO,CACL,MAAM,KAAK,CAAC,OAAO,EAClB,UAAU,IAAK,wBAAO,eAAe,EAAK,UAAU,CACvD,CACF,CAAC;AACH;AAEA,OAAO,SAAS,eAAe,CAAC,KAAmB,EAAE;EACnD,OAAO,MAAM,UAAU,KAAK,CAAC,OAAO,IAAI,KAAK,CAAC,QAAQ,GAAG,GAAG,GAAG,KAAK,CAAC,IAAI,GAAG;AAC9E","ignoreList":[]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Children } from "@alloy-js/core";
|
|
2
|
-
import { CommonDeclarationProps } from "./Declaration.js";
|
|
3
|
-
import { ModifierProps } from "./Modifiers.jsx";
|
|
4
|
-
import { TypeParametersProps } from "./TypeParameters.jsx";
|
|
1
|
+
import type { Children } from "@alloy-js/core";
|
|
2
|
+
import type { CommonDeclarationProps } from "./Declaration.js";
|
|
3
|
+
import type { ModifierProps } from "./Modifiers.jsx";
|
|
4
|
+
import type { TypeParametersProps } from "./TypeParameters.jsx";
|
|
5
5
|
export interface InterfaceProps extends CommonDeclarationProps, ModifierProps, TypeParametersProps {
|
|
6
6
|
extends?: Children[];
|
|
7
7
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Interface.d.ts","sourceRoot":"","sources":["../../../src/components/Interface.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"Interface.d.ts","sourceRoot":"","sources":["../../../src/components/Interface.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAG/C,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAI/D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAGrD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAGhE,MAAM,WAAW,cACf,SAAQ,sBAAsB,EAAE,aAAa,EAAE,mBAAmB;IAClE,OAAO,CAAC,EAAE,QAAQ,EAAE,CAAC;CACtB;AAED,wBAAgB,SAAS,CAAC,KAAK,EAAE,cAAc,YAc9C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[
|
|
1
|
+
{"version":3,"names":[],"sources":["../../../src/components/Interface.tsx"],"sourcesContent":["import type { Children } from \"@alloy-js/core\";\nimport { Block } from \"@alloy-js/core\";\n\nimport type { CommonDeclarationProps } from \"./Declaration.js\";\nimport { Declaration } from \"./Declaration.js\";\nimport { ExtendsClause } from \"./ExtendsClause.jsx\";\nimport { LexicalScope } from \"./LexicalScope.jsx\";\nimport type { ModifierProps } from \"./Modifiers.jsx\";\nimport { Modifiers } from \"./Modifiers.jsx\";\nimport { Name } from \"./Name.js\";\nimport type { TypeParametersProps } from \"./TypeParameters.jsx\";\nimport { TypeParameters } from \"./TypeParameters.jsx\";\n\nexport interface InterfaceProps\n extends CommonDeclarationProps, ModifierProps, TypeParametersProps {\n extends?: Children[];\n}\n\nexport function Interface(props: InterfaceProps) {\n return (\n <Declaration {...props} name={props.name} nameKind=\"interface\">\n <group>\n <Modifiers {...props} />\n interface <Name />\n <TypeParameters generics={props.generics} />\n <ExtendsClause extends={props.extends} />{\" \"}\n </group>\n <LexicalScope>\n <Block>{props.children}</Block>\n </LexicalScope>\n </Declaration>\n );\n}\n"],"mappings":";AACA,SAAS,KAAK,QAAQ,gBAAgB;AAGtC,SAAS,WAAW,QAAQ,kBAAkB;AAC9C,SAAS,aAAa;AACtB,SAAS,YAAY;AAErB,SAAS,SAAS;AAClB,SAAS,IAAI,QAAQ,WAAW;AAEhC,SAAS,cAAc;AAOvB,OAAO,SAAS,SAAS,CAAC,KAAqB,EAAE;EAC/C,yBACG,WAAW,eAAK,KAAK;IAAA,IAAE,IAAI;MAAA,OAAE,KAAK,CAAC,IAAI;IAAA;IAAE,QAAQ;IAAA;MAAA;QAAA;UAAA,0BAE7C,SAAS,EAAK,KAAK,mCACT,IAAI,yBACd,cAAc;YAAA,IAAC,QAAQ;cAAA,OAAE,KAAK,CAAC,QAAQ;YAAA;UAAA,sBACvC,aAAa;YAAA;cAAA,OAAU,KAAK,CAAC,OAAO;YAAA;UAAA,IAAK,GAAG;QAAA;MAAA,sBAE9C,YAAY;QAAA;UAAA,yBACV,KAAK;YAAA;cAAA,OAAE,KAAK,CAAC,QAAQ;YAAA;UAAA;QAAA;MAAA;IAAA;EAAA;AAI9B","ignoreList":[]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ScopePropsWithInfo, ScopePropsWithValue } from "@alloy-js/core";
|
|
1
|
+
import type { ScopePropsWithInfo, ScopePropsWithValue } from "@alloy-js/core";
|
|
2
2
|
export interface LexicalScopePropsWithScopeValue extends ScopePropsWithValue {
|
|
3
3
|
}
|
|
4
4
|
export interface LeixcalScopePropsWithScopeInfo extends ScopePropsWithInfo {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LexicalScope.d.ts","sourceRoot":"","sources":["../../../src/components/LexicalScope.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"LexicalScope.d.ts","sourceRoot":"","sources":["../../../src/components/LexicalScope.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAK9E,MAAM,WAAW,+BAAgC,SAAQ,mBAAmB;CAAG;AAC/E,MAAM,WAAW,8BAA+B,SAAQ,kBAAkB;CAAG;AAE7E,MAAM,MAAM,iBAAiB,GACzB,+BAA+B,GAC/B,8BAA8B,CAAC;AAEnC,wBAAgB,YAAY,CAAC,KAAK,EAAE,iBAAiB,qCAoBpD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":[],"sources":["../../../src/components/LexicalScope.tsx"],"sourcesContent":["import type { ScopePropsWithInfo, ScopePropsWithValue } from \"@alloy-js/core\";\nimport { createScope, Scope, useScope } from \"@alloy-js/core\";\n\nimport { JavaLexicalScope } from \"../symbols/index.js\";\n\nexport interface LexicalScopePropsWithScopeValue extends ScopePropsWithValue {}\nexport interface LeixcalScopePropsWithScopeInfo extends ScopePropsWithInfo {}\n\nexport type LexicalScopeProps =\n | LexicalScopePropsWithScopeValue\n | LeixcalScopePropsWithScopeInfo;\n\nexport function LexicalScope(props: LexicalScopeProps) {\n let scope;\n if (\"value\" in props) {\n if (!(props.value instanceof JavaLexicalScope)) {\n throw new Error(\"LexicalScope value must be a TSLexicalScope instance\");\n }\n scope = props.value;\n } else {\n const parentScope = useScope();\n scope = createScope(\n JavaLexicalScope,\n props.name ?? \"lexical scope\",\n parentScope,\n {\n ...props,\n },\n );\n }\n\n return <Scope value={scope}>{props.children}</Scope>;\n}\n"],"mappings":";AACA,SAAS,WAAW,EAAE,KAAK,EAAE,QAAQ,QAAQ,gBAAgB;AAE7D,SAAS,gBAAgB,QAAQ,qBAAqB;AAStD,OAAO,SAAS,YAAY,CAAC,KAAwB,EAAE;EACrD,IAAI,KAAK;EACT,IAAI,OAAO,IAAI,KAAK,EAAE;IACpB,IAAI,EAAE,KAAK,CAAC,KAAK,YAAY,gBAAgB,CAAC,EAAE;MAC9C,MAAM,IAAI,KAAK,CAAC,sDAAsD,CAAC;IACzE;IACA,KAAK,GAAG,KAAK,CAAC,KAAK;EACrB,CAAC,MAAM;IACL,MAAM,WAAW,GAAG,QAAQ,CAAC,CAAC;IAC9B,KAAK,GAAG,WAAW,CACjB,gBAAgB,EAChB,KAAK,CAAC,IAAI,IAAI,eAAe,EAC7B,WAAW,EACX;MACE,GAAG;IACL,CACF,CAAC;EACH;EAEA,yBAAQ,KAAK;IAAC,KAAK,EAAE,KAAK;IAAA;MAAA,OAAG,KAAK,CAAC,QAAQ;IAAA;EAAA;AAC7C","ignoreList":[]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Children } from "@alloy-js/core";
|
|
2
|
-
import { MavenProjectConfig } from "../symbols/index.js";
|
|
1
|
+
import type { Children } from "@alloy-js/core";
|
|
2
|
+
import type { MavenProjectConfig } from "../symbols/index.js";
|
|
3
3
|
export interface MavenProjectProps {
|
|
4
4
|
projectConfig: MavenProjectConfig;
|
|
5
5
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MavenProject.d.ts","sourceRoot":"","sources":["../../../src/components/MavenProject.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"MavenProject.d.ts","sourceRoot":"","sources":["../../../src/components/MavenProject.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAG/C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAG9D,MAAM,WAAW,iBAAiB;IAChC,aAAa,EAAE,kBAAkB,CAAC;CACnC;AAED;;GAEG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,iBAAiB,YAEpD;AAED,MAAM,WAAW,YAAY;IAC3B,aAAa,EAAE,kBAAkB,CAAC;CACnC;AAED,wBAAgB,OAAO,CAAC,EAAE,aAAa,EAAE,EAAE,YAAY,YAoCtD;AAgGD,wBAAgB,YAAY,CAAC,KAAK,EAAE,YAAY,YAW/C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["code","List","mapJoin","Show","SourceFile","useProject","MavenProject","props","_$createComponent","PomFile","projectConfig","scope","path","filetype","children","PomFileRoot","_$createIntrinsic","joiner","PomFileMetadata","PomFileProperties","_$memo","repositories","PomFileRepositories","pluginRepositories","PomFilePluginRepositories","dependencies","size","PomFileDependencies","build","PomFileBuild","groupId","artifactId","version","javaVersion","undefined","repo","id","url","when","Array","from","values","map","dep","PomFileBuildPlugins","_$mergeProps","PomFileBuildResources","plugins","plugin","executions","execution","phase","goals","goal","configuration","Object","entries","key","value","resources","resource","directory","includes","include","excludes","exclude","filtering","targetPath"],"sources":["../../../src/components/MavenProject.tsx"],"sourcesContent":[null],"mappings":";AAAA,SAEEA,IAAI,EACJC,IAAI,EACJC,OAAO,EACPC,IAAI,EACJC,UAAU,QACL,gBAAgB;AAEvB,SAASC,UAAU,QAAQ,uBAAuB;AAMlD;AACA;AACA;AACA,OAAO,SAASC,YAAYA,CAACC,KAAwB,EAAE;EACrD,OAAAC,iBAAA,CAAQC,OAAO;IAAA,IAACC,aAAaA,CAAA;MAAA,OAAEH,KAAK,CAACG,aAAa;IAAA;EAAA;AACpD;AAMA,OAAO,SAASD,OAAOA,CAAC;EAAEC;AAA4B,CAAC,EAAE;EACvD,MAAMC,KAAK,GAAGN,UAAU,CAAC,CAAC,CAACM,KAAK;;EAEhC;EACA;EACA;EACA,OAAAH,iBAAA,CACGJ,UAAU;IAACQ,IAAI;IAAWC,QAAQ;IAAA,IAAAC,SAAA;MAAA,OAAAN,iBAAA,CAChCO,WAAW;QAAA,IAAAD,SAAA;UAAA,QAAAE,iBAAA,aAAAR,iBAAA,CAETP,IAAI;YAAA,IACHgB,MAAMA,CAAA;cAAA,QAAAD,iBAAA,aAAAA,iBAAA;YAAA;YAAA,IAAAF,SAAA;cAAA,QAAAN,iBAAA,CAOLU,eAAe;gBAACR,aAAa,EAAEA;cAAa,IAAAF,iBAAA,CAC5CW,iBAAiB;gBAACT,aAAa,EAAEA;cAAa,IAAAU,MAAA,OAC9CA,MAAA,SAAAV,aAAa,CAACW,YAAY,OAAAb,iBAAA,CACxBc,mBAAmB;gBAACZ,aAAa,EAAEA;cAAa,EAClD,GAAAU,MAAA,OACAA,MAAA,SAAAV,aAAa,CAACa,kBAAkB,OAAAf,iBAAA,CAC9BgB,yBAAyB;gBAACd,aAAa,EAAEA;cAAa,EACxD,GAAAU,MAAA,OACAA,MAAA,OAAA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C,OAAO,CAACR,MAAM,CAACM,aAAc,CAAC,EAC3C,CAAC,CAACG,GAAG,EAAEC,KAAK,CAAC,KAAK1D,IAAI;AACxC,yBAAyByD,GAAG,IAAIC,KAAK,KAAKD,GAAG;AAC7C,mBACgB,CAAC;AACjB;AACA,aAAa;AACb;AACA,SAEM,CAAC;AACP;AACA,GAAG;AACH;AAEA,SAASX,qBAAqBA,CAACvC,KAAkC,EAAE;EACjE,IAAI,CAACA,KAAK,IAAI,CAACA,KAAK,CAACoD,SAAS,EAAE;IAC9B,OAAO,EAAE;EACX;EAEA,OAAO3D,IAAI;AACb;AACA,MAAME,OAAO,CACP,MAAMK,KAAK,CAACoD,SAAU,EACrBC,QAAQ,IAAK5D,IAAI;AACxB;AACA,uBAAuB4D,QAAQ,CAACC,SAAS,eAC7BD,QAAQ,CAACE,QAAQ,IACjB9D,IAAI;AAChB;AACA,wBAAwB4D,QAAQ,CAACE,QAAQ,CAACpB,GAAG,CAC9BqB,OAAO,IAAK/D,IAAI;AAC/B;AACA,2BAA2B+D,OAAO;AAClC,eACY,CAAC;AACb;AACA,WAAW,GAECH,QAAQ,CAACI,QAAQ,IACjBhE,IAAI;AAChB;AACA,wBAAwB4D,QAAQ,CAACI,QAAQ,CAACtB,GAAG,CAC9BuB,OAAO,IAAKjE,IAAI;AAC/B;AACA,2BAA2BiE,OAAO;AAClC,eACY,CAAC;AACb;AACA,WAAW,GAECL,QAAQ,CAACM,SAAS,KAAKhC,SAAS,GAC9B;AACd,aAAa0B,QAAQ,CAACM,SAAS,cAAc,GAC/BhC,SAAS,GAEX0B,QAAQ,CAACO,UAAU,KAAKjC,SAAS,GAC/B;AACd,cAAc0B,QAAQ,CAACO,UAAU,eAAe,GAClCjC,SAAS;AACvB;AACA,OAEI,CAAC;AACL;AACA,GAAG;AACH","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":[],"sources":["../../../src/components/MavenProject.tsx"],"sourcesContent":["import type { Children } from \"@alloy-js/core\";\nimport { code, List, mapJoin, Show, SourceFile } from \"@alloy-js/core\";\n\nimport type { MavenProjectConfig } from \"../symbols/index.js\";\nimport { useProject } from \"./ProjectDirectory.js\";\n\nexport interface MavenProjectProps {\n projectConfig: MavenProjectConfig;\n}\n\n/**\n * Represents a maven project. Use if you want to generate a Java project\n */\nexport function MavenProject(props: MavenProjectProps) {\n return <PomFile projectConfig={props.projectConfig} />;\n}\n\nexport interface PomFileProps {\n projectConfig: MavenProjectConfig;\n}\n\nexport function PomFile({ projectConfig }: PomFileProps) {\n const scope = useProject().scope;\n\n // The following spaghetti mess is so the final output is formatted correctly.\n // Needs to be this way for when some options aren't provided, there's no random whitespace,\n // and so that looped sections are indented correctly.\n return (\n <SourceFile path=\"pom.xml\" filetype=\"xml\">\n <PomFileRoot>\n <hbr />\n <List\n joiner={\n <>\n <hbr />\n <hbr />\n </>\n }\n >\n <PomFileMetadata projectConfig={projectConfig} />\n <PomFileProperties projectConfig={projectConfig} />\n {projectConfig.repositories && (\n <PomFileRepositories projectConfig={projectConfig} />\n )}\n {projectConfig.pluginRepositories && (\n <PomFilePluginRepositories projectConfig={projectConfig} />\n )}\n {scope.dependencies.size > 0 && (\n <PomFileDependencies projectConfig={projectConfig} />\n )}\n {projectConfig.build && (\n <PomFileBuild projectConfig={projectConfig} />\n )}\n </List>\n </PomFileRoot>\n </SourceFile>\n );\n}\n\nfunction PomFileRoot(props: { children: Children }) {\n return code`\n <?xml version=\"1.0\" encoding=\"UTF-8\"?>\n <project xmlns=\"http://maven.apache.org/POM/4.0.0\"\n xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n xsi:schemaLocation=\"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd\">\n ${props.children}\n </project>\n `;\n}\n\nfunction PomFileMetadata(props: PomFileProps) {\n return code`\n <modelVersion>4.0.0</modelVersion>\n <groupId>${props.projectConfig.groupId}</groupId>\n <artifactId>${props.projectConfig.artifactId}</artifactId>\n <version>${props.projectConfig.version}</version>\n `;\n}\n\nfunction PomFileProperties(props: PomFileProps) {\n return code`\n <properties>\n <maven.compiler.source>${props.projectConfig?.javaVersion}</maven.compiler.source>\n <maven.compiler.target>${props.projectConfig?.javaVersion}</maven.compiler.target>\n <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>\n </properties>\n `;\n}\n\nfunction PomFileRepositories(props: PomFileProps) {\n if (props.projectConfig.repositories === undefined) {\n return undefined;\n }\n\n return code`\n <repositories>\n ${mapJoin(\n () => props.projectConfig.repositories!,\n (repo) => code`\n <repository>\n <id>${repo.id}</id>\n <url>${repo.url}</url>\n </repository>\n `,\n { joiner: <hbr /> },\n )}\n </repositories>\n `;\n}\n\nfunction PomFilePluginRepositories(props: PomFileProps) {\n if (!props.projectConfig.pluginRepositories) {\n return \"\";\n }\n\n return code`\n <pluginRepositories>\n ${mapJoin(\n () => props.projectConfig.pluginRepositories!,\n (repo) => code`\n <pluginRepository>\n <id>${repo.id}</id>\n <url>${repo.url}</url>\n </pluginRepository>\n `,\n { joiner: <hbr /> },\n )}\n </pluginRepositories>\n `;\n}\n\nfunction PomFileDependencies(props: PomFileProps) {\n const scope = useProject().scope;\n return (\n <Show when={scope.dependencies.size > 0}>\n {code`\n <dependencies>${Array.from(scope.dependencies.values()).map(\n (dep) => code`\n \n <dependency>\n <groupId>${dep.groupId}</groupId>\n <artifactId>${dep.artifactId}</artifactId>\n ${dep.version !== undefined ? `<version>${dep.version}</version>` : undefined}\n <scope>${dep.scope ?? \"provided\"}</scope>\n </dependency>\n `,\n )}\n </dependencies>\n `}\n </Show>\n );\n}\n\nexport function PomFileBuild(props: PomFileProps) {\n if (!props.projectConfig.build) {\n return \"\";\n }\n\n return code`\n <build>\n ${<PomFileBuildPlugins {...props.projectConfig.build} />}\n ${<PomFileBuildResources {...props.projectConfig.build} />}\n </build>\n `;\n}\n\nfunction PomFileBuildPlugins(props: MavenProjectConfig[\"build\"]) {\n if (!props || !props.plugins) {\n return \"\";\n }\n\n return code`\n <plugins>\n ${mapJoin(\n () => props.plugins!,\n (plugin) => code`\n <plugin>\n <groupId>${plugin.groupId}</groupId>\n <artifactId>${plugin.artifactId}</artifactId>\n ${plugin.version !== undefined ? `<version>${plugin.version}</version>` : undefined}\n ${\n plugin.executions &&\n code`\n <executions>\n ${mapJoin(\n () => plugin.executions!,\n (execution) => code`\n <execution>\n ${execution.id ? `<id>${execution.id}</id>` : undefined}\n ${execution.phase ? `<phase>${execution.phase}</phase>` : undefined}\n ${\n execution.goals &&\n code`\n <goals>\n ${mapJoin(\n () => execution.goals!,\n (goal) => code`\n <goal>${goal}</goal>\n `,\n )}\n </goals>\n `\n }\n </execution>\n `,\n )}\n </executions>\n `\n }${\n plugin.configuration &&\n code`\n\n <configuration>\n ${mapJoin(\n () => Object.entries(plugin.configuration!),\n ([key, value]) => code`\n <${key}>${value}</${key}>\n `,\n )}\n </configuration>\n `\n }\n </plugin>\n `,\n )}\n </plugins>\n `;\n}\n\nfunction PomFileBuildResources(props: MavenProjectConfig[\"build\"]) {\n if (!props || !props.resources) {\n return \"\";\n }\n\n return code`\n <resources>\n ${mapJoin(\n () => props.resources!,\n (resource) => code`\n <resource>\n <directory>${resource.directory}</directory>${\n resource.includes &&\n code`\n\n <includes>${resource.includes.map(\n (include) => code`\n \n <include>${include}</include>\n `,\n )}\n </includes>\n `\n }${\n resource.excludes &&\n code`\n\n <excludes>${resource.excludes.map(\n (exclude) => code`\n \n <exclude>${exclude}</exclude>\n `,\n )}\n </excludes>\n `\n }${\n resource.filtering !== undefined\n ? `\n<filtering>${resource.filtering}</filtering>`\n : undefined\n }${\n resource.targetPath !== undefined\n ? `\n<targetPath>${resource.targetPath}</targetPath>`\n : undefined\n }\n </resource>\n `,\n )}\n </resources>\n `;\n}\n"],"mappings":";AACA,SAAS,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,UAAU,QAAQ,gBAAgB;AAGtE,SAAS,UAAU,QAAQ,uBAAuB;AAMlD;AACA;AACA;AACA,O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AAChB,cAAc,QAAQ,CAAC,UAAU,eAAe,GAChC,SAAS;AACzB;AACA,OAEI,CAAC;AACL;AACA,GAAG;AACH","ignoreList":[]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Children } from "@alloy-js/core";
|
|
2
|
-
import { ModifierProps } from "./Modifiers.jsx";
|
|
3
|
-
import { TypeParametersProps } from "./TypeParameters.jsx";
|
|
1
|
+
import type { Children } from "@alloy-js/core";
|
|
2
|
+
import type { ModifierProps } from "./Modifiers.jsx";
|
|
3
|
+
import type { TypeParametersProps } from "./TypeParameters.jsx";
|
|
4
4
|
export interface MethodProps extends ModifierProps, TypeParametersProps {
|
|
5
5
|
name: string;
|
|
6
6
|
return?: Children;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Method.d.ts","sourceRoot":"","sources":["../../../src/components/Method.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,
|
|
1
|
+
{"version":3,"file":"Method.d.ts","sourceRoot":"","sources":["../../../src/components/Method.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAI/C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAGrD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAGhE,MAAM,WAAW,WAAY,SAAQ,aAAa,EAAE,mBAAmB;IACrE,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,QAAQ,CAAC;IAClB,MAAM,CAAC,EAAE,QAAQ,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;IACtC,QAAQ,CAAC,EAAE,QAAQ,CAAC;CACrB;AAED,wBAAgB,MAAM,CAAC,KAAK,EAAE,WAAW,YAmBxC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":[],"sources":["../../../src/components/Method.tsx"],"sourcesContent":["import type { Children } from \"@alloy-js/core\";\nimport { code } from \"@alloy-js/core\";\n\nimport { useJavaNamePolicy } from \"../name-policy.js\";\nimport type { ModifierProps } from \"./Modifiers.jsx\";\nimport { Modifiers } from \"./Modifiers.jsx\";\nimport { Parameters } from \"./Parameters.js\";\nimport type { TypeParametersProps } from \"./TypeParameters.jsx\";\nimport { TypeParameters } from \"./TypeParameters.jsx\";\n\nexport interface MethodProps extends ModifierProps, TypeParametersProps {\n name: string;\n return?: Children;\n throws?: Children;\n parameters?: Record<string, Children>;\n children?: Children;\n}\n\nexport function Method(props: MethodProps) {\n const params = <Parameters parameters={props.parameters}></Parameters>;\n const name = useJavaNamePolicy().getName(props.name, \"method\");\n const modifiers = <Modifiers {...props} />;\n const throwsClause = props.throws ? code` throws ${props.throws}` : \"\";\n const generics = props.generics\n ? code`${<TypeParameters generics={props.generics} />}${\" \"}`\n : \"\";\n const sBody =\n props.children !== undefined\n ? code`\n ${\" \"}{\n ${props.children}\n }\n `\n : \";\";\n return code`\n ${modifiers}${generics}${props.return ?? \"void\"} ${name}(${params})${throwsClause}${sBody}\n `;\n}\n"],"mappings":";AACA,SAAS,IAAI,QAAQ,gBAAgB;AAErC,SAAS,iBAAiB,QAAQ,mBAAmB;AAErD,SAAS,SAAS;AAClB,SAAS,UAAU,QAAQ,iBAAiB;AAE5C,SAAS,cAAc;AAUvB,OAAO,SAAS,MAAM,CAAC,KAAkB,EAAE;EACzC,MAAM,MAAM,qBAAI,UAAU;IAAA,IAAC,UAAU;MAAA,OAAE,KAAK,CAAC,UAAU;IAAA;EAAA,EAAe;EACtE,MAAM,IAAI,GAAG,iBAAiB,CAAC,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,EAAE,QAAQ,CAAC;EAC9D,MAAM,SAAS,qBAAI,SAAS,EAAK,KAAK,CAAI;EAC1C,MAAM,YAAY,GAAG,KAAK,CAAC,MAAM,GAAG,IAAI,WAAW,KAAK,CAAC,MAAM,EAAE,GAAG,EAAE;EACtE,MAAM,QAAQ,GAAG,KAAK,CAAC,QAAQ,GAC3B,IAAI,qBAAI,cAAc;IAAA,IAAC,QAAQ;MAAA,OAAE,KAAK,CAAC,QAAQ;IAAA;EAAA,KAAO,GAAG,EAAE,GAC3D,EAAE;EACN,MAAM,KAAK,GACT,KAAK,CAAC,QAAQ,KAAK,SAAS,GACxB,IAAI;AACZ,MAAM,GAAG;AACT,QAAQ,KAAK,CAAC,QAAQ;AACtB;AACA,GAAG,GACK,GAAG;EACT,OAAO,IAAI;AACb,UAAU,SAAS,GAAG,QAAQ,GAAG,KAAK,CAAC,MAAM,IAAI,MAAM,IAAI,IAAI,IAAI,MAAM,IAAI,YAAY,GAAG,KAAK;AACjG,KAAK;AACL","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[
|
|
1
|
+
{"version":3,"names":[],"sources":["../../../src/components/Modifiers.tsx"],"sourcesContent":["import { For } from \"@alloy-js/core\";\n\n/**\n * Objects extend this interface to allow to take modifiers as boolean props.\n * Then can declare components like so\n *\n * `<Class public final abstract />`\n *\n * Error will be thrown if try to specify multiple access modifiers\n */\nexport interface ModifierProps {\n public?: boolean;\n protected?: boolean;\n private?: boolean;\n default?: boolean;\n static?: boolean;\n final?: boolean;\n synchronized?: boolean;\n abstract?: boolean;\n native?: boolean;\n strictfp?: boolean;\n transient?: boolean;\n volatile?: boolean;\n}\n\nconst modifiers = [\n \"public\",\n \"protected\",\n \"private\",\n \"abstract\",\n \"static\",\n \"synchronized\",\n \"transient\",\n \"volatile\",\n \"final\",\n \"default\",\n \"native\",\n \"strictfp\",\n];\n\n/**\n * Renders the modifiers based on the provided props.\n **/\nexport function Modifiers(props: ModifierProps) {\n const modifierList = modifiers.filter(\n (modifier) => props[modifier as keyof ModifierProps],\n );\n\n return (\n <For each={modifierList} joiner=\" \" ender=\" \">\n {(modifier) => modifier}\n </For>\n );\n}\n"],"mappings":";AAAA,SAAS,GAAG,QAAQ,gBAAgB;;AAEpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAgBA,MAAM,SAAS,GAAG,CAChB,QAAQ,EACR,WAAW,EACX,SAAS,EACT,UAAU,EACV,QAAQ,EACR,cAAc,EACd,WAAW,EACX,UAAU,EACV,OAAO,EACP,SAAS,EACT,QAAQ,EACR,UAAU,CACX;;AAED;AACA;AACA;AACA,OAAO,SAAS,SAAS,CAAC,KAAoB,EAAE;EAC9C,MAAM,YAAY,GAAG,SAAS,CAAC,MAAM,CAClC,QAAQ,IAAK,KAAK,CAAC,QAAQ,CAC9B,CAAC;EAED,yBACG,GAAG;IAAC,IAAI,EAAE,YAAY;IAAE,MAAM;IAAK,KAAK;IAAA,UACrC,QAAQ,IAAK;EAAQ;AAG7B","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[
|
|
1
|
+
{"version":3,"names":[],"sources":["../../../src/components/Name.tsx"],"sourcesContent":["import { DeclarationContext, useContext } from \"@alloy-js/core\";\n\nexport function Name() {\n const declSymbol = useContext(DeclarationContext);\n if (!declSymbol) {\n return \"\";\n }\n\n return <>{declSymbol.name}</>;\n}\n"],"mappings":";AAAA,SAAS,kBAAkB,EAAE,UAAU,QAAQ,gBAAgB;AAE/D,OAAO,SAAS,IAAI,GAAG;EACrB,MAAM,UAAU,GAAG,UAAU,CAAC,kBAAkB,CAAC;EACjD,IAAI,CAAC,UAAU,EAAE;IACf,OAAO,EAAE;EACX;EAEA,qBAAU,UAAU,CAAC,IAAI;AAC3B","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NamedArgumentList.d.ts","sourceRoot":"","sources":["../../../src/components/NamedArgumentList.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"NamedArgumentList.d.ts","sourceRoot":"","sources":["../../../src/components/NamedArgumentList.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AAE3D,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;CAChC;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,sBAAsB,YAkB9D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[
|
|
1
|
+
{"version":3,"names":[],"sources":["../../../src/components/NamedArgumentList.tsx"],"sourcesContent":["import { For, Indent } from \"@alloy-js/core\";\nimport type { Children } from \"@alloy-js/core/jsx-runtime\";\n\nexport interface NamedArgumentListProps {\n args: Record<string, Children>;\n}\n\n/**\n * Collect a set of named arguments. Will pass to object as named arguments.\n *\n * @param args - of name to argument value\n */\nexport function NamedArgumentList(props: NamedArgumentListProps) {\n return (\n <group>\n (\n <Indent softline>\n <For each={Object.entries(props.args)} comma line>\n {([key, value]) => {\n return (\n <>\n {key} = {value}\n </>\n );\n }}\n </For>\n </Indent>\n <sbr />)\n </group>\n );\n}\n"],"mappings":";AAAA,SAAS,GAAG,EAAE,MAAM,QAAQ,gBAAgB;AAO5C;AACA;AACA;AACA;AACA;AACA,OAAO,SAAS,iBAAiB,CAAC,KAA6B,EAAE;EAC/D;IAAA;MAAA,+BAGK,MAAM;QAAC,QAAQ;QAAA;UAAA,yBACb,GAAG;YAAA,IAAC,IAAI;cAAA,OAAE,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC;YAAA;YAAE,KAAK;YAAC,IAAI;YAAA,UAC9C,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,KAAK;cACjB,QAEK,GAAG,SAAK,KAAK;YAGpB;UAAC;QAAA;MAAA;IAAA;EAAA;AAMX","ignoreList":[]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Children } from "@alloy-js/core";
|
|
2
|
-
import { CommonDeclarationProps } from "./Declaration.js";
|
|
3
|
-
import { ModifierProps } from "./Modifiers.jsx";
|
|
1
|
+
import type { Children } from "@alloy-js/core";
|
|
2
|
+
import type { CommonDeclarationProps } from "./Declaration.js";
|
|
3
|
+
import type { ModifierProps } from "./Modifiers.jsx";
|
|
4
4
|
export interface ObjectDeclarationProps extends CommonDeclarationProps, ModifierProps {
|
|
5
5
|
type: Children;
|
|
6
6
|
args?: Children[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ObjectDeclaration.d.ts","sourceRoot":"","sources":["../../../src/components/ObjectDeclaration.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,
|
|
1
|
+
{"version":3,"file":"ObjectDeclaration.d.ts","sourceRoot":"","sources":["../../../src/components/ObjectDeclaration.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAI/C,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAC/D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAGrD,MAAM,WAAW,sBACf,SAAQ,sBAAsB,EAAE,aAAa;IAC7C,IAAI,EAAE,QAAQ,CAAC;IACf,IAAI,CAAC,EAAE,QAAQ,EAAE,CAAC;CACnB;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,sBAAsB,YAI9D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[
|
|
1
|
+
{"version":3,"names":[],"sources":["../../../src/components/ObjectDeclaration.tsx"],"sourcesContent":["import type { Children } from \"@alloy-js/core\";\nimport { code } from \"@alloy-js/core\";\n\nimport { ArgumentList } from \"./ArgumentList.jsx\";\nimport type { CommonDeclarationProps } from \"./Declaration.js\";\nimport type { ModifierProps } from \"./Modifiers.jsx\";\nimport { Variable } from \"./Variable.js\";\n\nexport interface ObjectDeclarationProps\n extends CommonDeclarationProps, ModifierProps {\n type: Children;\n args?: Children[];\n}\n\n/**\n * Shorthand to instantiate a new object.\n * Declares it with 'new' and passes arguments to the constructor of the object, if any\n */\nexport function ObjectDeclaration(props: ObjectDeclarationProps) {\n const args = <ArgumentList args={props.args} />;\n const value = code`new ${props.type}${args}`;\n return <Variable {...props} value={value} />;\n}\n"],"mappings":";AACA,SAAS,IAAI,QAAQ,gBAAgB;AAErC,SAAS,YAAY;AAGrB,SAAS,QAAQ,QAAQ,eAAe;AAQxC;AACA;AACA;AACA;AACA,OAAO,SAAS,iBAAiB,CAAC,KAA6B,EAAE;EAC/D,MAAM,IAAI,qBAAI,YAAY;IAAA,IAAC,IAAI;MAAA,OAAE,KAAK,CAAC,IAAI;IAAA;EAAA,EAAI;EAC/C,MAAM,KAAK,GAAG,IAAI,OAAO,KAAK,CAAC,IAAI,GAAG,IAAI,EAAE;EAC5C,yBAAQ,QAAQ,eAAK,KAAK;IAAE,KAAK,EAAE;EAAK;AAC1C","ignoreList":[]}
|