public Binding Bind(string symbol, BindingRequestFlags options) {
   var request = new BindingRequest(this, CurrentNode, symbol, options);
   var binding = Bind(request); 
   if (binding == null)
     ThrowScriptError("Unknown symbol '{0}'.", symbol); 
   return binding; 
 }
Esempio n. 2
0
 public BindingRequest(ScriptThread thread, AstNode fromNode, string symbol, BindingRequestFlags flags) {
   Thread = thread;
   FromNode = fromNode;
   FromModule = thread.App.DataMap.GetModule(fromNode.ModuleNode);
   Symbol = symbol;
   Flags = flags;
   FromScopeInfo = thread.CurrentScope.Info;
   IgnoreCase = !thread.Runtime.Language.Grammar.CaseSensitive;
 }
Esempio n. 3
0
 public BindingRequest(ScriptThread thread, AstNode fromNode, string symbol, TypeInfo type, BindingRequestFlags flags)
 {
     Thread        = thread;
     FromNode      = fromNode;
     Symbol        = symbol;
     Type          = type;
     Flags         = flags;
     FromScopeInfo = thread.CurrentScope.ScopeInfo;
 }
Esempio n. 4
0
 public BindingRequest(ScriptThread thread, AstNode fromNode, string symbol, BindingRequestFlags flags)
 {
     Thread        = thread;
     FromNode      = fromNode;
     FromModule    = thread.App.DataMap.GetModule(fromNode.ModuleNode);
     Symbol        = symbol;
     Flags         = flags;
     FromScopeInfo = thread.CurrentScope.Info;
     IgnoreCase    = !thread.Runtime.Language.Grammar.CaseSensitive;
 }
Esempio n. 5
0
        public Binding Bind(string symbol, BindingRequestFlags options)
        {
            var request = new BindingRequest(this, CurrentNode, symbol, options);
            var binding = Bind(request);

            if (binding == null)
            {
                ThrowScriptError("Unknown symbol '{0}'.", symbol);
            }
            return(binding);
        }
Esempio n. 6
0
 public static bool IsSet(this BindingRequestFlags enumValue, BindingRequestFlags flag)
 {
     return((enumValue & flag) != 0);
 }
Esempio n. 7
0
 public static bool IsSet(this BindingRequestFlags enumValue, BindingRequestFlags flag)
 {
     return (enumValue & flag) != 0;
 }