Ejemplo n.º 1
0
        private IAnalysisSet DictionaryItems(Node node, Analysis.AnalysisUnit unit, IAnalysisSet[] args, NameExpression[] keywordArgNames)
        {
            _keysAndValues.AddDependency(unit);

            if (_itemsList == null)
            {
                _itemsList = new ListInfo(
                    new[] { KeyValueTupleVariable },
                    unit.ProjectState.ClassInfos[BuiltinTypeId.List],
                    node,
                    unit.ProjectEntry
                    );
            }

            return(_itemsList);
        }
Ejemplo n.º 2
0
        private IAnalysisSet DictionaryValues(Node node, Analysis.AnalysisUnit unit, IAnalysisSet[] args, NameExpression[] keywordArgNames) {
            _keysAndValues.AddDependency(unit);

            if (_valuesList == null) {
                _valuesList = new ListInfo(
                    new[] { ValuesVariable },
                    unit.ProjectState.ClassInfos[BuiltinTypeId.List],
                    node,
                    unit.ProjectEntry
                );
            }
            return _valuesList;
        }
 public ListPopBoundBuiltinMethodInfo(ListInfo list, BuiltinMethodInfo method)
     : base(method)
 {
     _list = list;
 }