PageRenderTime 51ms CodeModel.GetById 26ms RepoModel.GetById 1ms app.codeStats 0ms

/Dependencies/boo/src/Boo.Lang.Compiler/TypeSystem/Types.cs

https://github.com/w4x/boolangstudio
C# | 132 lines | 58 code | 49 blank | 25 comment | 0 complexity | 5d33a0d35d1a9c8d5ac3cd7686422281 MD5 | raw file
Possible License(s): GPL-2.0
  1. #region license
  2. // Copyright (c) 2004, 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. namespace Boo.Lang.Compiler.TypeSystem
  29. {
  30. using System;
  31. using System.Collections;
  32. using System.Text.RegularExpressions;
  33. using Boo.Lang.Runtime;
  34. public class Types
  35. {
  36. public static readonly Type RuntimeServices = typeof(RuntimeServices);
  37. public static readonly Type Builtins = typeof(Builtins);
  38. public static readonly Type List = typeof(List);
  39. public static readonly Type Hash = typeof(Hash);
  40. public static readonly Type ICallable = typeof(ICallable);
  41. public static readonly Type ICollection = typeof(ICollection);
  42. public static readonly Type IList = typeof(IList);
  43. public static readonly Type IDictionary = typeof(IDictionary);
  44. public static readonly Type IEnumerable = typeof(IEnumerable);
  45. public static readonly Type IEnumerator = typeof(IEnumerator);
  46. public static readonly Type Object = typeof(object);
  47. public static readonly Type Regex = typeof(Regex);
  48. public static readonly Type ValueType = typeof(ValueType);
  49. public static readonly Type Array = typeof(Array);
  50. public static readonly Type ObjectArray = Type.GetType("System.Object[]");
  51. public static readonly Type Void = typeof(void);
  52. public static readonly Type String = typeof(string);
  53. public static readonly Type Byte = typeof(byte);
  54. public static readonly Type SByte = typeof(sbyte);
  55. public static readonly Type Char = typeof(char);
  56. public static readonly Type Short = typeof(short);
  57. public static readonly Type Int = typeof(int);
  58. public static readonly Type Long = typeof(long);
  59. public static readonly Type UShort = typeof(ushort);
  60. public static readonly Type UInt = typeof(uint);
  61. public static readonly Type ULong = typeof(ulong);
  62. public static readonly Type TimeSpan = typeof(TimeSpan);
  63. public static readonly Type DateTime = typeof(DateTime);
  64. public static readonly Type Single = typeof(float);
  65. public static readonly Type Double = typeof(double);
  66. public static readonly Type Decimal = typeof(decimal);
  67. public static readonly Type Date = typeof(DateTime);
  68. public static readonly Type Bool = typeof(bool);
  69. public static readonly Type IntPtr = typeof(IntPtr);
  70. public static readonly Type UIntPtr = typeof(UIntPtr);
  71. public static readonly Type Type = typeof(Type);
  72. public static readonly Type MulticastDelegate = typeof(MulticastDelegate);
  73. public static readonly Type Delegate = typeof(Delegate);
  74. public static readonly Type DuckTypedAttribute = typeof(Boo.Lang.DuckTypedAttribute);
  75. public static readonly Type BooExtensionAttribute = typeof(Boo.Lang.ExtensionAttribute);
  76. public static readonly Type ClrExtensionAttribute = Type.GetType("System.Runtime.CompilerServices.ExtensionAttribute, System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089");
  77. public static readonly Type DllImportAttribute = typeof(System.Runtime.InteropServices.DllImportAttribute);
  78. public static readonly Type ModuleAttribute = typeof(System.Runtime.CompilerServices.CompilerGlobalScopeAttribute);
  79. public static readonly Type ParamArrayAttribute = typeof(ParamArrayAttribute);
  80. public static readonly Type DefaultMemberAttribute = typeof(System.Reflection.DefaultMemberAttribute);
  81. public static readonly Type Nullable = typeof(Nullable<>);
  82. }
  83. }