private void RegisterTag(IPythonProjectEntry entry, Dictionary<string, TagInfo> tags, string name, string documentation = null) { TagInfo tag; if (!tags.TryGetValue(name, out tag) || (String.IsNullOrWhiteSpace(tag.Documentation) && !String.IsNullOrEmpty(documentation))) { tags[name] = tag = new TagInfo(documentation, entry); if (entry != null && _hookedEntries.Add(entry)) { entry.OnNewParseTree += OnNewParseTree; } } }
public DjangoAnalyzer() { foreach (var tagName in _nestedEndTags) { _tags[tagName] = new TagInfo("", null); } }
public TestCompletionContext(string[] variables, string[] filters) { _variables = variables; _filters = new Dictionary<string, TagInfo>(); foreach (var filter in filters) { _filters[filter] = new TagInfo("", null); } }