コード例 #1
0
        public override IAnalysisSet Get(Node node, AnalysisUnit unit, string name, bool addRef = true)
        {
            switch (name)
            {
            case "value":
                if (Values != null)
                {
                    return(Values.GetTypes(unit, _projectEntry));
                }
                break;

            case "get":
                if (Getter != null)
                {
                    return(Getter.GetTypes(unit, _projectEntry));
                }
                break;

            case "set":
                if (Setter != null)
                {
                    return(Setter.GetTypes(unit, _projectEntry));
                }
                break;

            case "writable":
            case "enumerable":
            case "configurable":
                return(unit.Analyzer._trueInst.SelfSet);
            }
            return(AnalysisSet.Empty);
        }