PageRenderTime 49ms CodeModel.GetById 22ms RepoModel.GetById 0ms app.codeStats 0ms

/Dependencies/boo/src/Boo.Lang.Compiler/Ast/Impl/DoubleLiteralExpressionImpl.cs

https://github.com/w4x/boolangstudio
C# | 150 lines | 94 code | 26 blank | 30 comment | 9 complexity | 801b0fa38503e9904e0dec435b771def MD5 | raw file
Possible License(s): GPL-2.0
  1. #region license
  2. // Copyright (c) 2003, 2004, 2005 Rodrigo B. de Oliveira (rbo@acm.org)
  3. // All rights reserved.
  4. //
  5. // Redistribution and use in source and binary forms, with or without modification,
  6. // are permitted provided that the following conditions are met:
  7. //
  8. // * Redistributions of source code must retain the above copyright notice,
  9. // this list of conditions and the following disclaimer.
  10. // * Redistributions in binary form must reproduce the above copyright notice,
  11. // this list of conditions and the following disclaimer in the documentation
  12. // and/or other materials provided with the distribution.
  13. // * Neither the name of Rodrigo B. de Oliveira nor the names of its
  14. // contributors may be used to endorse or promote products derived from this
  15. // software without specific prior written permission.
  16. //
  17. // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
  18. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
  19. // WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  20. // DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
  21. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  22. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
  23. // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
  24. // CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  25. // OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  26. // THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  27. #endregion
  28. //
  29. // DO NOT EDIT THIS FILE!
  30. //
  31. // This file was generated automatically by astgen.boo.
  32. //
  33. namespace Boo.Lang.Compiler.Ast
  34. {
  35. using System.Collections;
  36. using System.Runtime.Serialization;
  37. [System.Serializable]
  38. public partial class DoubleLiteralExpression : LiteralExpression
  39. {
  40. protected double _value;
  41. protected bool _isSingle;
  42. [System.CodeDom.Compiler.GeneratedCodeAttribute("astgen.boo", "1")]
  43. new public DoubleLiteralExpression CloneNode()
  44. {
  45. return Clone() as DoubleLiteralExpression;
  46. }
  47. [System.CodeDom.Compiler.GeneratedCodeAttribute("astgen.boo", "1")]
  48. override public NodeType NodeType
  49. {
  50. get
  51. {
  52. return NodeType.DoubleLiteralExpression;
  53. }
  54. }
  55. [System.CodeDom.Compiler.GeneratedCodeAttribute("astgen.boo", "1")]
  56. override public void Accept(IAstVisitor visitor)
  57. {
  58. visitor.OnDoubleLiteralExpression(this);
  59. }
  60. [System.CodeDom.Compiler.GeneratedCodeAttribute("astgen.boo", "1")]
  61. override public bool Matches(Node node)
  62. {
  63. DoubleLiteralExpression other = node as DoubleLiteralExpression;
  64. if (null == other) return false;
  65. if (_value != other._value) return NoMatch("DoubleLiteralExpression._value");
  66. if (_isSingle != other._isSingle) return NoMatch("DoubleLiteralExpression._isSingle");
  67. return true;
  68. }
  69. [System.CodeDom.Compiler.GeneratedCodeAttribute("astgen.boo", "1")]
  70. override public bool Replace(Node existing, Node newNode)
  71. {
  72. if (base.Replace(existing, newNode))
  73. {
  74. return true;
  75. }
  76. return false;
  77. }
  78. [System.CodeDom.Compiler.GeneratedCodeAttribute("astgen.boo", "1")]
  79. override public object Clone()
  80. {
  81. DoubleLiteralExpression clone = (DoubleLiteralExpression)FormatterServices.GetUninitializedObject(typeof(DoubleLiteralExpression));
  82. clone._lexicalInfo = _lexicalInfo;
  83. clone._endSourceLocation = _endSourceLocation;
  84. clone._documentation = _documentation;
  85. if (_annotations != null) clone._annotations = (Hashtable)_annotations.Clone();
  86. clone._expressionType = _expressionType;
  87. clone._value = _value;
  88. clone._isSingle = _isSingle;
  89. return clone;
  90. }
  91. [System.CodeDom.Compiler.GeneratedCodeAttribute("astgen.boo", "1")]
  92. override internal void ClearTypeSystemBindings()
  93. {
  94. _annotations = null;
  95. _expressionType = null;
  96. }
  97. [System.Xml.Serialization.XmlElement]
  98. [System.CodeDom.Compiler.GeneratedCodeAttribute("astgen.boo", "1")]
  99. public double Value
  100. {
  101. get
  102. {
  103. return _value;
  104. }
  105. set
  106. {
  107. _value = value;
  108. }
  109. }
  110. [System.Xml.Serialization.XmlElement]
  111. [System.CodeDom.Compiler.GeneratedCodeAttribute("astgen.boo", "1")]
  112. public bool IsSingle
  113. {
  114. get
  115. {
  116. return _isSingle;
  117. }
  118. set
  119. {
  120. _isSingle = value;
  121. }
  122. }
  123. }
  124. }