public MySqlColumnDefinition LookupColumnDefinition(ParserRuleContext context) { var columnDeclaretionContext = context.Ascendant <ColumnDeclarationContext>(); var columnName = columnDeclaretionContext.GetColumnName(); var column = this.Columns.Where(x => x.Name == columnName).FirstOrDefault(); return(column); }