[DDMD] [refactor] Move doInlineStatement into a visitor class and rename to inlineAsStatement