@langion/langion
Advanced tools
| export declare enum Kind { | ||
| Annotation = "Annotation", | ||
| Argument = "Argument", | ||
| Class = "Class", | ||
| Enum = "Enum", | ||
| Field = "Field", | ||
| Generic = "Generic", | ||
| Interface = "Interface", | ||
| Langion = "Langion", | ||
| Method = "Method", | ||
| Modifier = "Modifier", | ||
| Package = "Package", | ||
| Type = "Type", | ||
| Value = "Value", | ||
| Variable = "Variable", | ||
| Wildcard = "Wildcard", | ||
| } | ||
| export declare enum Modifiers { | ||
| Private = "Private", | ||
| Protected = "Protected", | ||
| Public = "Public", | ||
| } |
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| var Kind; | ||
| (function (Kind) { | ||
| Kind["Annotation"] = "Annotation"; | ||
| Kind["Argument"] = "Argument"; | ||
| Kind["Class"] = "Class"; | ||
| Kind["Enum"] = "Enum"; | ||
| Kind["Field"] = "Field"; | ||
| Kind["Generic"] = "Generic"; | ||
| Kind["Interface"] = "Interface"; | ||
| Kind["Langion"] = "Langion"; | ||
| Kind["Method"] = "Method"; | ||
| Kind["Modifier"] = "Modifier"; | ||
| Kind["Package"] = "Package"; | ||
| Kind["Type"] = "Type"; | ||
| Kind["Value"] = "Value"; | ||
| Kind["Variable"] = "Variable"; | ||
| Kind["Wildcard"] = "Wildcard"; | ||
| })(Kind = exports.Kind || (exports.Kind = {})); | ||
| var Modifiers; | ||
| (function (Modifiers) { | ||
| Modifiers["Private"] = "Private"; | ||
| Modifiers["Protected"] = "Protected"; | ||
| Modifiers["Public"] = "Public"; | ||
| })(Modifiers = exports.Modifiers || (exports.Modifiers = {})); | ||
| //# sourceMappingURL=consts.js.map |
| {"version":3,"file":"consts.js","sourceRoot":"","sources":["../src/consts.ts"],"names":[],"mappings":";;AAAA,IAAY,IAgBX;AAhBD,WAAY,IAAI;IACZ,iCAAyB,CAAA;IACzB,6BAAqB,CAAA;IACrB,uBAAe,CAAA;IACf,qBAAa,CAAA;IACb,uBAAe,CAAA;IACf,2BAAmB,CAAA;IACnB,+BAAuB,CAAA;IACvB,2BAAmB,CAAA;IACnB,yBAAiB,CAAA;IACjB,6BAAqB,CAAA;IACrB,2BAAmB,CAAA;IACnB,qBAAa,CAAA;IACb,uBAAe,CAAA;IACf,6BAAqB,CAAA;IACrB,6BAAqB,CAAA;AACzB,CAAC,EAhBW,IAAI,GAAJ,YAAI,KAAJ,YAAI,QAgBf;AAED,IAAY,SAIX;AAJD,WAAY,SAAS;IACjB,gCAAmB,CAAA;IACnB,oCAAuB,CAAA;IACvB,8BAAiB,CAAA;AACrB,CAAC,EAJW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAIpB"} |
| export enum Kind { | ||
| Annotation = "Annotation", | ||
| Argument = "Argument", | ||
| Class = "Class", | ||
| Enum = "Enum", | ||
| Field = "Field", | ||
| Generic = "Generic", | ||
| Interface = "Interface", | ||
| Langion = "Langion", | ||
| Method = "Method", | ||
| Modifier = "Modifier", | ||
| Package = "Package", | ||
| Type = "Type", | ||
| Value = "Value", | ||
| Variable = "Variable", | ||
| Wildcard = "Wildcard", | ||
| } | ||
| export enum Modifiers { | ||
| Private = "Private", | ||
| Protected = "Protected", | ||
| Public = "Public", | ||
| } |
+1
-0
@@ -0,1 +1,2 @@ | ||
| export * from "./consts"; | ||
| export * from "./langion.form"; |
+1
-1
@@ -6,3 +6,3 @@ "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| __export(require("./langion.form")); | ||
| __export(require("./consts")); | ||
| //# sourceMappingURL=index.js.map |
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;AAAA,oCAA+B"} | ||
| {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;AAAA,8BAAyB"} |
+57
-115
@@ -0,76 +1,37 @@ | ||
| import * as consts from "./consts"; | ||
| export interface AnnotationEntity extends Entity { | ||
| Items: Record<string, ValueEntity>; | ||
| } | ||
| export interface ArgumentEntity extends Entity { | ||
| Position: number; | ||
| Type: TypeEntity; | ||
| Annotations: Record<string, AnnotationEntity>; | ||
| } | ||
| export interface ClassEntity extends Entity { | ||
| Extends: TypeEntity; | ||
| Modifiers: ModifierEntity; | ||
| Annotations: Record<string, AnnotationEntity>; | ||
| Fields: Record<string, FieldEntity>; | ||
| Implements: Record<string, TypeEntity>; | ||
| Methods: Record<string, MethodEntity>; | ||
| Variables: Record<string, VariableEntity>; | ||
| } | ||
| export interface Entity { | ||
| Canonical: string; | ||
| Comment: string; | ||
| Kind: consts.Kind; | ||
| Name: string; | ||
| Path: string; | ||
| Canonical: string; | ||
| Kind: Kind; | ||
| IsJavadocComment: string; | ||
| Comment: string; | ||
| } | ||
| export interface Annotatable { | ||
| Annotations: { | ||
| [key: string]: AnnotationEntity; | ||
| }; | ||
| } | ||
| export interface Javinon extends Entity { | ||
| Version: string; | ||
| Packages: { | ||
| [key: string]: PackageEntity; | ||
| }; | ||
| } | ||
| export interface PackageEntity extends Entity { | ||
| Packages: { | ||
| [key: string]: PackageEntity; | ||
| }; | ||
| Exports: { | ||
| [key: string]: Entity; | ||
| }; | ||
| } | ||
| export interface EnumEntity extends Entity { | ||
| List: { | ||
| [key: string]: string; | ||
| }; | ||
| Items: Record<string, string>; | ||
| } | ||
| export interface InterfaceEntity extends Entity, Annotatable { | ||
| export interface FieldEntity extends Entity { | ||
| Modifiers: ModifierEntity; | ||
| Variables: { | ||
| [key: string]: VariableEntity; | ||
| }; | ||
| Methods: { | ||
| [key: string]: MethodEntity; | ||
| }; | ||
| Extend: { | ||
| [key: string]: TypeEntity; | ||
| }; | ||
| Type: TypeEntity; | ||
| Annotations: Record<string, AnnotationEntity>; | ||
| } | ||
| export interface ClassEntity extends Entity, Annotatable { | ||
| Modifiers: ModifierEntity; | ||
| Extends: TypeEntity; | ||
| Implements: { | ||
| [key: string]: TypeEntity; | ||
| }; | ||
| Variables: { | ||
| [key: string]: VariableEntity; | ||
| }; | ||
| Fields: { | ||
| [key: string]: FieldEntity; | ||
| }; | ||
| Methods: { | ||
| [key: string]: MethodEntity; | ||
| }; | ||
| } | ||
| export interface ModifierEntity extends Entity { | ||
| Values: Modifiers; | ||
| } | ||
| export interface TypeEntity extends Entity { | ||
| Generics: { | ||
| [key: number]: GenericEntity; | ||
| }; | ||
| Parameter: boolean; | ||
| Array: boolean; | ||
| Primitive: boolean; | ||
| } | ||
| export interface GenericEntity extends Entity { | ||
| IsParameter: boolean; | ||
| Position: number; | ||
| Parameter: boolean; | ||
| Glob: boolean; | ||
| Type: TypeEntity; | ||
@@ -80,61 +41,42 @@ Variable: VariableEntity; | ||
| } | ||
| export interface VariableEntity extends Entity { | ||
| Position: number; | ||
| export interface InterfaceEntity extends Entity { | ||
| Modifiers: ModifierEntity; | ||
| Annotations: Record<string, AnnotationEntity>; | ||
| Extends: Record<string, TypeEntity>; | ||
| Methods: Record<string, MethodEntity>; | ||
| Variables: Record<string, VariableEntity>; | ||
| } | ||
| export interface WildcardEntity extends Entity { | ||
| Upper: { | ||
| [key: number]: GenericEntity; | ||
| }; | ||
| Lower: { | ||
| [key: number]: GenericEntity; | ||
| }; | ||
| export interface Langion extends Entity { | ||
| Modules: Record<string, ModuleEntity>; | ||
| Version: string; | ||
| } | ||
| export interface AnnotationEntity extends Entity { | ||
| List: { | ||
| [key: string]: ValueEntity; | ||
| }; | ||
| export interface MethodEntity extends Entity { | ||
| Modifier: ModifierEntity; | ||
| Returns: TypeEntity; | ||
| Annotations: Record<string, AnnotationEntity>; | ||
| Arguments: Record<string, ArgumentEntity>; | ||
| Variables: Record<string, VariableEntity>; | ||
| } | ||
| export interface ModifierEntity extends Entity { | ||
| Items: Record<consts.Modifiers, consts.Modifiers>; | ||
| } | ||
| export interface ModuleEntity extends Entity { | ||
| Exports: Record<string, Entity>; | ||
| Modules: Record<string, ModuleEntity>; | ||
| } | ||
| export interface TypeEntity extends Entity { | ||
| IsArray: boolean; | ||
| IsParameter: boolean; | ||
| Generics: Record<string, GenericEntity>; | ||
| } | ||
| export interface ValueEntity extends Entity { | ||
| Type: TypeEntity; | ||
| Content: any; | ||
| } | ||
| export interface FieldEntity extends Entity, Annotatable { | ||
| Type: TypeEntity; | ||
| Modifiers: ModifierEntity; | ||
| } | ||
| export interface MethodEntity extends Entity, Annotatable { | ||
| Returns: TypeEntity; | ||
| Modifier: ModifierEntity; | ||
| Variables: { | ||
| [key: string]: VariableEntity; | ||
| }; | ||
| Arguments: { | ||
| [key: string]: ArgumentEntity; | ||
| }; | ||
| } | ||
| export interface ArgumentEntity extends Entity, Annotatable { | ||
| Type: TypeEntity; | ||
| export interface VariableEntity extends Entity { | ||
| Position: number; | ||
| } | ||
| export declare enum Modifiers { | ||
| Public = "Public", | ||
| Protected = "Protected", | ||
| Private = "Private", | ||
| export interface WildcardEntity extends Entity { | ||
| Lower: Record<string, GenericEntity>; | ||
| Upper: Record<string, GenericEntity>; | ||
| } | ||
| export declare enum Kind { | ||
| Javinon = "Javinon", | ||
| Package = "Package", | ||
| Class = "Class", | ||
| Enum = "Enum", | ||
| Interface = "Interface", | ||
| Field = "Field", | ||
| Type = "Type", | ||
| Generic = "Generic", | ||
| Variable = "Variable", | ||
| Wildcard = "Wildcard", | ||
| Annotation = "Annotation", | ||
| Method = "Method", | ||
| Modifier = "Modifier", | ||
| Argument = "Argument", | ||
| Value = "Value", | ||
| } |
+0
-24
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| var Modifiers; | ||
| (function (Modifiers) { | ||
| Modifiers["Public"] = "Public"; | ||
| Modifiers["Protected"] = "Protected"; | ||
| Modifiers["Private"] = "Private"; | ||
| })(Modifiers = exports.Modifiers || (exports.Modifiers = {})); | ||
| var Kind; | ||
| (function (Kind) { | ||
| Kind["Javinon"] = "Javinon"; | ||
| Kind["Package"] = "Package"; | ||
| Kind["Class"] = "Class"; | ||
| Kind["Enum"] = "Enum"; | ||
| Kind["Interface"] = "Interface"; | ||
| Kind["Field"] = "Field"; | ||
| Kind["Type"] = "Type"; | ||
| Kind["Generic"] = "Generic"; | ||
| Kind["Variable"] = "Variable"; | ||
| Kind["Wildcard"] = "Wildcard"; | ||
| Kind["Annotation"] = "Annotation"; | ||
| Kind["Method"] = "Method"; | ||
| Kind["Modifier"] = "Modifier"; | ||
| Kind["Argument"] = "Argument"; | ||
| Kind["Value"] = "Value"; | ||
| })(Kind = exports.Kind || (exports.Kind = {})); | ||
| //# sourceMappingURL=langion.form.js.map |
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"langion.form.js","sourceRoot":"","sources":["../src/langion.form.ts"],"names":[],"mappings":";;AAkGA,IAAY,SAIX;AAJD,WAAY,SAAS;IACjB,8BAAiB,CAAA;IACjB,oCAAuB,CAAA;IACvB,gCAAmB,CAAA;AACvB,CAAC,EAJW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAIpB;AAED,IAAY,IAgBX;AAhBD,WAAY,IAAI;IACZ,2BAAmB,CAAA;IACnB,2BAAmB,CAAA;IACnB,uBAAe,CAAA;IACf,qBAAa,CAAA;IACb,+BAAuB,CAAA;IACvB,uBAAe,CAAA;IACf,qBAAa,CAAA;IACb,2BAAmB,CAAA;IACnB,6BAAqB,CAAA;IACrB,6BAAqB,CAAA;IACrB,iCAAyB,CAAA;IACzB,yBAAiB,CAAA;IACjB,6BAAqB,CAAA;IACrB,6BAAqB,CAAA;IACrB,uBAAe,CAAA;AACnB,CAAC,EAhBW,IAAI,GAAJ,YAAI,KAAJ,YAAI,QAgBf"} | ||
| {"version":3,"file":"langion.form.js","sourceRoot":"","sources":["../src/langion.form.ts"],"names":[],"mappings":""} |
+1
-1
| { | ||
| "name": "@langion/langion", | ||
| "version": "0.2.1", | ||
| "version": "0.2.2", | ||
| "description": "Langion format definition", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
+1
-0
@@ -0,1 +1,2 @@ | ||
| export * from "./consts"; | ||
| export * from "./langion.form"; |
+58
-82
@@ -1,59 +0,44 @@ | ||
| export interface Entity { | ||
| Name: string; | ||
| Path: string; | ||
| Canonical: string; | ||
| Kind: Kind; | ||
| IsJavadocComment: string; | ||
| Comment: string; | ||
| import * as consts from "./consts"; | ||
| export interface AnnotationEntity extends Entity { | ||
| Items: Record<string, ValueEntity>; | ||
| } | ||
| export interface Annotatable { | ||
| Annotations: { [key: string]: AnnotationEntity }; | ||
| export interface ArgumentEntity extends Entity { | ||
| Position: number; | ||
| Type: TypeEntity; | ||
| Annotations: Record<string, AnnotationEntity>; | ||
| } | ||
| export interface Javinon extends Entity { | ||
| Version: string; | ||
| Packages: { [key: string]: PackageEntity }; | ||
| export interface ClassEntity extends Entity { | ||
| Extends: TypeEntity; | ||
| Modifiers: ModifierEntity; | ||
| Annotations: Record<string, AnnotationEntity>; | ||
| Fields: Record<string, FieldEntity>; | ||
| Implements: Record<string, TypeEntity>; | ||
| Methods: Record<string, MethodEntity>; | ||
| Variables: Record<string, VariableEntity>; | ||
| } | ||
| export interface PackageEntity extends Entity { | ||
| Packages: { [key: string]: PackageEntity }; | ||
| Exports: { [key: string]: Entity }; | ||
| export interface Entity { | ||
| Canonical: string; | ||
| Comment: string; | ||
| Kind: consts.Kind; | ||
| Name: string; | ||
| Path: string; | ||
| } | ||
| export interface EnumEntity extends Entity { | ||
| List: { [key: string]: string }; | ||
| Items: Record<string, string>; | ||
| } | ||
| export interface InterfaceEntity extends Entity, Annotatable { | ||
| export interface FieldEntity extends Entity { | ||
| Modifiers: ModifierEntity; | ||
| Variables: { [key: string]: VariableEntity }; | ||
| Methods: { [key: string]: MethodEntity }; | ||
| Extend: { [key: string]: TypeEntity }; | ||
| Type: TypeEntity; | ||
| Annotations: Record<string, AnnotationEntity>; | ||
| } | ||
| export interface ClassEntity extends Entity, Annotatable { | ||
| Modifiers: ModifierEntity; | ||
| Extends: TypeEntity; | ||
| Implements: { [key: string]: TypeEntity }; | ||
| Variables: { [key: string]: VariableEntity }; | ||
| Fields: { [key: string]: FieldEntity }; | ||
| Methods: { [key: string]: MethodEntity }; | ||
| } | ||
| export interface ModifierEntity extends Entity { | ||
| Values: Modifiers; | ||
| } | ||
| export interface TypeEntity extends Entity { | ||
| Generics: { [key: number]: GenericEntity }; | ||
| Parameter: boolean; | ||
| Array: boolean; | ||
| Primitive: boolean; | ||
| } | ||
| export interface GenericEntity extends Entity { | ||
| IsParameter: boolean; | ||
| Position: number; | ||
| Parameter: boolean; | ||
| Glob: boolean; | ||
| Type: TypeEntity; | ||
@@ -64,59 +49,50 @@ Variable: VariableEntity; | ||
| export interface VariableEntity extends Entity { | ||
| Position: number; | ||
| export interface InterfaceEntity extends Entity { | ||
| Modifiers: ModifierEntity; | ||
| Annotations: Record<string, AnnotationEntity>; | ||
| Extends: Record<string, TypeEntity>; | ||
| Methods: Record<string, MethodEntity>; | ||
| Variables: Record<string, VariableEntity>; | ||
| } | ||
| export interface WildcardEntity extends Entity { | ||
| Upper: { [key: number]: GenericEntity }; | ||
| Lower: { [key: number]: GenericEntity }; | ||
| export interface Langion extends Entity { | ||
| Modules: Record<string, ModuleEntity>; | ||
| Version: string; | ||
| } | ||
| export interface AnnotationEntity extends Entity { | ||
| List: { [key: string]: ValueEntity }; | ||
| export interface MethodEntity extends Entity { | ||
| Modifier: ModifierEntity; | ||
| Returns: TypeEntity; | ||
| Annotations: Record<string, AnnotationEntity>; | ||
| Arguments: Record<string, ArgumentEntity>; | ||
| Variables: Record<string, VariableEntity>; | ||
| } | ||
| export interface ValueEntity extends Entity { | ||
| Type: TypeEntity; | ||
| Content: any; | ||
| export interface ModifierEntity extends Entity { | ||
| Items: Record<consts.Modifiers, consts.Modifiers>; | ||
| } | ||
| export interface FieldEntity extends Entity, Annotatable { | ||
| Type: TypeEntity; | ||
| Modifiers: ModifierEntity; | ||
| export interface ModuleEntity extends Entity { | ||
| Exports: Record<string, Entity>; | ||
| Modules: Record<string, ModuleEntity>; | ||
| } | ||
| export interface MethodEntity extends Entity, Annotatable { | ||
| Returns: TypeEntity; | ||
| Modifier: ModifierEntity; | ||
| Variables: { [key: string]: VariableEntity }; | ||
| Arguments: { [key: string]: ArgumentEntity }; | ||
| export interface TypeEntity extends Entity { | ||
| IsArray: boolean; | ||
| IsParameter: boolean; | ||
| Generics: Record<string, GenericEntity>; | ||
| } | ||
| export interface ArgumentEntity extends Entity, Annotatable { | ||
| export interface ValueEntity extends Entity { | ||
| Content: any; | ||
| Type: TypeEntity; | ||
| Position: number; | ||
| } | ||
| export enum Modifiers { | ||
| Public = "Public", | ||
| Protected = "Protected", | ||
| Private = "Private", | ||
| export interface VariableEntity extends Entity { | ||
| Position: number; | ||
| } | ||
| export enum Kind { | ||
| Javinon = "Javinon", | ||
| Package = "Package", | ||
| Class = "Class", | ||
| Enum = "Enum", | ||
| Interface = "Interface", | ||
| Field = "Field", | ||
| Type = "Type", | ||
| Generic = "Generic", | ||
| Variable = "Variable", | ||
| Wildcard = "Wildcard", | ||
| Annotation = "Annotation", | ||
| Method = "Method", | ||
| Modifier = "Modifier", | ||
| Argument = "Argument", | ||
| Value = "Value", | ||
| export interface WildcardEntity extends Entity { | ||
| Lower: Record<string, GenericEntity>; | ||
| Upper: Record<string, GenericEntity>; | ||
| } |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
10813
1%17
30.77%270
-10.6%1
Infinity%