Skip to content

Commit

Permalink
#557: fixed remaining issues
Browse files Browse the repository at this point in the history
  • Loading branch information
basmasking committed Oct 11, 2024
1 parent c9b6a94 commit 95dcb0a
Show file tree
Hide file tree
Showing 10 changed files with 15 additions and 15 deletions.
6 changes: 3 additions & 3 deletions packages/analysis/src/static/Parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export default class Parser
throw new UnexpectedParseResult('a declaration definition');
}

return model as ESDeclaration;
return model;
}

parseFunction(code: string): ESFunction
Expand All @@ -111,7 +111,7 @@ export default class Parser
throw new UnexpectedParseResult('a function definition');
}

return model as ESFunction;
return model;
}

parseClass(code: string): ESClass
Expand All @@ -124,7 +124,7 @@ export default class Parser
throw new UnexpectedParseResult('a class definition');
}

return model as ESClass;
return model;
}

#parseScope(tokenList: TokenList): ESScope
Expand Down
6 changes: 3 additions & 3 deletions packages/build/src/source/segment/Reader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ const DEFAULT_VERSION_NUMBER = '0.0.0';

export default class SegmentReader
{
#fileManager: FileManager;
#repository: ModuleRepository;
readonly #fileManager: FileManager;
readonly #repository: ModuleRepository;

#fileHelper = new FileHelper();
readonly #fileHelper = new FileHelper();

constructor(fileManager: FileManager, repository: ModuleRepository)
{
Expand Down
4 changes: 2 additions & 2 deletions packages/execution/src/errors/ImplementationNotFound.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import { NotFound } from '@jitar/errors';

export default class ImplementationNotFound extends NotFound
{
#fqn: string;
#version: string;
readonly #fqn: string;
readonly #version: string;

constructor(fqn: string, version: string)
{
Expand Down
2 changes: 1 addition & 1 deletion packages/execution/src/errors/InvalidParameterValue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { BadRequest } from '@jitar/errors';

export default class InvalidParameterValue extends BadRequest
{
#parameterName: string;
readonly #parameterName: string;

constructor(parameterName: string)
{
Expand Down
2 changes: 1 addition & 1 deletion packages/execution/src/errors/InvalidVersionNumber.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { BadRequest } from '@jitar/errors';

export default class InvalidVersionNumber extends BadRequest
{
#number: string;
readonly #number: string;

constructor(number: string)
{
Expand Down
2 changes: 1 addition & 1 deletion packages/execution/src/errors/MissingParameterValue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { BadRequest } from '@jitar/errors';

export default class MissingParameterValue extends BadRequest
{
#parameterName: string;
readonly #parameterName: string;

constructor(parameterName: string)
{
Expand Down
2 changes: 1 addition & 1 deletion packages/execution/src/errors/ProcedureNotFound.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { NotFound } from '@jitar/errors';

export default class ProcedureNotFound extends NotFound
{
#fqn: string;
readonly #fqn: string;

constructor(fqn: string)
{
Expand Down
2 changes: 1 addition & 1 deletion packages/execution/src/errors/UnknownParameter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { BadRequest } from '@jitar/errors';

export default class UnknownParameter extends BadRequest
{
#parameterName: string;
readonly #parameterName: string;

constructor(parameterName: string)
{
Expand Down
2 changes: 1 addition & 1 deletion packages/http/src/HttpServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default class HttpServer
readonly #app: Express;
#http?: Http;

#validator = new Validator();
readonly #validator = new Validator();

constructor(server: Server, port: string = Defaults.PORT_NUMBER, bodyLimit: number = Defaults.BODY_LIMIT)
{
Expand Down
2 changes: 1 addition & 1 deletion packages/sourcing/src/errors/FileNotFound.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

export default class FileNotFound extends Error
{
#filename: string;
readonly #filename: string;

constructor(filename: string)
{
Expand Down

0 comments on commit 95dcb0a

Please sign in to comment.