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); }
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); }
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); }