public Resolver(Source source) { // Initialize DAX functions ternary tree DaxFunctions functions = new DaxFunctions(); foreach (var function in functions) { _declarationsTree.AddWord(function.Name, new Declaration() { Description = function.Description, DisplayText = function.Name, Glyph = 72, Name = function.Name }); } DaxKeywords keywords = new DaxKeywords(); foreach (var keywordDeclaration in keywords.GetDeclarations()) { _declarationsTree.AddWord(keywordDeclaration.Name, keywordDeclaration); } _declarationsTree.PrepareForSearch(); this._bismInfoPerovider = source.BismInfoProvider; }
public IList <Babel.Method> FindMethods(object result, int line, int col, string name) { var resultList = new List <Babel.Method>(); var functions = new DaxFunctions(); foreach (var func in functions) { if (string.Equals(name, func.Name, StringComparison.CurrentCultureIgnoreCase)) { var method = new Babel.Method() { Name = func.Name, Description = func.Description, Parameters = func.Parameters, }; resultList.Add(method); } } return(resultList); }