package Ġic u . win dea . pl s . script . psi Ċ Ċ import Ġcom . intellij . lang .* Ċ import Ġcom . intellij . psi . stubs .* Ċ import Ġic u . win dea . pl s .* Ċ import Ġic u . win dea . pl s . script .* Ċ import Ġic u . win dea . pl s . script . psi . impl .* Ċ Ċ class ĠPar ad ox Script Variable Stub ElementType Ġ: ĠI Stub ElementType < Par ad ox Script Variable Stub , ĠPar ad ox Script Variable >( Ċ ĉ " PAR ADO X _ SCRIPT _ VARIABLE ", Ċ ĉ Par ad ox Script Language Ċ ) Ġ{ Ċ ĉ override Ġfun Ġget External Id (): ĠString Ġ{ Ċĉ ĉ return Ġ" par ad ox Script . variable " Ċ ĉ } ĊĉĊ ĉ override Ġfun Ġcreate Psi ( stub : ĠPar ad ox Script Variable Stub ): ĠPar ad ox Script Variable Ġ{ Ċĉ ĉ return ĠPar ad ox Script Variable Impl ( stub , Ġthis ) Ċ ĉ } ĊĉĊ ĉ override Ġfun Ġcreate Stub ( psi : ĠPar ad ox Script Variable , Ġparent Stub : ĠStub Element < *> ): ĠPar ad ox Script Variable Stub Ġ{ Ċĉ ĉ return ĠPar ad ox Script Variable Stub Impl ( parent Stub , Ġpsi . name ) Ċ ĉ } ĊĉĊ ĉ override Ġfun Ġshould Create Stub ( node : ĠAST Node ): ĠBoolean Ġ{ Ċĉ ĉ // ä»ħ å½ĵ æĺ¯ script ed _ variable æīį åĪĽå»º ç´¢å¼ķ Ċĉ ĉ if ( node . tree Parent . elementType Ġ!= ĠPar ad ox Script Types . ROOT _ BLOCK ) Ġreturn Ġfalse Ċĉ ĉ val Ġfile Ġ= Ġnode . psi . containing File Ċĉ ĉ val Ġparent Path Ġ= Ġfile . fileInfo ?. path ?. parent Ġ?: Ġreturn Ġfalse Ċĉ ĉ return Ġ" common / script ed _ variables ". matches Path ( parent Path ) Ċ ĉ } ĊĉĊ ĉ override Ġfun Ġindex Stub ( stub : ĠPar ad ox Script Variable Stub , Ġsink : ĠIndex Sink ) Ġ{ Ċĉ ĉ // ç´¢å¼ķ script ed _ variable çļĦ name Ċĉ ĉ sink . occ urrence ( Par ad ox Script Variable Name Index . key , Ġstub . name ) Ċ ĉ } ĊĉĊ ĉ override Ġfun Ġserialize ( stub : ĠPar ad ox Script Variable Stub , Ġdata Stream : ĠStub OutputStream ) Ġ{ Ċĉ ĉ data Stream . write Name ( stub . name ) Ċ ĉ } ĊĉĊ ĉ override Ġfun Ġdeserialize ( data Stream : ĠStub InputStream , Ġparent Stub : ĠStub Element < *> ): ĠPar ad ox Script Variable Stub Ġ{ Ċĉ ĉ val Ġread Name String Ġ= Ġdata Stream . read Name String (). toString OrEmpty () Ċĉ ĉ return ĠPar ad ox Script Variable Stub Impl ( parent Stub , Ġread Name String ) Ċ ĉ } Ċ } Ċ