Example #1
0
        public FunctionSymbol?LookupFunction(string name)
        {
            FunctionSymbol?function = RootSourceFile.LookupFunction(name);

            if (function is not null)
            {
                return(function);
            }

            foreach (SourceFileSymbol file in ReferencedSourceFiles)
            {
                function = file.LookupFunction(name);
                if (function is not null)
                {
                    break;
                }
            }

            return(function);
        }
Example #2
0
        public ChapterSymbol?LookupChapter(string name)
        {
            ChapterSymbol?chapter = RootSourceFile.LookupChapter(name);

            if (chapter is not null)
            {
                return(chapter);
            }

            foreach (SourceFileSymbol file in ReferencedSourceFiles)
            {
                chapter = file.LookupChapter(name);
                if (chapter is not null)
                {
                    break;
                }
            }

            return(chapter);
        }
Example #3
0
        public SceneSymbol?LookupScene(string name)
        {
            SceneSymbol?scene = RootSourceFile.LookupScene(name);

            if (scene is not null)
            {
                return(scene);
            }

            foreach (SourceFileSymbol file in ReferencedSourceFiles)
            {
                scene = file.LookupScene(name);
                if (scene is not null)
                {
                    break;
                }
            }

            return(scene);
        }