예제 #1
0
        private void CreateImmutableMaps()
        {
            if (lazyImmutableWikiEntrySourcePathMap == null && lazyImmutableWikiEntryWikiUrlMap == null)
            {
                // create immutable map from source map
                ImmutableMapCreationVisitor visitor = new ImmutableMapCreationVisitor();

                rootDirectory.Accept(visitor);

                lazyImmutableWikiEntrySourcePathMap = visitor.CreateFinalSourcePathMap();
                lazyImmutableWikiEntryWikiUrlMap    = visitor.CreateFinalWikiUrlMap();
            }
        }
예제 #2
0
파일: WikiModel.cs 프로젝트: sbyse/icklewik
        private void CreateImmutableMaps()
        {
            if (lazyImmutableWikiEntrySourcePathMap == null && lazyImmutableWikiEntryWikiUrlMap == null)
            {
                // create immutable map from source map
                ImmutableMapCreationVisitor visitor = new ImmutableMapCreationVisitor();

                rootDirectory.Accept(visitor);

                lazyImmutableWikiEntrySourcePathMap = visitor.CreateFinalSourcePathMap();
                lazyImmutableWikiEntryWikiUrlMap = visitor.CreateFinalWikiUrlMap();
            }
        }