Example #1
0
        private IAnalysisSet ContextClassProcessor(Node node, AnalysisUnit unit, IAnalysisSet[] args, NameExpression[] keywordArgNames) {
            var dict = GetArg(args, keywordArgNames, "dict_", 0);
            if (dict != null && dict.Any()) {
                ContextMarker contextValue;

                if (!_contextTable.TryGetValue(node, out contextValue)) {
                    contextValue = new ContextMarker();

                    _contextTable.Add(node, contextValue);
                }

                contextValue.Arguments.UnionWith(dict);
                return contextValue;
            }

            return AnalysisSet.Empty;
        }
Example #2
0
        private IAnalysisSet ContextClassProcessor(Node node, AnalysisUnit unit, IAnalysisSet[] args, NameExpression[] keywordArgNames) {
            var dict = GetArg(args, keywordArgNames, "dict_", 0);
            if (dict != null && dict.Any()) {
                ContextMarker contextValue;

                if (!_contextTable.TryGetValue(node, out contextValue)) {
                    contextValue = new ContextMarker();

                    _contextTable.Add(node, contextValue);
                }

                contextValue.Arguments.UnionWith(dict);
                return contextValue;
            }

            return AnalysisSet.Empty;
        }