You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucenenet.apache.org by ni...@apache.org on 2017/02/01 10:22:19 UTC
[22/28] lucenenet git commit:
Lucene.Net.Expressions.JS.JavascriptParser.TokenNames: added WritableArray
and SuppressMessage attributes because it is an array property
Lucene.Net.Expressions.JS.JavascriptParser.TokenNames: added WritableArray and SuppressMessage attributes because it is an array property
Project: http://git-wip-us.apache.org/repos/asf/lucenenet/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucenenet/commit/ba13cf44
Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/ba13cf44
Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/ba13cf44
Branch: refs/heads/api-work
Commit: ba13cf44270dceb67299ef2cd0446ee06d60ff97
Parents: b8753ba
Author: Shad Storhaug <sh...@shadstorhaug.com>
Authored: Wed Feb 1 16:57:54 2017 +0700
Committer: Shad Storhaug <sh...@shadstorhaug.com>
Committed: Wed Feb 1 16:57:54 2017 +0700
----------------------------------------------------------------------
src/Lucene.Net.Expressions/JS/JavascriptParser.cs | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ba13cf44/src/Lucene.Net.Expressions/JS/JavascriptParser.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Expressions/JS/JavascriptParser.cs b/src/Lucene.Net.Expressions/JS/JavascriptParser.cs
index 6700990..0fea96c 100644
--- a/src/Lucene.Net.Expressions/JS/JavascriptParser.cs
+++ b/src/Lucene.Net.Expressions/JS/JavascriptParser.cs
@@ -1,8 +1,10 @@
// ANTLR GENERATED CODE: DO NOT EDIT (LUCENENET: Not really auto generated in the port)
-using System;
using Antlr.Runtime;
using Antlr.Runtime.Tree;
+using Lucene.Net.Support;
+using System;
+using System.Diagnostics.CodeAnalysis;
namespace Lucene.Net.Expressions.JS
{
@@ -128,7 +130,8 @@ namespace Lucene.Net.Expressions.JS
// delegators
-
+ [WritableArray]
+ [SuppressMessage("Microsoft.Performance", "CA1819", Justification = "Lucene's design requires some writable array properties")]
public override string[] TokenNames
{
get { return tokenNames; }