Collect AST transform utilities to a separate file

Collect static functions that are used to create nodes in AST
transformations into a single file.

BUG=angleproject:1490
TEST=angle_unittests

Change-Id: I6f87422988fa088f2f4b48986e378a2909705cb7
diff --git a/src/compiler/translator/RemoveDynamicIndexing.cpp b/src/compiler/translator/RemoveDynamicIndexing.cpp
index 02b1112..06d77ca 100644
--- a/src/compiler/translator/RemoveDynamicIndexing.cpp
+++ b/src/compiler/translator/RemoveDynamicIndexing.cpp
@@ -11,6 +11,7 @@
 
 #include "compiler/translator/InfoSink.h"
 #include "compiler/translator/IntermNodePatternMatcher.h"
+#include "compiler/translator/IntermNode_util.h"
 #include "compiler/translator/IntermTraverse.h"
 #include "compiler/translator/SymbolTable.h"
 
@@ -94,7 +95,7 @@
 {
     TIntermSymbol *baseSymbol = CreateBaseSymbol(indexedType, baseQualifier);
     TIntermBinary *indexNode =
-        new TIntermBinary(EOpIndexDirect, baseSymbol, TIntermTyped::CreateIndexNode(index));
+        new TIntermBinary(EOpIndexDirect, baseSymbol, CreateIndexNode(index));
     return indexNode;
 }
 
@@ -199,8 +200,8 @@
     }
 
     std::string functionName                = GetIndexFunctionName(type, write);
-    TIntermFunctionPrototype *prototypeNode = TIntermTraverser::CreateInternalFunctionPrototypeNode(
-        returnType, functionName.c_str(), functionId);
+    TIntermFunctionPrototype *prototypeNode =
+        CreateInternalFunctionPrototypeNode(returnType, functionName.c_str(), functionId);
 
     TQualifier baseQualifier     = EvqInOut;
     if (!write)
@@ -352,8 +353,8 @@
 
     TType fieldType                = GetFieldType(node->getLeft()->getType());
     std::string functionName       = GetIndexFunctionName(node->getLeft()->getType(), false);
-    TIntermAggregate *indexingCall = TIntermTraverser::CreateInternalFunctionCallNode(
-        fieldType, functionName.c_str(), functionId, arguments);
+    TIntermAggregate *indexingCall =
+        CreateInternalFunctionCallNode(fieldType, functionName.c_str(), functionId, arguments);
     indexingCall->setLine(node->getLine());
     indexingCall->getFunctionSymbolInfo()->setKnownToNotHaveSideEffects(true);
     return indexingCall;
@@ -372,8 +373,8 @@
     arguments->push_back(writtenValue);
 
     std::string functionName           = GetIndexFunctionName(node->getLeft()->getType(), true);
-    TIntermAggregate *indexedWriteCall = TIntermTraverser::CreateInternalFunctionCallNode(
-        TType(EbtVoid), functionName.c_str(), functionId, arguments);
+    TIntermAggregate *indexedWriteCall =
+        CreateInternalFunctionCallNode(TType(EbtVoid), functionName.c_str(), functionId, arguments);
     indexedWriteCall->setLine(node->getLine());
     return indexedWriteCall;
 }