partsList = nodeFactory.argumentList(partsList, literalField);
}
//Create literalObject with key/value pairs
TypeExpressionNode typeExpression = AbstractSyntaxTreeUtil.generateTypeExpression(nodeFactory, OBJECT, true);
LiteralObjectNode literalObject = nodeFactory.literalObject(partsList);
//And finally our completed _skinPart AST
VariableDefinitionNode skinParts = (VariableDefinitionNode)AbstractSyntaxTreeUtil.generatePrivateStaticVariable(currentContext, typeExpression, _SKINPARTS, literalObject);
//Signature for getter that takes no parameters (of course) and returns an Object
MemberExpressionNode returnTypeExpression = AbstractSyntaxTreeUtil.generateGetterSelector(nodeFactory, OBJECT, true);
TypeExpressionNode returnType = nodeFactory.typeExpression(returnTypeExpression, true, false, -1);
FunctionSignatureNode functionSignature = nodeFactory.functionSignature(null, returnType);
//generate <ClassName>._skinParts
IdentifierNode identifier = AbstractSyntaxTreeUtil.generateIdentifier(nodeFactory, _SKINPARTS, false);
GetExpressionNode selector = nodeFactory.getExpression(identifier);