amanda.hinchman-dominguez
11/11/2019, 2:48 PMval getValOrVarKeyword: Scoped<PsiElement> = Scoped(value.getValOrVarKeyword)raulraja
11/11/2019, 3:30 PMraulraja
11/11/2019, 3:30 PMtoString method how to render.amanda.hinchman-dominguez
11/11/2019, 3:32 PMraulraja
11/11/2019, 3:32 PM@annotationEntries scope that when rendered produces an empty string. This is necessary so people can compose their templates safely without having to check for null inside the templates which will be rather cumbersome since template expressions are hard to read when they spawn more than one line and nullable types chaining tends to nest whenever you want to do something complexamanda.hinchman-dominguez
11/11/2019, 3:32 PMraulraja
11/11/2019, 3:33 PMraulraja
11/11/2019, 3:34 PMvalOrKeyword with a template but if you do you would use there instead the actual concrete scope that gives you template powersamanda.hinchman-dominguez
11/11/2019, 3:34 PMKtParameter, we probably want to know of the valOrVarraulraja
11/11/2019, 3:34 PMval getValOrVarKeyword: ValOrKeywordScope = ValOrKeywordScope(value.getValOrVarKeyword)raulraja
11/11/2019, 3:34 PMValOrKeywordScope : Scope<KtVarOrKeywordWhatever>amanda.hinchman-dominguez
11/11/2019, 3:35 PMParameterScope?raulraja
11/11/2019, 3:35 PMraulraja
11/11/2019, 3:35 PMamanda.hinchman-dominguez
11/11/2019, 3:36 PMraulraja
11/11/2019, 3:36 PMScope<KtParameter> we always want to use ParameterScope which already extends Scope<KtParameter>amanda.hinchman-dominguez
11/11/2019, 3:36 PMamanda.hinchman-dominguez
11/11/2019, 3:36 PMPsiElementsamanda.hinchman-dominguez
11/11/2019, 3:37 PMamanda.hinchman-dominguez
11/11/2019, 3:39 PMraulraja
11/11/2019, 3:41 PMraulraja
11/11/2019, 3:42 PMthis pointer is the actual scope so you can access the entire scope without a prefix.
2. The function receives an argument of the KtElement type as it giving you full access to the entire PSI api of that element including traversal, properties and everything you need,raulraja
11/11/2019, 3:43 PMamanda.hinchman-dominguez
11/11/2019, 3:45 PMraulraja
11/11/2019, 3:47 PMbloder
11/11/2019, 3:49 PMval getValOrVarKeyword: ValOrVarKeywordScope = ValOrVarKeywordScope(value.getValOrVarKeyword)bloder
11/11/2019, 3:49 PMraulraja
11/11/2019, 3:54 PMraulraja
11/11/2019, 3:55 PMraulraja
11/11/2019, 3:55 PMamanda.hinchman-dominguez
11/11/2019, 3:55 PMraulraja
11/11/2019, 3:55 PMKtElment -> Renderingraulraja
11/11/2019, 3:55 PMRendering -> KtElementraulraja
11/11/2019, 3:56 PMraulraja
11/11/2019, 3:56 PMraulraja
11/11/2019, 3:56 PMraulraja
11/11/2019, 3:56 PM"fun ...".functionraulraja
11/11/2019, 3:57 PMFuncScope instead of Scope<KtNamedFunction>raulraja
11/11/2019, 3:57 PMamanda.hinchman-dominguez
11/11/2019, 3:58 PMraulraja
11/11/2019, 3:59 PMraulraja
11/11/2019, 3:59 PMraulraja
11/11/2019, 4:00 PMbloder
11/11/2019, 4:00 PMKtLoopExpression / KtForExpression, I'll send you the implementation later @amanda.hinchman-dominguez to see if I'm missing or misunderstanding somethingamanda.hinchman-dominguez
11/11/2019, 4:01 PMamanda.hinchman-dominguez
11/11/2019, 4:01 PM