private static void AddProperty(ClassSyntaxNode classNode, ScriptClassProperty property) { var propertyNode = new PropertySyntaxNode(property.Name, property.ValueType, property.GetterSourceCode, property.SetterSourceCode); classNode.AddSubNode(propertyNode); classNode.AddSubNode(new EmptyLineSyntaxNode()); }
private static void AddMethod(ClassSyntaxNode classNode, ScriptClassMethod method) { var methodNode = new MethodSyntaxNode(method.Name, method.SourceCode); classNode.AddSubNode(methodNode); classNode.AddSubNode(new EmptyLineSyntaxNode()); }
private static void AddRawContent(ClassSyntaxNode classNode, ScriptClassRawContent rawContent) { var rawContentNode = new RawContentSyntaxNode(rawContent.RawContent); classNode.AddSubNode(rawContentNode); }