sensorsdata / sa-sdk-android-plugin2

神策数据官方 Android 埋点插件,用于 Android 端的数据采集。通过使用字节码插桩(ASM)的技术实现 Android 端的全埋点(无埋点、无码埋点、无痕埋点、自动埋点)。
http://opensource.sensorsdata.cn
Apache License 2.0
435 stars 149 forks source link

未找到methodCell变量定义的地方 #6

Closed hanchanpo13 closed 4 years ago

hanchanpo13 commented 4 years ago

https://github.com/sensorsdata/sa-sdk-android-plugin2/blob/59146b54b88acb3b262ad5b17ca2703d9830eacc/plugin/src/main/groovy/com/sensorsdata/analytics/android/plugin/SensorsAnalyticsClassVisitor.groovy#L168

dengshiwei commented 4 years ago

@hanchanpo13 这是 groovy 的 for-in 语法,例如:

class Example {
   static void main(String[] args) {
      def employee = ["Ken" : 21, "John" : 25, "Sally" : 22];

      for(emp in employee) {
         println(emp);
      }
   }
}
hanchanpo13 commented 4 years ago

好的谢谢大佬调教