-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathChangeLog
More file actions
101 lines (61 loc) · 2.86 KB
/
ChangeLog
File metadata and controls
101 lines (61 loc) · 2.86 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
Notable changes of the pelet library
====================================
Current Version: 2.0
version 2.0
===========
Change 1:
The variable observer now gets two items; a variable and an expression. The observer method signature has changed
from
VariableFound(const UnicodeString& namespaceName, const UnicodeString& className, const UnicodeString& methodName,
const pelet::SymbolClass& symbol, const UnicodeString& comment);
to
VariableFound(const UnicodeString& namespaceName, const UnicodeString& className, const UnicodeString& methodName,
const pelet::VariableClass& variable, const pelet::ExpressionClass& expression, const UnicodeString& comment);
The previous SymbolClass was not capable of representing both sides of an assignment expression in a sane manner.
The new classes (VariableClass and ExpressionClass) make it possible for users of the library to figure out any
hard-coded array keys or assigned array keys. For example, a user is now able to inspect a file of PHP
source code and list all array keys that are used in a file.
Change 2:
The way to acquire the starting and ending positions of method / function bodies has changed from
class ClassMemberObserverClass {
// ....
virtual void MethodEnd(const UnicodeString& namespaceName, const UnicodeString& className,
const UnicodeString& methodName, int pos) { }
// ...
}
class FunctionObserverClass {
//...
virtual void FunctionEnd(const UnicodeString& namespaceName, const UnicodeString& functionName, int pos) { }
//...
}
to
class ClassMemberObserverClass {
// ....
virtual void MethodScope(const UnicodeString& namespaceName, const UnicodeString& className,
const UnicodeString& methodName, int startingPos, int endingPos) { }
// ...
}
class FunctionObserverClass {
//...
virtual void FunctionScope(const UnicodeString& namespaceName, const UnicodeString& functionName, int startingPos, int endingPos) { }
//...
}
This was done to make it easier to know where the function body begins and ends
Because of these changes; the Observers will only get notified when a file has been successfully parsed.
Change 3:
The way to acquire the starting and ending positions of method / function bodies has changed from
class ClassObserverClass {
// ....
virtual void NamespaceDeclarationFound(const UnicodeString& namespaceName) { }
// ...
}
to
class ClassObserverClass {
// ....
virtual void NamespaceDeclarationFound(const UnicodeString& namespaceName, int startingPos) { }
// ...
}
This was done to make it easier to know where the namespace body begins and ends
version 1.0
============
Initial version; full PHP 5.3 and PHP 5.4 support