public ALPackageSymbolsLibrary(ALExtensionProxy alExtensionProxy, string filePath) { this.ALExtensionProxy = alExtensionProxy; this.Path = filePath; this._packageFileCreationTime = DateTime.Now; this._packageFileLastWriteTime = DateTime.Now; this._packageFileSize = -1; }
static void Main(string[] args) { // The code provided will print ‘Hello World’ to the console. // Press Ctrl+F5 (or go to Debug > Start Without Debugging) to run your app. ALDevToolsServer server = new ALDevToolsServer("C:\\Users\\azwie\\.vscode\\extensions\\ms-dynamics-smb.al-4.0.209944"); ALExtensionProxy alExtensionProxy = server.ALExtensionProxy; //alExtensionProxy.Load(); CodeAnalyzersLibrary library = server.CodeAnalyzersLibraries.GetCodeAnalyzersLibrary("${AppSourceCop}"); //ALPackageSymbolsLibrary lib = new ALPackageSymbolsLibrary(alExtensionProxy, // "C:\\Projects\\Sandboxes\\samplealprojects\\big\\.alpackages\\Microsoft_Application_11.0.20901.0.app"); //lib.Load(false); ALSymbolInfoSyntaxTreeReader s = new ALSymbolInfoSyntaxTreeReader(alExtensionProxy); //ALSymbolInformation m = s.ProcessSourceFile("C:\\Projects\\Sandboxes\\ALProject5\\New Page.al"); //ALSymbolInformation m = s.ProcessSourceFile( // "C:\\Projects\\Sandboxes\\samplealprojects\\big\\ftest\\CardPageTest02.al"); ALSymbolInformation m = s.ProcessSourceFile( "C:\\Projects\\Sandboxes\\samplealprojects\\small\\tt1.al"); /* * DateTime t1 = DateTime.Now; * ALSymbolInfoPackageReader appPackageReader = new ALSymbolInfoPackageReader(alExtensionProxy); * ALAppPackage package = appPackageReader.ReadAppPackage("C:\\Projects\\Sandboxes\\samplealprojects\\big\\.alpackages\\Microsoft_Application_14.0.29581.0.app"); * DateTime t2 = DateTime.Now; * TimeSpan t = t2 - t1; * Console.WriteLine(t.TotalMilliseconds.ToString() + "ms"); * Console.WriteLine("Package " + package.Name); * if (package.Tables != null) * Console.WriteLine("Tables: " + package.Tables.Count.ToString()); * * ALSymbolInformation symbol = package.ToALSymbol(); */ ALPackageSymbolsCache packagesCache = new ALPackageSymbolsCache(alExtensionProxy); ALProjectSymbolsLibrary projectSymbols = new ALProjectSymbolsLibrary(packagesCache, alExtensionProxy, false, "C:\\Projects\\Sandboxes\\samplealprojects\\big", ".alpackages"); projectSymbols.Load(false); Console.WriteLine("Hello World!"); Console.ReadKey(); // Go to http://aka.ms/dotnet-get-started-console to continue learning how to build a console app! }
public ALProjectSymbolsLibrary(ALPackageSymbolsCache cache, ALExtensionProxy proxy, bool includeDependencies, string projectPath, string packagesFolder) { this.PackageSymbolsCache = cache; this.ALExtensionProxy = proxy; this.IncludeDependencies = includeDependencies; this.Path = projectPath; this.PackagesPath = System.IO.Path.Combine(this.Path, packagesFolder); this.Dependencies = new List <ALSymbolsLibrary>(); this.WorkspaceFolders = null; }
public ALPackageSymbolsCache(ALExtensionProxy alExtensionProxy) { this.ALExtensionProxy = alExtensionProxy; _cache = new Dictionary <string, ALPackageSymbolsLibrary>(); }
public ALSymbolInfoSyntaxTreeReader(ALExtensionProxy alExtensionProxy) { this.ALExtensionProxy = alExtensionProxy; }
public ALSymbolInfoPackageReader(ALExtensionProxy extensionProxy) { this.ALExtensionProxy = extensionProxy; }
public ALSyntaxTreesCollection(ALExtensionProxy alExtensionProxy) { this.SyntaxTrees = new Dictionary <string, ALSyntaxTree>(); this.SyntaxTreeReader = new ALSyntaxTreeSymbolsReader(alExtensionProxy); }