示例#1
0
        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);
            }
示例#2
0
 public SimpleProgramUnitBinder(Binder enclosing, SimpleProgramBinder scope)
     : base(enclosing, enclosing.Flags)
 {
     _scope = scope;
 }