#pragma warning disable 1591 public string GenerateFrom(ILanguageElement languageElement) { var stringBuilder = new StringBuilder(); var textWriter = new StringWriter(stringBuilder); var writer = new CodeWriter(textWriter); languageElement.Write(writer); return stringBuilder.ToString(); }
#pragma warning disable 1591 public string GenerateFrom(ILanguageElement languageElement) { var stringBuilder = new StringBuilder(); var textWriter = new StringWriter(stringBuilder); var writer = new CodeWriter(textWriter); languageElement.Write(writer); return(stringBuilder.ToString()); }
/// <summary> /// Initializes a new instance of <see cref="VariantAssignment"/> /// </summary> /// <param name="name">Name of the accessor</param> /// <param name="value"><see cref="ILanguageElement">value</see> to assign</param> public AccessorAssignment(string name, ILanguageElement value = null) : base(name, value) { }
/// <summary> /// Initializes a new instance of <see cref="VariantAssignment"/> /// </summary> /// <param name="name">Name of the variant</param> /// <param name="value"><see cref="ILanguageElement">value</see> to assign</param> public VariantAssignment(string name, ILanguageElement value = null) : base(name, value) { }
/// <summary> /// Initializes a new instance of <see cref="KeyAssignment"/> /// </summary> /// <param name="key">Key to assign a value</param> /// <param name="value"><see cref="ILanguageElement"></see></param> public KeyAssignment(string key, ILanguageElement value = null) : base(key, value) { }
/// <summary> /// Initializes a new instance of <see cref="PropertyAssignment"/> /// </summary> /// <param name="name">Name of property to assign</param> /// <param name="value"><see cref="ILanguageElement">value</see> to assign</param> public PropertyAssignment(string name, ILanguageElement value = null) : base(name, value) { }
public void AddChild(ILanguageElement element) { element.Parent = this; Children.Add(element); }
/// <summary> /// Initializes a new instance of <see cref="VariantAssignment"/> /// </summary> /// <param name="name">Name of the variant</param> /// <param name="value"><see cref="ILanguageElement">value</see> to assign</param> public VariantAssignment(string name, ILanguageElement value = null) : base(name, value) { }
/// <summary> /// Initializes a new instance of <see cref="KeyAssignment"/> /// </summary> /// <param name="key">Key to assign a value</param> /// <param name="value"><see cref="ILanguageElement"></see></param> public KeyAssignment(string key, ILanguageElement value = null) : base(key, value) { }
public void AddChild(ILanguageElement element) { element.Parent = this; Children.Add(element); }
/// <summary> /// Initializes a new instance of <see cref="Assignment"/> /// </summary> /// <param name="name">Name of the assignment</param> /// <param name="value"><see cref="ILanguageElement">Value</see> to assign</param> public Assignment(string name, ILanguageElement value = null) { Name = name; Value = value; }
/// <summary> /// Initializes a new instance of <see cref="VariantAssignment"/> /// </summary> /// <param name="name">Name of the accessor</param> /// <param name="value"><see cref="ILanguageElement">value</see> to assign</param> public AccessorAssignment(string name, ILanguageElement value = null) : base(name, value) { }
/// <summary> /// Initializes a new instance of <see cref="Assignment"/> /// </summary> /// <param name="name">Name of the assignment</param> /// <param name="value"><see cref="ILanguageElement">Value</see> to assign</param> public Assignment(string name, ILanguageElement value = null) { Name = name; Value = value; }
/// <summary> /// Initializes a new instance of <see cref="PropertyAssignment"/> /// </summary> /// <param name="name">Name of property to assign</param> /// <param name="value"><see cref="ILanguageElement">value</see> to assign</param> public PropertyAssignment(string name, ILanguageElement value = null) : base(name, value) { }