Skip to content
Browse files

finishing touches on ast preso

  • Loading branch information...
1 parent 4fd3095 commit 23f4f9e7349f860dd1847effddff0d5d0cff5201 @HamletDRC committed Sep 6, 2011
View
BIN asttransformations/AstTransformations.odp
Binary file not shown.
View
16 asttransformations/ast_new_outline.txt
@@ -1,6 +1,14 @@
- - todo: reread Alex's article
- - todo: add Kotlin logo and a question mark?
- - todo: look up findbugs / pmd patterns
+Pre Demo CHecklist
+- Lombok is clean
+- Mirah is clean
+- Mirah demo directions are written out
+- Groovy Ast Browser works
+- Startup CodeNarc Web Console
+- Startup IDEA in gr8 project
+- Dump Font in console, GroovyConsole, GEdit, and IDEA
+
+ - todo: write out Mirah Directions
+ - todo: walk through presentation
1. Lombok
- Demos
@@ -22,6 +30,8 @@
5. CodeNarc
- Get returns null example running
+ - unnecessary null check before instanceof
+ - UnnecessaryCollectCall
- Get some other example running
- Explain sample rules
- Explain different Tree walking approaches
View
BIN asttransformations/images/kotlin.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
1 asttransformations/project/gr8.iml
@@ -5,6 +5,7 @@
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
<excludeFolder url="file://$MODULE_DIR$/src/codenarc" />
+ <excludeFolder url="file://$MODULE_DIR$/src/gpp" />
</content>
<content url="file://$MODULE_DIR$/../scripts/asm">
<sourceFolder url="file://$MODULE_DIR$/../scripts/asm/src" isTestSource="false" />
View
1,318 asttransformations/project/gr8.ipr
1,316 additions, 2 deletions not shown because the diff is too large. Please use a local Git client to view these changes.
View
11 asttransformations/project/src/demo/MyClass.java
@@ -0,0 +1,11 @@
+package demo;
+
+public class MyClass {
+
+
+ void myMethod(Object parameter) {
+ if (parameter != null && parameter instanceof String) {
+
+ }
+ }
+}
View
12 asttransformations/scripts/codenarc/example.groovy
@@ -0,0 +1,12 @@
+
+private def getFirstNames = { parameter ->
+ if (parameter == null) return null
+ if (parameter.length() == 0) return []
+ if (parameter != null && parameter instanceof Person) {
+ return parameter.firstName
+ }
+ return parameter.collect { it.firstName }
+}
+
+
+

0 comments on commit 23f4f9e

Please sign in to comment.
Something went wrong with that request. Please try again.