I just checked in the sources for InlineTempRefactoring and its tests.
Also the extended expression parser ExpressionOperationMutator has been
added since it is needed for detecting assignments to local variables.
Please note that operators "++" and "--" are not recognized as assignment at
the moment (see InlineTemp - deactivated tests).
There are some things left for me to do:
- change the automatic check 'isAtomic' to be a hint for the user
- vc6-addin-integration of 'inline-temp'
- document ast-extensions for expression-operation-mutator
maybe:
- splitTempRefactoring use extended expression-parsing
- extend expression parsing for detecting nested assignments (in braces
or function-calls)
plus detection of the ++ and -- operators as assignments
- think about a seperate tokenizer instead of reuse of the
expressionmutator
(e.g. add feature TokenSet, checking for token sets)
-- Andre
|