File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -23,9 +23,9 @@ import {
2323} from '../types/primitives'
2424import { createArrayType } from '../typeFactories/arrayFactory'
2525import { ClassImpl } from '../types/classes'
26+ import { Method } from '../types/methods'
2627import { Frame } from './environment'
2728import { addClassesToFrame , resolveClassRelationships } from './prechecks'
28- import { Method } from '../types/methods'
2929
3030export type Result = {
3131 currentType : Type | null
@@ -405,7 +405,6 @@ export const typeCheckBody = (node: Node, frame: Frame = Frame.globalFrame()): R
405405 } )
406406 if ( errors . length > 0 ) return newResult ( null , errors )
407407
408- let numConstructorDeclarations = 0
409408 let numFieldDeclarations = 0
410409 let numMethodDeclarations = 0
411410 for ( let i = 0 ; i < node . classBody . length ; i ++ ) {
@@ -486,7 +485,6 @@ export const typeCheckBody = (node: Node, frame: Frame = Frame.globalFrame()): R
486485 }
487486 }
488487
489- if ( bodyDeclaration . kind === 'ConstructorDeclaration' ) numConstructorDeclarations += 1
490488 if ( bodyDeclaration . kind === 'FieldDeclaration' ) numFieldDeclarations += 1
491489 if ( bodyDeclaration . kind === 'MethodDeclaration' ) numMethodDeclarations += 1
492490 }
You can’t perform that action at this time.
0 commit comments