public MethodSymbol resolveInternalConstructor ( DiagnosticPosition pos , Env < AttrContext > env , Type site , List < Type > argtypes , List < Type > typeargtypes ) { MethodResolutionContext resolveContext = new MethodResolutionContext ( ) ; resolveContext . internalResolution = true ; Symbol sym = resolveConstructor ( resolveContext , pos , env , site , argtypes , typeargtypes ) ; if ( sym . kind == MTH ) return ( MethodSymbol ) sym ; else throw new FatalError ( diags . fragment ( "fatal.err.cant.locate.ctor" , site ) ) ; }
Resolve a constructor throw a fatal error if not found .