import Ġmb . sp oof ax . compiler . command .* Ċ import Ġmb . sp oof ax . compiler . gradle . sp oof ax core .* Ċ import Ġmb . sp oof ax . compiler . menu .* Ċ import Ġmb . sp oof ax . compiler . sp oof ax core .* Ċ import Ġmb . sp oof ax . compiler . util .* Ċ import Ġmb . sp oof ax . core . language . command . Command Context Type Ċ import Ġmb . sp oof ax . core . language . command . Command Execution Type Ċ import Ġmb . sp oof ax . core . language . command . En closing Command Context Type Ċ Ċ plugins Ġ{ ĊĠ Ġid (" org . metab org . gradle . config . java - library ") ĊĠ Ġid (" org . metab org . sp oof ax . compiler . gradle . sp oof ax core . adapter ") Ċ } Ċ Ċ sp oof ax Adapter Project Ġ{ ĊĠ Ġlanguage Project . set ( project (": mod ")) ĊĠ Ġsettings . set ( Adapter Project Settings ( ĊĠĠĠ Ġparser Ġ= ĠParser Compiler . Adapter Project Input . builder (), ĊĠĠĠ Ġsty ler Ġ= ĠSty ler Compiler . Adapter Project Input . builder (), ĊĠĠĠ Ġcomp leter Ġ= ĠComp leter Compiler . Adapter Project Input . builder (), ĊĠĠĠ Ġstr ateg o Runtime Ġ= ĠStr ateg o Runtime Compiler . Adapter Project Input . builder (), ĊĠĠĠ Ġconstraint Analyzer Ġ= ĠConstraint Analyzer Compiler . Adapter Project Input . builder (), ĊĊĠĠĠ Ġbuilder Ġ= Ġrun Ġ{ ĊĠĠĠĠĠ Ġval Ġtask Package Id Ġ= Ġ" mb . mod . sp oof ax . task " ĊĠĠĠĠĠ Ġval Ġcommand Package Id Ġ= Ġ" mb . mod . sp oof ax . command " ĊĊĠĠĠĠĠ Ġval Ġbuilder Ġ= ĠAdapter Project Compiler . Input . builder (); ĊĊĠĠĠĠĠ Ġ// ĠShow Ġscope Ġgraph ĊĠĠĠĠĠ Ġval Ġshow Scope Graph Ġ= ĠType Info . of ( task Package Id , Ġ" Mod Show Scope Graph ") ĊĠĠĠĠĠ Ġbuilder . add Task Defs ( show Scope Graph ) ĊĠĠĠĠĠ Ġval Ġshow Scope Graph Command Ġ= ĠCommand Def Repr . builder () ĊĠĠĠĠĠĠĠ Ġ. type ( command Package Id , Ġ" Mod Show Scope Graph Command ") ĊĠĠĠĠĠĠĠ Ġ. task Def Type ( show Scope Graph ) ĊĠĠĠĠĠĠĠ Ġ. arg Type ( show Scope Graph . appendTo Id (". Args ")) ĊĠĠĠĠĠĠĠ Ġ. displayName (" Show Ġscope Ġgraph ") ĊĠĠĠĠĠĠĠ Ġ. description (" Shows Ġthe Ġscope Ġgraph Ġfor Ġthe Ġprogram ") ĊĠĠĠĠĠĠĠ Ġ. add Supported Execution Types ( Command Execution Type . Manual Once , ĠCommand Execution Type . Manual Continuous ) ĊĠĠĠĠĠĠĠ Ġ. addAll Params ( listOf ( ĊĠĠĠĠĠĠĠĠĠ ĠParam Repr . of (" project ", ĠType Info . of (" mb . resource . hierarchical ", Ġ" Resource Path "), Ġtrue , ĠArg Provider Repr . enc lo sing Context ( En closing Command Context Type . Project )), ĊĠĠĠĠĠĠĠĠĠ ĠParam Repr . of (" file ", ĠType Info . of (" mb . resource ", Ġ" Resource Key "), Ġtrue , ĠArg Provider Repr . context ( Command Context Type . File )) ĊĠĠĠĠĠĠĠ Ġ)) ĊĠĠĠĠĠĠĠ Ġ. build () ĊĠĠĠĠĠ Ġbuilder . add Command Defs ( show Scope Graph Command ) ĊĊĊĠĠĠĠĠ Ġ// ĠMenu Ġbindings ĊĠĠĠĠĠ Ġval Ġmain And Editor Menu Ġ= ĠlistOf ( ĊĠĠĠĠĠĠĠ ĠMenuItem Repr . menu (" Debug ", ĊĠĠĠĠĠĠĠĠĠ ĠMenuItem Repr . menu (" Static ĠSem antics ", ĊĠĠĠĠĠĠĠĠĠĠĠ ĠCommand Action Repr . builder (). manual Once ( show Scope Graph Command ). file Required (). enc lo sing Project Required (). build Item (), ĊĠĠĠĠĠĠĠĠĠĠĠ ĠCommand Action Repr . builder (). manual Continuous ( show Scope Graph Command ). file Required (). enc lo sing Project Required (). build Item () ĊĠĠĠĠĠĠĠĠĠ Ġ) ĊĠĠĠĠĠĠĠ Ġ) ĊĠĠĠĠĠ Ġ) ĊĠĠĠĠĠ Ġbuilder . addAll MainMenu Items ( main And Editor Menu ) ĊĠĠĠĠĠ Ġbuilder . addAll Editor ContextMenu Items ( main And Editor Menu ) ĊĠĠĠĠĠ Ġbuilder . add Resource ContextMenu Items ( ĊĠĠĠĠĠĠĠ ĠMenuItem Repr . menu (" Debug ", ĊĠĠĠĠĠĠĠĠĠ ĠMenuItem Repr . menu (" Static ĠSem antics ", ĊĠĠĠĠĠĠĠĠĠĠĠ ĠCommand Action Repr . builder (). manual Once ( show Scope Graph Command ). file Required (). enc lo sing Project Required (). build Item () ĊĠĠĠĠĠĠĠĠĠ Ġ) ĊĠĠĠĠĠĠĠ Ġ) ĊĠĠĠĠĠ Ġ) ĊĠĠĠ Ġ} ĊĠ Ġ)) Ċ } Ċ