Example #1
0
 /// <summary>
 /// Enters the module.
 /// </summary>
 /// <param name="node">The node.</param>
 /// <returns></returns>
 public override bool EnterModule(Boo.Lang.Compiler.Ast.Module node)
 {
     currentModule = node.Name;
     if (moduleNameToContainedTypes.ContainsKey(currentModule) == false)
     {
         moduleNameToContainedTypes[currentModule] = new List <string>();
     }
     return(base.EnterModule(node));
 }
        protected string GetDocumentation(Boo.Lang.Compiler.Ast.Module module)
        {
            string doc = module.Documentation;

            if (null == module.Documentation)
            {
                Assert.Fail(string.Format("Test case '{0}' does not have a docstring!", module.LexicalInfo.FileName));
            }
            return(doc);
        }
Example #3
0
 public ModuleEntity(NameResolutionService nameResolutionService,
                     TypeSystemServices tagManager,
                     Boo.Lang.Compiler.Ast.Module module)
 {
     _nameResolutionService = nameResolutionService;
     _typeSystemServices    = tagManager;
     _module = module;
     if (null == module.Namespace)
     {
         _namespace = "";
     }
     else
     {
         _namespace = module.Namespace.Name;
     }
 }