Skip to content

Commit 88a569d

Browse files
committed
feat: extends
1 parent 9fdac1c commit 88a569d

12 files changed

Lines changed: 43 additions & 35 deletions

.all-contributorsrc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,16 @@
5151
"maintenance",
5252
"code"
5353
]
54+
},
55+
{
56+
"login": "tomastrajan",
57+
"name": "Tomas Trajan",
58+
"avatar_url": "https://avatars.githubusercontent.com/u/3764868?v=4",
59+
"profile": "http://angularexperts.io",
60+
"contributions": [
61+
"maintenance",
62+
"code"
63+
]
5464
}
5565
],
5666
"contributorsPerLine": 7,

src/converters/component/component.converter.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ describe('Component converter', () => {
1717
implementation: '',
1818
template: '',
1919
styles: '',
20-
extends: [],
20+
extends: undefined,
2121
methods: [],
2222
methodsPublicExplicit: [],
2323
fieldsPublicExplicit: [],
@@ -35,7 +35,7 @@ describe('Component converter', () => {
3535
implementation: '',
3636
template: '',
3737
styles: '',
38-
extends: [],
38+
extends: undefined,
3939
methods: [],
4040
methodsPublicExplicit: [],
4141
fieldsPublicExplicit: [],
@@ -53,7 +53,7 @@ describe('Component converter', () => {
5353
implementation: '',
5454
template: '',
5555
styles: '',
56-
extends: [],
56+
extends: undefined,
5757
methods: [],
5858
methodsPublicExplicit: [],
5959
fieldsPublicExplicit: [],

src/converters/directive/directive.converter.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ describe('Directive converter', () => {
1414
inputs: [],
1515
outputs: [],
1616
implementation: '',
17-
extends: [],
17+
extends: undefined,
1818
methods: [],
1919
methodsPublicExplicit: [],
2020
fieldsPublicExplicit: [],
@@ -29,7 +29,7 @@ describe('Directive converter', () => {
2929
inputs: [],
3030
outputs: [],
3131
implementation: '',
32-
extends: [],
32+
extends: undefined,
3333
methods: [],
3434
methodsPublicExplicit: [],
3535
fieldsPublicExplicit: [],
@@ -44,7 +44,7 @@ describe('Directive converter', () => {
4444
inputs: [],
4545
outputs: [],
4646
implementation: '',
47-
extends: [],
47+
extends: undefined,
4848
methods: [],
4949
methodsPublicExplicit: [],
5050
fieldsPublicExplicit: [],

src/converters/service/service.converter.component.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ describe('Service stats converter', () => {
99
className: 'first',
1010
type: NgParselOutputType.SERVICE,
1111
filePath: '',
12-
extends: [],
12+
extends: undefined,
1313
fieldsPublicExplicit: [],
1414
methods: [],
1515
methodsPublicExplicit: [],
@@ -18,7 +18,7 @@ describe('Service stats converter', () => {
1818
className: 'second',
1919
type: NgParselOutputType.SERVICE,
2020
filePath: '',
21-
extends: [],
21+
extends: undefined,
2222
fieldsPublicExplicit: [],
2323
methods: [],
2424
methodsPublicExplicit: [],
@@ -27,7 +27,7 @@ describe('Service stats converter', () => {
2727
className: 'third',
2828
type: NgParselOutputType.SERVICE,
2929
filePath: '',
30-
extends: [],
30+
extends: undefined,
3131
fieldsPublicExplicit: [],
3232
methods: [],
3333
methodsPublicExplicit: [],

src/parser/component/component.model.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export interface NgParselComponent extends NgParselOutput {
88
selector: string;
99
standalone: boolean;
1010
cva: boolean;
11-
extends: string[];
11+
extends: string | undefined;
1212
onPush: boolean;
1313
inputs: NgParselFieldDecorator[];
1414
outputs: NgParselFieldDecorator[];

src/parser/component/component.parser.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ describe('ComponentParser', () => {
4040
selector: 'my-test-comp',
4141
standalone: false,
4242
cva: false,
43-
extends: [],
43+
extends: undefined,
4444
onPush: false,
4545
template: inlineTemplate,
4646
styles: [styles],
@@ -134,7 +134,7 @@ describe('ComponentParser', () => {
134134
selector: 'my-test-comp',
135135
standalone: true,
136136
cva: false,
137-
extends: [],
137+
extends: undefined,
138138
onPush: false,
139139
template: inlineTemplate,
140140
styles: [styles],

src/parser/directive/directive.model.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export interface NgParselDirective extends NgParselOutput {
77
className: string;
88
selector: string;
99
standalone: boolean;
10-
extends: string[];
10+
extends: string | undefined;
1111
cva: boolean;
1212
implementation: string;
1313
inputs: NgParselFieldDecorator[];

src/parser/directive/directive.parser.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ describe('DirectiveParser', () => {
3232
selector: '[myTestDirective]',
3333
standalone: false,
3434
cva: false,
35-
extends: [],
35+
extends: undefined,
3636
inputs: [
3737
{
3838
decorator: '@Input()',
@@ -91,7 +91,7 @@ describe('DirectiveParser', () => {
9191
selector: '[myTestDirective]',
9292
standalone: true,
9393
cva: false,
94-
extends: [],
94+
extends: undefined,
9595
inputs: [
9696
{
9797
decorator: '@Input()',

src/parser/services/service.model.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { NgParselMethod } from '../shared/model/method.model.js';
33
import { NgParselField } from '../shared/model/field.model.js';
44

55
export interface NgParselService extends NgParselOutput {
6-
extends: string[];
6+
extends: string | undefined;
77
fieldsPublicExplicit: NgParselField[];
88
methods: NgParselMethod[];
99
methodsPublicExplicit: NgParselMethod[];

src/parser/services/service.parser.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ describe('ServiceParser', () => {
2424
type: NgParselOutputType.SERVICE,
2525
className,
2626
filePath,
27-
extends: [],
27+
extends: undefined,
2828
fieldsPublicExplicit: [],
2929
methods: [
3030
{
@@ -90,7 +90,7 @@ describe('ServiceParser', () => {
9090
className,
9191
filePath,
9292
fieldsPublicExplicit: [],
93-
extends: [],
93+
extends: undefined,
9494
methods: [
9595
{
9696
name: 'foo',
@@ -148,7 +148,7 @@ describe('ServiceParser', () => {
148148
type: NgParselOutputType.SERVICE,
149149
className,
150150
filePath,
151-
extends: [],
151+
extends: undefined,
152152
fieldsPublicExplicit: [
153153
{
154154
name: 'counter',

0 commit comments

Comments
 (0)