lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nightowl...@apache.org
Subject [22/28] lucenenet git commit: Lucene.Net.Expressions.JS.JavascriptParser.TokenNames: added WritableArray and SuppressMessage attributes because it is an array property
Date Wed, 01 Feb 2017 10:22:19 GMT
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 <shad@shadstorhaug.com>
Authored: Wed Feb 1 16:57:54 2017 +0700
Committer: Shad Storhaug <shad@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; }


Mime
View raw message