private void ComputeBinderMap() { SmallDictionary <SyntaxNode, Binder> map; if (_memberSymbol is SynthesizedSimpleProgramEntryPointSymbol entryPoint && _root == entryPoint.SyntaxNode) { var scopeOwner = new SimpleProgramBinder(this, entryPoint); map = LocalBinderFactory.BuildMap(_memberSymbol, _root, scopeOwner, _binderUpdatedHandler); map.Add(_root, scopeOwner); }
public SimpleProgramUnitBinder(Binder enclosing, SimpleProgramBinder scope) : base(enclosing, enclosing.Flags) { _scope = scope; }