rules/full_copy_with_for_state/copy_with_shared library
Functions
-
analyze(
ClassDeclaration node) → CopyWithAnalysis? - Единый анализ точки входа (удобно и для rules, и для fixes)
-
computeMissing(
MethodDeclaration copyWithMethod, List< CopyWithField> allFields, Set<String> ctorFields) → MissingData -
constructorFieldFormals(
ClassDeclaration node) → Set< String> -
Берём поля, которые реально участвуют в создании через
this.<field>/super.<field>из "главного" конструктора (без имени). При желании можно расширить до всех ctor. -
findReturnedInstanceCreation(
MethodDeclaration method) → InstanceCreationExpression? -
instanceFields(
ClassElement classEl) → List< CopyWithField> -
isTargetStateClass(
ClassDeclaration node) → bool