Skip to content

Commit

Permalink
renamed some variables
Browse files Browse the repository at this point in the history
  • Loading branch information
JohannesMeierSE committed Dec 11, 2024
1 parent 2abd993 commit 190684d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/typir/src/kinds/class/class-kind.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,10 +143,10 @@ export class ClassKind implements Kind, ClassFactoryService {
.sort() // the order of fields does not matter, therefore we need a stable order to make the identifiers comparable
.join(',');
// methods
const functionKind = this.getMethodFactory();
const functionFactory = this.getMethodFactory();
const methods: string = typeDetails.methods
.map(createMethodDetails => {
return functionKind.calculateIdentifier(createMethodDetails); // reuse the Identifier for Functions here!
return functionFactory.calculateIdentifier(createMethodDetails); // reuse the Identifier for Functions here!
})
.sort() // the order of methods does not matter, therefore we need a stable order to make the identifiers comparable
.join(',');
Expand Down
4 changes: 2 additions & 2 deletions packages/typir/src/services/operator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,10 +152,10 @@ export class DefaultOperatorManager implements OperatorManager {

createGeneric<T>(typeDetails: GenericOperatorDetails<T>): TypeInitializer<Type> {
// define/register the wanted operator as "special" function
const functionKind = this.getFunctionFactory();
const functionFactory = this.getFunctionFactory();

// create the operator as type of kind 'function'
const newOperatorType = functionKind.create({
const newOperatorType = functionFactory.create({
functionName: typeDetails.name,
outputParameter: { name: NO_PARAMETER_NAME, type: typeDetails.outputType },
inputParameters: typeDetails.inputParameter,
Expand Down

0 comments on commit 190684d

Please sign in to comment.