diff --git a/CodeCoverage.runsettings b/CodeCoverage.runsettings index 12529d305..6575840af 100644 --- a/CodeCoverage.runsettings +++ b/CodeCoverage.runsettings @@ -77,6 +77,8 @@ .*\\ExpressionAntlrParser.cs .*\\LGFileLexer.cs .*\\LGFileParser.cs + .*\\LGTemplateLexer.cs + .*\\LGTemplateParser.cs diff --git a/libraries/AdaptiveExpressions/parser/ExpressionAntlrLexer.g4 b/libraries/AdaptiveExpressions/parser/ExpressionAntlrLexer.g4 index 3758d022a..bd1e0f27f 100644 --- a/libraries/AdaptiveExpressions/parser/ExpressionAntlrLexer.g4 +++ b/libraries/AdaptiveExpressions/parser/ExpressionAntlrLexer.g4 @@ -1,5 +1,8 @@ lexer grammar ExpressionAntlrLexer; +@parser::header {#pragma warning disable 3021} // Disable StyleCop warning CS3021 re CLSCompliant attribute in generated files. +@lexer::header {#pragma warning disable 3021} // Disable StyleCop warning CS3021 re CLSCompliant attribute in generated files. + @lexer::members { bool ignoreWS = true; // usually we ignore whitespace, but inside stringInterpolation, whitespace is significant } diff --git a/libraries/AdaptiveExpressions/parser/ExpressionAntlrParser.g4 b/libraries/AdaptiveExpressions/parser/ExpressionAntlrParser.g4 index fe67ef460..7c5c3ef04 100644 --- a/libraries/AdaptiveExpressions/parser/ExpressionAntlrParser.g4 +++ b/libraries/AdaptiveExpressions/parser/ExpressionAntlrParser.g4 @@ -1,5 +1,8 @@ parser grammar ExpressionAntlrParser; +@parser::header {#pragma warning disable 3021} // Disable StyleCop warning CS3021 re CLSCompliant attribute in generated files. +@lexer::header {#pragma warning disable 3021} // Disable StyleCop warning CS3021 re CLSCompliant attribute in generated files. + options { tokenVocab=ExpressionAntlrLexer; } file: expression EOF; diff --git a/libraries/AdaptiveExpressions/parser/ExpressionParser.cs b/libraries/AdaptiveExpressions/parser/ExpressionParser.cs index 4addf0b15..97639f9ee 100644 --- a/libraries/AdaptiveExpressions/parser/ExpressionParser.cs +++ b/libraries/AdaptiveExpressions/parser/ExpressionParser.cs @@ -13,8 +13,6 @@ using Antlr4.Runtime.Misc; using Antlr4.Runtime.Tree; using Newtonsoft.Json.Linq; -[assembly: CLSCompliant(false)] - namespace AdaptiveExpressions { /// diff --git a/libraries/Microsoft.Bot.Builder.LanguageGeneration/Analyzer.cs b/libraries/Microsoft.Bot.Builder.LanguageGeneration/Analyzer.cs index 0e2bddd2a..1afe3b3e0 100644 --- a/libraries/Microsoft.Bot.Builder.LanguageGeneration/Analyzer.cs +++ b/libraries/Microsoft.Bot.Builder.LanguageGeneration/Analyzer.cs @@ -12,7 +12,7 @@ namespace Microsoft.Bot.Builder.LanguageGeneration /// /// LG template analyzer. /// - public class Analyzer : LGFileParserBaseVisitor + public class Analyzer : LGTemplateParserBaseVisitor { private readonly Dictionary templateMap; @@ -23,8 +23,8 @@ namespace Microsoft.Bot.Builder.LanguageGeneration /// /// Initializes a new instance of the class. /// - /// template list. - /// expression parser. + /// Template list. + /// Expression parser. public Analyzer(List