/* Ċ Ġ* ĠCopyright Ġ 2 0 1 0 - 2 0 2 2 ĠJetBrains Ġs . r . o . Ġand ĠKotlin ĠProgramming ĠLanguage Ġcontributors . Ċ Ġ* ĠUse Ġof Ġthis Ġsource Ġcode Ġis Ġgoverned Ġby Ġthe ĠApache Ġ 2 . 0 Ġlicense Ġthat Ġcan Ġbe Ġfound Ġin Ġthe Ġlicense / LICENSE . txt Ġfile . Ċ Ġ*/ Ċ Ċ package Ġorg . jetbrains . kotlin . analysis . api . impl . base . test . configur ators Ċ Ċ import Ġcom . intellij . ide . highlighter . Java Class FileType Ċ import Ġcom . intellij . mock . Mock Application Ċ import Ġcom . intellij . mock . Mock Project Ċ import Ġcom . intellij . openapi . extensions . Loading Order Ċ import Ġcom . intellij . psi . Class File View Provider Factory Ċ import Ġcom . intellij . psi . FileType File View Providers Ċ import Ġcom . intellij . psi . compiled . Class File De comp ilers Ċ import Ġorg . jetbrains . kotlin . analysis . de compiler . psi . Kotlin BuiltIn De compiler Ċ import Ġorg . jetbrains . kotlin . analysis . de compiler . psi . Kotlin Class File De compiler Ċ import Ġorg . jetbrains . kotlin . analysis . de compiler . stub . file . Cls Kotlin Binary Class Cache Ċ import Ġorg . jetbrains . kotlin . analysis . de compiler . stub . file . File Attribute Service Ċ import Ġorg . jetbrains . kotlin . analysis . de compiler . stub . files . Dummy File Attribute Service Ċ import Ġorg . jetbrains . kotlin . analysis . test . framework . test . configur ators . Analysis Api Test Service Registrar Ċ import Ġorg . jetbrains . kotlin . test . Test Infrastructure Internals Ċ import Ġorg . jetbrains . kotlin . test . services . Test Services Ċ import Ġorg . jetbrains . kotlin . analysis . test . framework . services . dis posable Provider ĊĊ Ċ object ĠAnalysis Api Library Base Test Service Registrar Ġ: ĠAnalysis Api Test Service Registrar () Ġ{ ĊĠĠĠ Ġoverride Ġfun Ġregister Project Extension Points ( project : ĠMock Project , Ġtest Services : ĠTest Services ) Ġ{ ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġregister Project Services ( project : ĠMock Project , Ġtest Services : ĠTest Services ) Ġ{ ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Opt In ( Test Infrastructure Internals :: class ) ĊĠĠĠ Ġoverride Ġfun Ġregister Application Services ( application : ĠMock Application , Ġtest Services : ĠTest Services ) Ġ{ ĊĠĠĠĠĠĠĠ Ġapplication . apply Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġregister Service ( Cls Kotlin Binary Class Cache :: class . java ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġregister Service ( File Attribute Service :: class . java , ĠDummy File Attribute Service ) ĊĠĠĠĠĠĠĠ Ġ} ĊĊĠĠĠĠĠĠĠ ĠFile Type File View Providers . INSTANCE . add Explicit Extension ( Java Class FileType . INSTANCE , ĠClass File View Provider Factory ()) ĊĊĠĠĠĠĠĠĠ ĠClass File De comp ilers . getInstance (). EP _ NAME . point . apply Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġregister Extension ( Kotlin Class File De compiler (), ĠLoading Order . FIRST , Ġtest Services . dis posable Provider . getApplication Disposable ()) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġregister Extension ( Kotlin BuiltIn De compiler (), ĠLoading Order . FIRST , Ġtest Services . dis posable Provider . getApplication Disposable ()) ĊĠĠĠĠĠĠĠ Ġ} ĊĊĠĠĠ Ġ} Ċ }