Skip to content

Commit

Permalink
Rename to TypeArgumentsCheck
Browse files Browse the repository at this point in the history
  • Loading branch information
darkdrag00nv2 committed Dec 5, 2023
1 parent fa16545 commit d5b746c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions runtime/sema/check_invocation_expression.go
Original file line number Diff line number Diff line change
Expand Up @@ -504,8 +504,8 @@ func (checker *Checker) checkInvocation(

// The invokable type might have special checks for the type parameters.

if functionType.TypePrametersCheck != nil {
functionType.TypePrametersCheck(
if functionType.TypeArgumentsCheck != nil {
functionType.TypeArgumentsCheck(
checker.memoryGauge,
typeArguments,
invocationExpression.TypeArguments,
Expand Down
4 changes: 2 additions & 2 deletions runtime/sema/type.go
Original file line number Diff line number Diff line change
Expand Up @@ -2907,7 +2907,7 @@ type FunctionType struct {
ReturnTypeAnnotation TypeAnnotation
Arity *Arity
ArgumentExpressionsCheck ArgumentExpressionsCheck
TypePrametersCheck TypeParametersCheck
TypeArgumentsCheck TypeArgumentsCheck
Members *StringMemberOrderedMap
TypeParameters []*TypeParameter
Parameters []Parameter
Expand Down Expand Up @@ -3378,7 +3378,7 @@ type ArgumentExpressionsCheck func(
invocationRange ast.Range,
)

type TypeParametersCheck func(
type TypeArgumentsCheck func(
memoryGauge common.MemoryGauge,
typeArguments *TypeParameterTypeOrderedMap,
astTypeArguments []*ast.TypeAnnotation,
Expand Down
2 changes: 1 addition & 1 deletion runtime/stdlib/range.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ var inclusiveRangeConstructorFunctionType = func() *sema.FunctionType {
),
// `step` parameter is optional
Arity: &sema.Arity{Min: 2, Max: 3},
TypePrametersCheck: func(
TypeArgumentsCheck: func(
memoryGauge common.MemoryGauge,
typeArguments *sema.TypeParameterTypeOrderedMap,
astTypeArguments []*ast.TypeAnnotation,
Expand Down

0 comments on commit d5b746c

Please sign in to comment.