/* Ċ Ġ* ĠCopyright Ġ 2 0 1 0 - 2 0 1 7 ĠJetBrains Ġs . r . o . Ċ Ġ* Ċ Ġ* ĠLicensed Ġunder Ġthe ĠApache ĠLicense , ĠVersion Ġ 2 . 0 Ġ( the Ġ" License "); Ċ Ġ* Ġyou Ġmay Ġnot Ġuse Ġthis Ġfile Ġexcept Ġin Ġcompliance Ġwith Ġthe ĠLicense . Ċ Ġ* ĠYou Ġmay Ġobtain Ġa Ġcopy Ġof Ġthe ĠLicense Ġat Ċ Ġ* Ċ Ġ* Ġhttp :// www . apache . org / licenses / LICENSE - 2 . 0 Ċ Ġ* Ċ Ġ* ĠUnless Ġrequired Ġby Ġapplicable Ġlaw Ġor Ġagreed Ġto Ġin Ġwriting , Ġsoftware Ċ Ġ* Ġdistributed Ġunder Ġthe ĠLicense Ġis Ġdistributed Ġon Ġan Ġ" AS ĠIS " ĠBASIS , Ċ Ġ* ĠWITHOUT ĠWARRANTIES ĠOR ĠCONDITIONS ĠOF ĠANY ĠKIND , Ġeither Ġexpress Ġor Ġimplied . Ċ Ġ* ĠSee Ġthe ĠLicense Ġfor Ġthe Ġspecific Ġlanguage Ġgoverning Ġpermissions Ġand Ċ Ġ* Ġlimitations Ġunder Ġthe ĠLicense . Ċ Ġ*/ Ċ Ċ package Ġorg . jetbrains . kotlin . resolve . calls . tower Ċ Ċ import Ġorg . jetbrains . kotlin . config . Language Version Settings Ċ import Ġorg . jetbrains . kotlin . descriptors .* Ċ import Ġorg . jetbrains . kotlin . incremental . components . Lookup Location Ċ import Ġorg . jetbrains . kotlin . name . Name Ċ import Ġorg . jetbrains . kotlin . resolve . calls . inference . model . Constraint System Error Ċ import Ġorg . jetbrains . kotlin . resolve . calls . model . Diagnostic Reporter Ċ import Ġorg . jetbrains . kotlin . resolve . calls . model . Kotlin Call Argument Ċ import Ġorg . jetbrains . kotlin . resolve . calls . model . Kotlin Call Diagnostic Ċ import Ġorg . jetbrains . kotlin . resolve . calls . tower . Candidate Applic ability .* Ċ import Ġorg . jetbrains . kotlin . resolve . scopes . Lex ical Scope Ċ import Ġorg . jetbrains . kotlin . resolve . scopes . Member Scope Ċ import Ġorg . jetbrains . kotlin . resolve . scopes . Resolution Scope Ċ import Ġorg . jetbrains . kotlin . resolve . scopes . Synt hetic Scopes Ċ import Ġorg . jetbrains . kotlin . resolve . scopes . re ceiv ers . Receiver Value With Smart Cast Info Ċ import Ġorg . jetbrains . kotlin . resolve . scopes . utils . parent sWith Self Ċ import Ġorg . jetbrains . kotlin . types . Kotlin Type Ċ import Ġorg . jetbrains . kotlin . types . Type Approx imator Ċ Ċ interface ĠImp licit Scope Tower Ġ{ ĊĠĠĠ Ġval Ġlex ical Scope : ĠLex ical Scope ĊĊĠĠĠ Ġfun Ġget Implicit Receiver ( scope : ĠLex ical Scope ): ĠReceiver Value With Smart Cast Info ? ĊĊĠĠĠ Ġfun ĠgetName For Given Import Alias ( name : ĠName ): ĠName ? ĊĊĠĠĠ Ġval Ġdynamic Scope : ĠMember Scope ĊĊĠĠĠ Ġval Ġsynthetic Scopes : ĠSynt hetic Scopes ĊĊĠĠĠ Ġval Ġlocation : ĠLookup Location ĊĊĠĠĠ Ġval Ġis Debugger Context : ĠBoolean ĊĊĠĠĠ Ġval Ġis New Inference Enabled : ĠBoolean ĊĊĠĠĠ Ġval Ġlanguage Version Settings : ĠLanguage Version Settings ĊĊĠĠĠ Ġval Ġtype Approx imator : ĠType Approx imator ĊĊĠĠĠ Ġval Ġimp lic its Resolution Filter : ĠImp lic its Extensions Resolution Filter ĊĊĠĠĠ Ġfun Ġall Scopes With Imp lic its Resolution Info (): ĠSequence < Scope With Imp lic its Extensions Resolution Info > Ġ= ĊĠĠĠĠĠĠĠ Ġimp lic its Resolution Filter . getS copes With Info ( lexical Scope . parent sWith Self ) ĊĊĠĠĠ Ġfun Ġintercept Function Candidates ( ĊĠĠĠĠĠĠĠ Ġresolution Scope : ĠResolution Scope , ĊĠĠĠĠĠĠĠ Ġname : ĠName , ĊĠĠĠĠĠĠĠ Ġinitial Results : ĠCollection < Function Descriptor >, ĊĠĠĠĠĠĠĠ Ġlocation : ĠLookup Location , ĊĠĠĠĠĠĠĠ Ġdispatch Receiver : ĠReceiver Value With Smart Cast Info ?, ĊĠĠĠĠĠĠĠ Ġextension Receiver : ĠReceiver Value With Smart Cast Info ? ĊĠĠĠ Ġ): ĠCollection < Function Descriptor > ĊĊĠĠĠ Ġfun Ġintercept Variable Candidates ( ĊĠĠĠĠĠĠĠ Ġresolution Scope : ĠResolution Scope , ĊĠĠĠĠĠĠĠ Ġname : ĠName , ĊĠĠĠĠĠĠĠ Ġinitial Results : ĠCollection < Variable Descriptor >, ĊĠĠĠĠĠĠĠ Ġlocation : ĠLookup Location , ĊĠĠĠĠĠĠĠ Ġdispatch Receiver : ĠReceiver Value With Smart Cast Info ?, ĊĠĠĠĠĠĠĠ Ġextension Receiver : ĠReceiver Value With Smart Cast Info ? ĊĠĠĠ Ġ): ĠCollection < Variable Descriptor > Ċ } Ċ Ċ interface ĠScope Tower Level Ġ{ ĊĠĠĠ Ġfun Ġget Variables ( name : ĠName , Ġextension Receiver : ĠReceiver Value With Smart Cast Info ?): ĠCollection < Candidate With Bound Dispatch Receiver > ĊĊĠĠĠ Ġfun Ġget Objects ( name : ĠName , Ġextension Receiver : ĠReceiver Value With Smart Cast Info ?): ĠCollection < Candidate With Bound Dispatch Receiver > ĊĊĠĠĠ Ġfun Ġget Functions ( name : ĠName , Ġextension Receiver : ĠReceiver Value With Smart Cast Info ?): ĠCollection < Candidate With Bound Dispatch Receiver > ĊĊĠĠĠ Ġfun Ġrecord Lookup ( name : ĠName ) Ċ } Ċ Ċ class ĠC andidate With Bound Dispatch Receiver ( ĊĠĠĠ Ġval Ġdispatch Receiver : ĠReceiver Value With Smart Cast Info ?, ĊĠĠĠ Ġval Ġdescriptor : ĠCallable Descriptor , ĊĠĠĠ Ġval Ġdiagnostics : ĠList < Resolution Diagnostic > Ċ ) Ċ Ċ @ Jvm Name (" getResult Applic ability For Constraint Errors ") Ċ fun Ġget Result Applic ability ( diagnostics : ĠCollection < Constraint System Error >): ĠC andidate Applic ability Ġ= ĊĠĠĠ Ġdiagnostics . min By OrNull Ġ{ Ġit . applic ability Ġ} ?. applic ability Ġ?: ĠRES OL VED Ċ Ċ @ Jvm Name (" getResult Applic ability For Call Diagnostics ") Ċ fun Ġget Result Applic ability ( diagnostics : ĠCollection < Kotlin Call Diagnostic >): ĠC andidate Applic ability Ġ= ĊĠĠĠ Ġdiagnostics . min By OrNull Ġ{ Ġit . candidate Applic ability Ġ} ?. candidate Applic ability Ġ?: ĠRES OL VED Ċ Ċ abstract Ġclass ĠResolution Diagnostic ( candidate Applic ability : ĠC andidate Applic ability ) Ġ: ĊĠĠĠ ĠKotlin Call Diagnostic ( candidate Applic ability ) Ġ{ ĊĠĠĠ Ġoverride Ġfun Ġreport ( reporter : ĠDiagnostic Reporter ) Ġ{ ĊĠĠĠĠĠĠĠ Ġ// Ġdo Ġnothing ĊĠĠĠ Ġ} Ċ } Ċ Ċ // Ġtodo Ġerror Ġfor Ġthis Ġaccess Ġfrom Ġnested Ġclass Ċ class ĠVisibility Error ( val Ġinvisible Member : ĠDeclaration Descriptor With Visibility ) Ġ: ĠResolution Diagnostic ( RUNTIME _ ERROR ) Ġ{ ĊĠĠĠ Ġoverride Ġfun Ġreport ( reporter : ĠDiagnostic Reporter ) Ġ{ ĊĠĠĠĠĠĠĠ Ġreporter . on Call ( this ) ĊĠĠĠ Ġ} Ċ } Ċ Ċ class ĠVisibility Error On Argument ( ĊĠĠĠ Ġval Ġargument : ĠKotlin Call Argument , ĊĠĠĠ Ġval Ġinvisible Member : ĠDeclaration Descriptor With Visibility Ċ ) Ġ: ĠResolution Diagnostic ( RUNTIME _ ERROR ) Ġ{ ĊĠĠĠ Ġoverride Ġfun Ġreport ( reporter : ĠDiagnostic Reporter ) Ġ{ ĊĠĠĠĠĠĠĠ Ġreporter . on Call Argument ( argument , Ġthis ) ĊĠĠĠ Ġ} Ċ } Ċ Ċ class ĠNested Class Via Instance Reference ( val Ġclass Descriptor : ĠClass Descriptor ) Ġ: ĠResolution Diagnostic ( IMP OSS IBLE _ TO _ GENER ATE ) Ċ class ĠInner Class Via Static Reference ( val Ġclass Descriptor : ĠClass Descriptor ) Ġ: ĠResolution Diagnostic ( IMP OSS IBLE _ TO _ GENER ATE ) Ċ class ĠUnsupported Inner Class Call ( val Ġmessage : ĠString ) Ġ: ĠResolution Diagnostic ( IMP OSS IBLE _ TO _ GENER ATE ) Ċ class ĠUsed Smart Cast For Dispatch Receiver ( val Ġsmart Cast Type : ĠKotlin Type ) Ġ: ĠResolution Diagnostic ( RESOL VED ) Ċ Ċ object ĠError Descriptor Diagnostic Ġ: ĠResolution Diagnostic ( RESOL VED ) Ġ// Ġtodo Ġdiscuss Ġand Ġchange Ġto ĠIN AP PL IC ABLE Ċ object ĠLow Priority Descriptor Diagnostic Ġ: ĠResolution Diagnostic ( RESOL VED _ LOW _ PRIORITY ) Ċ object ĠDynamic Descriptor Diagnostic Ġ: ĠResolution Diagnostic ( RESOL VED _ LOW _ PRIORITY ) Ċ object ĠResolved Using New Features Ġ: ĠResolution Diagnostic ( RESOL VED _ NEED _ PRE SER VE _ COMPAT IBILITY ) Ċ object ĠUn stable Smart Cast Diagnostic Ġ: ĠResolution Diagnostic ( UN ST ABLE _ SM ART CAST ) Ċ object ĠHidden Extension Related To Dynamic Types Ġ: ĠResolution Diagnostic ( HIDDEN ) Ċ object ĠHidden Descriptor Ġ: ĠResolution Diagnostic ( HIDDEN ) Ċ Ċ object ĠInvoke Convention Call No Operator Modifier Ġ: ĠResolution Diagnostic ( CON VENT ION _ ERROR ) Ċ object ĠIn fix Call No In fix Modifier Ġ: ĠResolution Diagnostic ( CON VENT ION _ ERROR ) Ċ object ĠDeprecated Unary Plus As Plus Ġ: ĠResolution Diagnostic ( CON VENT ION _ ERROR ) Ċ Ċ class ĠResolved Using Deprecated Visibility ( val Ġbase Source Scope : ĠResolution Scope , Ġval Ġlookup Location : ĠLookup Location ) Ġ: ĠResolution Diagnostic ( RESOL VED ) Ċ