public void Visit(ModuleDeclaration node) { if (node != null && node.Binding != null) { m_bindings.Add(node.Binding); } }
public ModuleScope(ModuleDeclaration module, ActivationObject parent, CodeSettings settings) : base(parent, settings) { Owner = module; UseStrict = true; ScopeType = ScopeType.Module; m_knownExports = new Dictionary <string, JSVariableField>(); }
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; } }
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); } } }
public void Visit(ModuleDeclaration node) { // starts with module, so we don't care }
public void Visit(ModuleDeclaration node) { DebugEx.Fail("shouldn't get here"); }
public void Visit(ModuleDeclaration node) { // invalid! ignore IsValid = false; }