コード例 #1
0
 public TypeScriptMethod(string name, 
         List<TypeScriptField> arguments, 
         TypeScriptType returnType) :
     base(name) {
     this.IsMethod = true;
     this.Arguments = arguments;
     this.ReturnType = returnType;
 }
コード例 #2
0
 public TypeScriptClass(string name,
     TypeScriptType baseType,
     List<TypeScriptType> implementedInterfaces,
     List<TypeScriptField> fields, 
     List<TypeScriptProperty> properties) :
     base(name) { 
     this.IsClass = true;
     this.BaseType = baseType;
     this.ImplementedInterfaces = implementedInterfaces;
     this.Fields = fields;
     this.Properties = properties;
 }
コード例 #3
0
 public TypeScriptArray(string name, TypeScriptType type) :
     base(name) {
     this.IsArray = true;
     this.Type = type;
 }
コード例 #4
0
 public TypeScriptField(string name, object value, TypeScriptType type) :
     base(name) {
     this.IsField = true;
     this.Type = type;
     this.Value = value;
 }