Used to delcare constants that exist in a given scope.
Inheritance: DebugInst
Exemple #1
0
        /// <summary>
        /// Add a constant to this scope.
        /// </summary>
        /// <param name="name">The name of the constant.</param>
        /// <param name="value">The value of the constant.</param>
        /// <param name="type">The type of the constant.</param>
        /// <returns>The ConstantBinding object for the new constant.</returns>
        internal ConstantBinding AddConstantBinding(string name, object value, Type type)
        {
            ConstantBinding binding;
               if ((binding = FindConstantBinding(name)) != null)
               return binding;

               binding = new ConstantBinding(name, value, type, _thisMeth.locToken);
               _constantBindings.Add(binding);
               return binding;
        }