[root]/trunk/wact/compiler/codewriter

| Author | Changes | Lines of Code | Lines per Change |
|---|---|---|---|
| Totals | 106 (100.0%) | 4264 (100.0%) | 40.2 |
| norbertmocsnik | 55 (51.9%) | 3290 (77.2%) | 59.8 |
| JeffMoore | 51 (48.1%) | 974 (22.8%) | 19.0 |
convert filename case
0 lines of code changed in 28 files:
Changed base exception to introduce sprintf like capability.
79 lines of code changed in 3 files:
Renamed WactException to Wact_Exception_Base to comply with Autoloading scheme.
Wact_Exception_Base was used instead of Wact_Exception to keep the file inside the exception directory. This raises an interesting issue about "namesake" classes that typically take on
the name of the package they are in. In autoloading schemes, they typically appear above their
package directory. We've been placing them inside the package directory. When converting to
namespaces in 5.3, I am not sure which behavior is best.
8 lines of code changed in 1 file:
Changed return value for createMethod, CreateFunction, and CreateClass
to return original scope, the same as the switchToXxxScope methods. This
allows these method calls to be used with the change to scope, change back
pattern. Since they returned the name they were passed, no real value is
lost.
27 lines of code changed in 2 files:
Added methods for discovering the current class, method or function.
84 lines of code changed in 1 file:
Cleaned up a few variable names to maintain function method distinction.
38 lines of code changed in 2 files:
Split SwitchScope method by type of scope.
132 lines of code changed in 2 files:
Split the concept of function into functions and methods to allow better
use of polymorphism.
246 lines of code changed in 2 files:
Consolodated code writer exception files into a single file.
331 lines of code changed in 3 files:
Enabled CodeWriter to return a scope reference that can be used later to switch the scope back.
114 lines of code changed in 2 files:
Reorganized CodeWriter test cases.
64 lines of code changed in 1 file:
Changed all create() and register() functions to consistently return (generated) names without any prefixes.
42 lines of code changed in 2 files:
Removed all variable and property name prependings for maximum flexibility.
26 lines of code changed in 2 files:
Added createTempVariable() proxy functions to WactClassCodeWriter and WactCodeWriter.
60 lines of code changed in 2 files:
Removed optional $cause parameter from many exceptions that do not use it.
29 lines of code changed in 7 files:
In WactBlockCodeWriter:
- removed getTempVariable() (integrated into getTempVarRef())
- renamed getTempVarRef() to createTempVariable()
In WactClassCodeWriter:
- renamed class variables to properties
- implemented createTempProperty()
- changed createProperty(), registerProperty() and createTempProperty() to return string references for use within class functions
In WactCodeWriter:
- added createTempProperty() that calls the appropriate function of the current WactClassCodeWriter scope
Improved comments, added tests.
289 lines of code changed in 4 files:
Added test cases tocover more code.
23 lines of code changed in 1 file:
Implemented basic member variable handling.
506 lines of code changed in 6 files:
Made WactCodeWriters function methods work inside the current scope if we are in class scope. Removed an unnecessary exception.
55 lines of code changed in 2 files:
Reworked includes: Added WactIncludeCodeWriter. Seperated getIncludes(), getIncludeCode(), getBlockCode() and getCode().
Clarified PHP/HTML context handling.
Improved documentation. Added more tests (98+ percent coverage).
354 lines of code changed in 2 files:
(10 more)