Skip to content

Commit

Permalink
temp: test
Browse files Browse the repository at this point in the history
  • Loading branch information
ZEROM22 committed Dec 26, 2024
1 parent 8a5671c commit 69a0403
Show file tree
Hide file tree
Showing 38 changed files with 205 additions and 220 deletions.
8 changes: 2 additions & 6 deletions packages/typedoc-signature/fixtures/000/test.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
import {
type Entity,
DeclarationEntity,
} from "@onlyoffice/library-declaration/next.ts"
import {DeclarationEntity} from "@onlyoffice/library-declaration/next.ts"

export const name = "computing the signature with empty file"
export const collection: DeclarationEntity[] = []

let e0: Entity
e0 = new DeclarationEntity()
const e0 = new DeclarationEntity()
e0.id = 0

collection.push(e0)
8 changes: 2 additions & 6 deletions packages/typedoc-signature/fixtures/001/test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
import {
type Entity,
DeclarationEntity,
} from "@onlyoffice/library-declaration/next.ts"
import {DeclarationEntity} from "@onlyoffice/library-declaration/next.ts"
import {
EntityToken,
KeywordToken,
Expand All @@ -14,11 +11,10 @@ import {
export const name = "computing the signature for functions without parameters"
export const collection: DeclarationEntity[] = []

let e0: Entity
const e0 = new DeclarationEntity()
let s: Signature = []
let t: Token

e0 = new DeclarationEntity()
e0.id = 2

t = new KeywordToken()
Expand Down
7 changes: 2 additions & 5 deletions packages/typedoc-signature/fixtures/002/test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import {
type Entity,
DeclarationEntity,
Fragment,
} from "@onlyoffice/library-declaration/next.ts"
Expand All @@ -16,15 +15,13 @@ import {
export const name = "computing the signature for functions with one parameter"
export const collection: DeclarationEntity[] = []

let e0: Entity
let f0: Fragment
const e0 = new DeclarationEntity()
const f0 = new Fragment()
let s: Signature = []
let t: Token

e0 = new DeclarationEntity()
e0.id = 2

f0 = new Fragment()
f0.name = "p0"

t = new TypeToken()
Expand Down
7 changes: 2 additions & 5 deletions packages/typedoc-signature/fixtures/003/test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import {
type Entity,
DeclarationEntity,
Fragment,
} from "@onlyoffice/library-declaration/next.ts"
Expand All @@ -16,15 +15,13 @@ import {
export const name = "computing the signature for functions with array parameter"
export const collection: DeclarationEntity[] = []

let e0: Entity
let f0: Fragment
const e0 = new DeclarationEntity()
const f0 = new Fragment()
let s: Signature = []
let t: Token

e0 = new DeclarationEntity()
e0.id = 2

f0 = new Fragment()
f0.name = "p0"

t = new TypeToken()
Expand Down
10 changes: 3 additions & 7 deletions packages/typedoc-signature/fixtures/004/test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import {
type Entity,
DeclarationEntity,
Fragment,
} from "@onlyoffice/library-declaration/next.ts"
Expand All @@ -16,16 +15,14 @@ import {
export const name = "computing the signature for functions with two parameter"
export const collection: DeclarationEntity[] = []

let e0: Entity
let f0: Fragment
let f1: Fragment
const e0 = new DeclarationEntity()
const f0 = new Fragment()
const f1 = new Fragment()
let s: Signature = []
let t: Token

e0 = new DeclarationEntity()
e0.id = 2

f0 = new Fragment()
f0.name = "p0"

t = new TypeToken()
Expand All @@ -35,7 +32,6 @@ s.push(t)
f0.signature.concise.push(...s)
s = []

f1 = new Fragment()
f1.name = "p1"

t = new TypeToken()
Expand Down
7 changes: 2 additions & 5 deletions packages/typedoc-signature/fixtures/005/test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import {
type Entity,
DeclarationEntity,
Fragment,
} from "@onlyoffice/library-declaration/next.ts"
Expand All @@ -17,15 +16,13 @@ export const name =
"computing the signature for functions with optional parameter"
export const collection: DeclarationEntity[] = []

let e0: Entity
let f0: Fragment
const e0 = new DeclarationEntity()
const f0 = new Fragment()
let s: Signature = []
let t: Token

e0 = new DeclarationEntity()
e0.id = 2

f0 = new Fragment()
f0.name = "p0"
f0.optional = true

Expand Down
9 changes: 3 additions & 6 deletions packages/typedoc-signature/fixtures/006/test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import {
type Entity,
DeclarationEntity,
Fragment,
} from "@onlyoffice/library-declaration/next.ts"
Expand All @@ -18,15 +17,13 @@ export const name =
"computing the signature for functions with a default value parameter"
export const collection: DeclarationEntity[] = []

let e0: Entity
let f0: Fragment
const e0 = new DeclarationEntity()
const f0 = new Fragment()
let s: Signature = []
let t: Token

e0 = new DeclarationEntity()
e0.id = 2

f0 = new Fragment()
f0.name = "p0"
f0.default = "v0"

Expand Down Expand Up @@ -72,7 +69,7 @@ t.text = " = "
s.push(t)

t = new StringToken()
t.text = "\"v0\""
t.text = '"s"'
s.push(t)

t = new TextToken()
Expand Down
8 changes: 2 additions & 6 deletions packages/typedoc-signature/fixtures/007/test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
import {
type Entity,
DeclarationEntity,
} from "@onlyoffice/library-declaration/next.ts"
import {DeclarationEntity} from "@onlyoffice/library-declaration/next.ts"
import {
EntityToken,
KeywordToken,
Expand All @@ -14,11 +11,10 @@ import {
export const name = "computing the signature for functions with a returned value type - string"
export const collection: DeclarationEntity[] = []

let e0: Entity
const e0 = new DeclarationEntity()
let s: Signature = []
let t: Token

e0 = new DeclarationEntity()
e0.id = 2

t = new KeywordToken()
Expand Down
8 changes: 2 additions & 6 deletions packages/typedoc-signature/fixtures/008/test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
import {
type Entity,
DeclarationEntity,
} from "@onlyoffice/library-declaration/next.ts"
import {DeclarationEntity} from "@onlyoffice/library-declaration/next.ts"
import {
EntityToken,
KeywordToken,
Expand All @@ -16,11 +13,10 @@ export const name =
"computing the signature for functions with a returned value type - object"
export const collection: DeclarationEntity[] = []

let e0: Entity
const e0 = new DeclarationEntity()
let s: Signature = []
let t: Token

e0 = new DeclarationEntity()
e0.id = 2

t = new KeywordToken()
Expand Down
8 changes: 2 additions & 6 deletions packages/typedoc-signature/fixtures/009/test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
import {
type Entity,
DeclarationEntity,
} from "@onlyoffice/library-declaration/next.ts"
import {DeclarationEntity} from "@onlyoffice/library-declaration/next.ts"
import {
EntityToken,
KeywordToken,
Expand All @@ -15,11 +12,10 @@ import {
export const name = "computing the signature for class"
export const collection: DeclarationEntity[] = []

let e0: Entity
const e0 = new DeclarationEntity()
let s: Signature = []
let t: Token | Reference

e0 = new DeclarationEntity()
e0.id = 2

t = new KeywordToken()
Expand Down
8 changes: 2 additions & 6 deletions packages/typedoc-signature/fixtures/010/test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
import {
type Entity,
DeclarationEntity,
} from "@onlyoffice/library-declaration/next.ts"
import {DeclarationEntity} from "@onlyoffice/library-declaration/next.ts"
import {
EntityToken,
KeywordToken,
Expand All @@ -16,11 +13,10 @@ import {
export const name = "computing the signature for a class with property"
export const collection: DeclarationEntity[] = []

let e0: Entity
const e0 = new DeclarationEntity()
let s: Signature = []
let t: Token | Reference

e0 = new DeclarationEntity()
e0.id = 2

t = new KeywordToken()
Expand Down
8 changes: 2 additions & 6 deletions packages/typedoc-signature/fixtures/011/test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
import {
type Entity,
DeclarationEntity,
} from "@onlyoffice/library-declaration/next.ts"
import {DeclarationEntity} from "@onlyoffice/library-declaration/next.ts"
import {
EntityToken,
KeywordToken,
Expand All @@ -16,11 +13,10 @@ import {
export const name = "computing the signature for a class with flags on the properties (private, protected, public, static, private static)"
export const collection: DeclarationEntity[] = []

let e0: Entity
const e0 = new DeclarationEntity()
let s: Signature = []
let t: Token | Reference

e0 = new DeclarationEntity()
e0.id = 2

t = new KeywordToken()
Expand Down
8 changes: 2 additions & 6 deletions packages/typedoc-signature/fixtures/012/test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
import {
type Entity,
DeclarationEntity,
} from "@onlyoffice/library-declaration/next.ts"
import {DeclarationEntity} from "@onlyoffice/library-declaration/next.ts"
import {
EntityToken,
KeywordToken,
Expand All @@ -16,11 +13,10 @@ import {
export const name = "computing the signature for a class properties, constructor and method"
export const collection: DeclarationEntity[] = []

let e0: Entity
const e0 = new DeclarationEntity()
let s: Signature = []
let t: Token | Reference

e0 = new DeclarationEntity()
e0.id = 2

t = new KeywordToken()
Expand Down
8 changes: 2 additions & 6 deletions packages/typedoc-signature/fixtures/013/test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
import {
type Entity,
DeclarationEntity,
} from "@onlyoffice/library-declaration/next.ts"
import {DeclarationEntity} from "@onlyoffice/library-declaration/next.ts"
import {
EntityToken,
KeywordToken,
Expand All @@ -16,11 +13,10 @@ import {
export const name = "computing the signature for a abstract class with static readonly property"
export const collection: DeclarationEntity[] = []

let e0: Entity
const e0 = new DeclarationEntity()
let s: Signature = []
let t: Token | Reference

e0 = new DeclarationEntity()
e0.id = 2

t = new KeywordToken()
Expand Down
8 changes: 2 additions & 6 deletions packages/typedoc-signature/fixtures/014/test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
import {
type Entity,
DeclarationEntity,
} from "@onlyoffice/library-declaration/next.ts"
import {DeclarationEntity} from "@onlyoffice/library-declaration/next.ts"
import {
EntityToken,
KeywordToken,
Expand All @@ -15,11 +12,10 @@ import {
export const name = "computing the signature for a extends class"
export const collection: DeclarationEntity[] = []

let e0: Entity
const e0 = new DeclarationEntity()
let s: Signature = []
let t: Token | Reference

e0 = new DeclarationEntity()
e0.id = 5

t = new KeywordToken()
Expand Down
8 changes: 2 additions & 6 deletions packages/typedoc-signature/fixtures/015/test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
import {
type Entity,
DeclarationEntity,
} from "@onlyoffice/library-declaration/next.ts"
import {DeclarationEntity} from "@onlyoffice/library-declaration/next.ts"
import {
EntityToken,
KeywordToken,
Expand All @@ -15,11 +12,10 @@ import {
export const name = "computing the signature for a interface"
export const collection: DeclarationEntity[] = []

let e0: Entity
const e0 = new DeclarationEntity()
let s: Signature = []
let t: Token | Reference

e0 = new DeclarationEntity()
e0.id = 2

t = new KeywordToken()
Expand Down
8 changes: 2 additions & 6 deletions packages/typedoc-signature/fixtures/016/test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
import {
type Entity,
DeclarationEntity,
} from "@onlyoffice/library-declaration/next.ts"
import {DeclarationEntity} from "@onlyoffice/library-declaration/next.ts"
import {
EntityToken,
KeywordToken,
Expand All @@ -16,11 +13,10 @@ import {
export const name = "computing the signature for a interface with properties and method"
export const collection: DeclarationEntity[] = []

let e0: Entity
const e0 = new DeclarationEntity()
let s: Signature = []
let t: Token | Reference

e0 = new DeclarationEntity()
e0.id = 2

t = new KeywordToken()
Expand Down
Loading

0 comments on commit 69a0403

Please sign in to comment.