예제 #1
0
        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;
        }