             [
                 "foo \(operation)= 1",
                 "foo \(operation)= variable",
-                "foo \(operation)= bar.method()"
+                "foo \(operation)= bar.method()",
+                "self.foo = foo \(operation) 1",
+                "foo = self.foo \(operation) 1"
             ]
         },
         triggeringExamples: allOperators.flatMap { operation in

//  Copyright © 2017 Realm. All rights reserved.
//

import SourceKittenFramework

public struct ShorthandOperatorRule: ConfigurationProviderRule {

                "↓foo = 1 \(operation) foo\n",
                "↓foo = aVariable \(operation) foo\n",
                "↓foo = bar.method() \(operation) foo\n",
                "↓foo = bar.method(param: 1, otherParam: 2) \(operation) foo\n",
                "↓foo.aProperty = foo.aProperty \(operation) 1\n",
                "↓self.aProperty = self.aProperty \(operation) 1\n"
            ]
        }
    )
