compiler-plugin / arrow.meta.quotes / Scope

Scope

open class Scope<out K : KtElement>

The property scope used in destructuring templates & the arrow.meta.phases.analysis.ElementScope DSL

Constructors

<init> The property scope used in destructuring templates & the arrow.meta.phases.analysis.ElementScope DSLScope(value: K?)

Properties

value open val value: K?

Functions

identity open fun ElementScope.identity(): Scope<K>
rangeTo operator fun <K : KtElement> ScopedList<K>.rangeTo(other: String): Name
toString open fun toString(): String

Companion Object Functions

empty fun <A> empty(): Scope<Nothing>

Extension Functions

map fun <K : KtElement> Scope<K>.map(f: (K) -> K): Scope<K>
orEmpty fun <K : KtElement> Scope<K>?.orEmpty(): Scope<K>

Inheritors

AnnotatedExpression ””” $@annotations $expression “”“.annotatedExpressionclass AnnotatedExpression : Scope<KtAnnotatedExpression>
BinaryExpression ””“$left $operationReference $right””“.binaryExpressionclass BinaryExpression : Scope<KtBinaryExpression>
BlockExpression ””“$statements””“.blockclass BlockExpression : Scope<KtBlockExpression>
CatchClause ”"”catch ($parameter) ${ catchBody }””“.catchclass CatchClause : Scope<KtCatchClause>
ClassBody ”””{ $properties $companionObjects $functions }””“.classBodyclass ClassBody : Scope<KtClassBody>
ClassOrObjectScope A template destructuring Scope for a KtClassOrObjectopen class ClassOrObjectScope<out T : KtClassOrObject> : Scope<T>
DestructuringDeclaration ””“$valOrVar ($entries) = $initializer “”“.destructuringDeclarationclass DestructuringDeclaration : Scope<KtDestructuringDeclaration>
DotQualifiedExpression ””“$receiverExpression.$selectorExpression””“.dotQualifiedExpressionclass DotQualifiedExpression : Scope<KtDotQualifiedExpression>
ExpressionWithLabel A template destructuring Scope for a KtExpressionWithLabelopen class ExpressionWithLabel<out T : KtExpressionWithLabel> : Scope<T>
File file(name, “”” $packageDirective $importList $classes “””)class File : Scope<KtFile>
FinallySection ”"”finally { $finallyExpression }””“.finallyclass FinallySection : Scope<KtFinallySection>
FunctionBody class FunctionBody : Scope<KtExpression>
FunctionNotStubbed A template destructuring Scope for a KtFunctionNotStubbedopen class FunctionNotStubbed<out T : KtFunctionNotStubbed> : Scope<T>
IfExpression ”"”if ($condition) $then else $else”””.ifclass IfExpression : Scope<KtIfExpression>
ImportDirective importDirective(ImportPath(importedFqName, isAllUnder, alias))class ImportDirective : Scope<KtImportDirective>
IsExpression ””“$left $operation $type”””.isclass IsExpression : Scope<KtIsExpression>
LambdaExpression lambdaExpression(“””$(params)”””, “”“$bodyExpression”””)class LambdaExpression : Scope<KtLambdaExpression>
LoopExpression A base template destructuring Scope for all KtLoopExpression AST elementsopen class LoopExpression<out T : KtLoopExpression> : Scope<T>
ModifierList ””” $@annotations $modifier value “””.modifierListclass ModifierList : Scope<KtModifierList>
PackageDirective ””” $package “””.packagedata class PackageDirective : Scope<KtPackageDirective>
Parameter ””” $name : $type””“.classParameterclass Parameter : Scope<KtParameter>
ParameterList ””” $(params) “”“.parameterListclass ParameterList : Scope<KtParameterList>
PropertyAccessor ””” var $name $returnType $initializer $visibility get $(params)$bodyExpression” ““.propertyAccessorGet class PropertyAccessor : Scope<KtPropertyAccessor>
ThrowExpression ”"”throw $thrownExpression”””.throwclass ThrowExpression : Scope<KtThrowExpression>
TryExpression ”"”try $tryBlock$catchClauses$finallySection”””.tryclass TryExpression : Scope<KtTryExpression>
TypeParameterListOwner A template destructuring Scope for a KtExpressionWithLabelopen class TypeParameterListOwner<out T : KtTypeParameterListOwner> : Scope<T>
TypeReference A template destructuring Scope for a TypeReference.class TypeReference : Scope<KtTypeReference>
ValueArgument (if (!argumentName.toString().isNullOrEmpty()) “”“$argumentName = $argumentExpression””” else “”“$argumentExpression”””).argumentclass ValueArgument : Scope<KtValueArgument>
WhenCondition condition.whenConditionclass WhenCondition : Scope<KtWhenCondition>
WhenEntry (if (!isElse) “”“$conditions -> $expression””” else “"”else -> $expression”””).whenEntryclass WhenEntry : Scope<KtWhenEntry>
WhenExpression A template destructuring Scope for a KtWhenExpression.class WhenExpression : Scope<KtWhenExpression>
WhenScope open class WhenScope<out K : KtElement> : Scope<K>

Do you like Arrow?

Arrow Org
<