Directory trunk/wact/compiler/codewriter/

Directory Created:
2006-10-23 16:54
Directory Deleted:
2009-05-23 18:04
Total Files:
0
Deleted Files:
28
Lines of Code:
0

[root]/trunk/wact/compiler/codewriter

Lines of Code

trunk/wact/compiler/codewriter/ Lines of Code

Developers

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

Most Recent Commits

JeffMoore 2009-05-23 18:04 Rev.: 954

convert filename case

0 lines of code changed in 28 files:

  • trunk/wact/compiler/codewriter: block.inc.php (del), block.test.php (del), class.inc.php (del), classexists.test.php (del), classexists.xcpt.php (del), classnotfound.test.php (del), classnotfound.xcpt.php (del), codewriter.inc.php (del), codewriter.test.php (del), codewriter.xcpt.php (del), codewriter.xcpt.test.php (del), exception.inc.php (del), file.inc.php (del), function.inc.php (del), functionexists.test.php (del), functionexists.xcpt.php (del), functionnotfound.test.php (del), functionnotfound.xcpt.php (del), invalidscope.test.php (del), invalidscope.xcpt.php (del), nofunctionspecified.test.php (del), nofunctionspecified.xcpt.php (del), noscopespecified.test.php (del), noscopespecified.xcpt.php (del), propertyexists.test.php (del), propertyexists.xcpt.php (del), variableexists.test.php (del), variableexists.xcpt.php (del)
JeffMoore 2008-05-04 05:28 Rev.: 672

Changed base exception to introduce sprintf like capability.

79 lines of code changed in 3 files:

  • trunk/wact/compiler/codewriter: codewriter.inc.php (+34 -52), codewriter.test.php (+24 -24), exception.inc.php (new 21)
JeffMoore 2008-03-29 16:21 Rev.: 667

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:

  • trunk/wact/compiler/codewriter: codewriter.xcpt.php (+8 -8)
JeffMoore 2007-10-21 22:30 Rev.: 597

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:

  • trunk/wact/compiler/codewriter: codewriter.inc.php (+18 -6), codewriter.test.php (+9 -9)
JeffMoore 2007-10-21 21:39 Rev.: 596

Added methods for discovering the current class, method or function.

84 lines of code changed in 1 file:

  • trunk/wact/compiler/codewriter: codewriter.inc.php (+84)
JeffMoore 2007-10-21 21:31 Rev.: 595

Cleaned up a few variable names to maintain function method distinction.

38 lines of code changed in 2 files:

  • trunk/wact/compiler/codewriter: codewriter.inc.php (+2 -2), codewriter.test.php (+36 -36)
JeffMoore 2007-10-21 21:19 Rev.: 594

Split SwitchScope method by type of scope.

132 lines of code changed in 2 files:

  • trunk/wact/compiler/codewriter: codewriter.inc.php (+96 -52), codewriter.test.php (+36 -36)
JeffMoore 2007-10-21 20:29 Rev.: 593

Split the concept of function into functions and methods to allow better
use of polymorphism.

246 lines of code changed in 2 files:

  • trunk/wact/compiler/codewriter: codewriter.inc.php (+214 -113), codewriter.test.php (+32 -39)
JeffMoore 2007-10-21 18:44 Rev.: 592

Consolodated code writer exception files into a single file.

331 lines of code changed in 3 files:

  • trunk/wact/compiler/codewriter: codewriter.inc.php (+18 -18), codewriter.xcpt.php (new 202), codewriter.xcpt.test.php (new 111)
norbertmocsnik 2007-04-14 21:40 Rev.: 438

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:

  • trunk/wact/compiler/codewriter: codewriter.inc.php (+45 -3), codewriter.test.php (+69)
norbertmocsnik 2006-12-16 02:50 Rev.: 313

Reorganized CodeWriter test cases.

64 lines of code changed in 1 file:

  • trunk/wact/compiler/codewriter: codewriter.test.php (+64 -3)
norbertmocsnik 2006-12-16 02:18 Rev.: 312

Changed all create() and register() functions to consistently return (generated) names without any prefixes.

42 lines of code changed in 2 files:

  • trunk/wact/compiler/codewriter: codewriter.inc.php (+25 -23), codewriter.test.php (+17 -7)
norbertmocsnik 2006-12-16 01:43 Rev.: 311

Removed all variable and property name prependings for maximum flexibility.

26 lines of code changed in 2 files:

  • trunk/wact/compiler/codewriter: codewriter.inc.php (+13 -14), codewriter.test.php (+13 -13)
norbertmocsnik 2006-12-16 01:12 Rev.: 310

Added createTempVariable() proxy functions to WactClassCodeWriter and WactCodeWriter.

60 lines of code changed in 2 files:

  • trunk/wact/compiler/codewriter: codewriter.inc.php (+25), codewriter.test.php (+35)
JeffMoore 2006-11-13 03:07 Rev.: 303

Removed optional $cause parameter from many exceptions that do not use it.

29 lines of code changed in 7 files:

  • trunk/wact/compiler/codewriter: classexists.xcpt.php (+5 -4), classnotfound.xcpt.php (+5 -4), functionexists.xcpt.php (+5 -4), functionnotfound.xcpt.php (+5 -4), invalidscope.xcpt.php (+2 -4), noscopespecified.xcpt.php (+2 -4), propertyexists.xcpt.php (+5 -4)
norbertmocsnik 2006-11-03 22:20 Rev.: 277

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:

  • trunk/wact/compiler/codewriter: codewriter.inc.php (+113 -76), codewriter.test.php (+104 -77), propertyexists.test.php (new 21), propertyexists.xcpt.php (new 51)
norbertmocsnik 2006-11-01 12:43 Rev.: 267

Added test cases tocover more code.

23 lines of code changed in 1 file:

  • trunk/wact/compiler/codewriter: codewriter.test.php (+23)
norbertmocsnik 2006-10-31 19:32 Rev.: 266

Implemented basic member variable handling.

506 lines of code changed in 6 files:

  • trunk/wact/compiler/codewriter: codewriter.inc.php (+220), codewriter.test.php (+158), invalidscope.test.php (new 18), invalidscope.xcpt.php (new 38), variableexists.test.php (new 21), variableexists.xcpt.php (new 51)
norbertmocsnik 2006-10-31 16:04 Rev.: 264

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:

  • trunk/wact/compiler/codewriter: codewriter.inc.php (+52 -26), codewriter.test.php (+3 -6)
norbertmocsnik 2006-10-31 02:50 Rev.: 262

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:

  • trunk/wact/compiler/codewriter: codewriter.inc.php (+219 -134), codewriter.test.php (+135 -23)

(10 more)

Generated by StatSVN 0.4.0