コード例 #1
0
ファイル: BindingsVisitor.cs プロジェクト: zls3201/ajaxmin
 public void Visit(ModuleDeclaration node)
 {
     if (node != null && node.Binding != null)
     {
         m_bindings.Add(node.Binding);
     }
 }
コード例 #2
0
        public ModuleScope(ModuleDeclaration module, ActivationObject parent, CodeSettings settings)
            : base(parent, settings)
        {
            Owner     = module;
            UseStrict = true;
            ScopeType = ScopeType.Module;

            m_knownExports = new Dictionary <string, JSVariableField>();
        }
コード例 #3
0
 public void Visit(ModuleDeclaration node)
 {
     if (node != null)
     {
         // if there is a binding, then we shouldn't have a body so we will
         // need a terminator. If the binding is null, we will have a body,
         // but it might be null indicating an empty body; but we'll still output
         // the {} so we won't need a terminator.
         DoesRequire = node.Binding != null;
     }
 }
コード例 #4
0
        public override void Visit(ModuleDeclaration node)
        {
            if (node != null)
            {
                if (node.Body != null)
                {
                    // the module is an inline declration. Add it to the list of modules so we will
                    // recurse them later, AFTER this current scope has already been taken care of.
                    // AND DON'T RECURSE NOW
                    if (m_moduleDeclarations == null)
                    {
                        m_moduleDeclarations = new List <ModuleDeclaration>();
                    }

                    m_moduleDeclarations.Add(node);
                }
            }
        }
コード例 #5
0
 public void Visit(ModuleDeclaration node)
 {
     // starts with module, so we don't care
 }
コード例 #6
0
 public void Visit(ModuleDeclaration node)
 {
     DebugEx.Fail("shouldn't get here");
 }
コード例 #7
0
 public void Visit(ModuleDeclaration node)
 {
     // invalid! ignore
     IsValid = false;
 }