internal static KBDAST ParseSourceIntoAST(Artech.Genexus.Common.Parts.ProcedurePart source) { /* if (source != null) * { * Stack stk; * ILanguageService parserSrv = Artech.Architecture.Common.Services.Services.GetService(new Guid("C26F529E-9A69-4df5-B825-9194BA3983A3")) as ILanguageService; * IParserEngine parser = parserSrv.CreateEngine(); * ParserInfo parserInfo = new ParserInfo(source); * foreach (TokenData token in parser.GetTokens(true, parserInfo, source.Source)) * { * if (token.Token >= 100) * { * //Command * List<TokensIds>[] IndentTokens = GetIndentationTokens() * } * else * { * //Token * * } * } * }*/ return(null); if (source != null) { Stack stk; ILanguageService parserSrv = Artech.Architecture.Common.Services.Services.GetService(new Guid("C26F529E-9A69-4df5-B825-9194BA3983A3")) as ILanguageService; IParserEngine parser = parserSrv.CreateEngine(); ParserInfo parserInfo = new ParserInfo(source); foreach (TokenData token in parser.GetTokens(true, parserInfo, source.Source)) { if (token.Token >= 100) { //Command List <TokensIds>[] IndentTokens = GetIndentationTokens(); } else { //Token } } } return(null); }