예제 #1
0
            public override bool Walk(FromImportStatement node)
            {
                var name = node.Root.MakeString();

                if (!_analyzer.IsModuleResolved(_entry, name, node.ForceAbsolute))
                {
                    Imports.Add(Tuple.Create(name, node.Root));
                }
                return(base.Walk(node));
            }
예제 #2
0
        public override bool Walk(FromImportStatement node)
        {
            var names = ModuleResolver.GetModuleNamesFromImport(_entry, node);

            foreach (var n in names)
            {
                if (!_analyzer.IsModuleResolved(_entry, n, node.ForceAbsolute))
                {
                    Diagnostics.Add(MakeUnresolvedImport(n, node.Root));
                }
            }
            return(base.Walk(node));
        }