Exemplo n.º 1
0
        private IResMemberLineDecl FindDirectMember(IResMemberSpec memberSpec)
        {
            IResMemberNameGroup mng = null;

            CachedMemberNameGroups.TryGetValue(memberSpec.Name, out mng);
            if (mng == null)
            {
                return(null);
            }

            var mcg = mng.FindCategoryGroup(memberSpec.Decl.Line.Category);

            if (mcg == null)
            {
                return(null);
            }

            foreach (var ml in mcg.Lines)
            {
                if (ml.OriginalLexicalID == memberSpec.Decl.Line.OriginalLexicalID)
                {
                    return(ml);
                }
            }

            return(null);
        }
Exemplo n.º 2
0
        public IResMemberNameGroup LookupDirectMembers(Identifier name)
        {
            IResMemberNameGroup result = null;

            CachedMemberNameGroups.TryGetValue(name, out result);
            return(result);
        }
Exemplo n.º 3
0
 public ResMemberNameGroupSpec(
     SourceRange range,
     IResContainerRef containerRef,
     IResMemberNameGroup decl)
 {
     _range        = range;
     _containerRef = containerRef;
     _decl         = decl;
 }