Esempio n. 1
0
        /// <summary>
        /// Method called by the compiler (at compile time) to provide information about the static context of the
        /// function call. The implementation may retain this information for use at run-time, if the result of the
        /// function depends on information in the static context.
        /// </summary>
        /// <remarks>
        /// For efficiency, the implementation should only retain copies of the information that it actually needs. It
        /// is not a good idea to hold a reference to the static context itself, since that can result in a great deal of
        /// compile-time information being locked into memory during run-time execution.
        /// </remarks>
        /// <param name="context">Information about the static context in which the function is called</param>

        public virtual void SupplyStaticContext(StaticContext context)
        {
            // default: no action
        }
Esempio n. 2
0
        public override void supplyStaticContext(JStaticContext context, int locationId, JExpression[] arguments)
        {
            StaticContext sc = new StaticContext(context);

            functionCall.SupplyStaticContext(sc);
        }
Esempio n. 3
0
 public override void supplyStaticContext(JStaticContext context, int locationId, JExpression[] arguments)
 {
     StaticContext sc = new StaticContext(context);
     functionCall.SupplyStaticContext(sc);
 }
Esempio n. 4
0
 public override void SupplyStaticContext(StaticContext context)
 {
     defaultNamespace = context.GetNamespaceForPrefix("");
 }
Esempio n. 5
0
 /// <summary>
 /// Method called by the compiler (at compile time) to provide information about the static context of the
 /// function call. The implementation may retain this information for use at run-time, if the result of the
 /// function depends on information in the static context.
 /// </summary>
 /// <remarks>
 /// For efficiency, the implementation should only retain copies of the information that it actually needs. It
 /// is not a good idea to hold a reference to the static context itself, since that can result in a great deal of
 /// compile-time information being locked into memory during run-time execution.
 /// </remarks>
 /// <param name="context">Information about the static context in which the function is called</param>
 public virtual void SupplyStaticContext(StaticContext context)
 {
     // default: no action
 }