public void Add(RawStatements values) { if (values != null) { Add(values.Statements); } }
public EnumMember(string name, int?value) { Name = name; if (value != null) { Value = new RawStatements(value.ToString()); } }
public static bool IsSame(this RawStatements r1, RawStatements r2) { if (r1 == null || r2 == null) { return(r1 == r2); } return(Enumerable.SequenceEqual(r1.Statements, r2.Statements, new RawStatementEqualityComparer())); }
public void Generate(RawStatements raw) { foreach (var item in raw.Statements) { if (item is RawStatement) { Formatter.Write(((RawStatement)item).Content); } else if (item is RawStatementTypeReference) { Generate(((RawStatementTypeReference)item).TypeReference); } else { throw new ArgumentOutOfRangeException(); } } }
public RawDeclarationMember(RawStatements raw) { Raw = raw; }
public FunctionMember(string name, RawStatements body) : base(name) { Body = body; }
public TypescriptTypeReference(RawStatements raw) : this() { Raw = raw; }