Skip to content

Commit

Permalink
Fixed #52 that a wrong props case
Browse files Browse the repository at this point in the history
  • Loading branch information
kasecato committed Apr 4, 2018
1 parent bf1d795 commit a645848
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/SyntacticAnalysis/SyntacticAnalysisCSharp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export class SyntacticAnalysisCSharp {

public static IsProperty(code: string): boolean {
if (code === null) return false;
return code.match(/[\w\S]+[^)]?\b\s*{/) !== null;
return code.match(/[\w\S]+[^)]?(\b)?\s*{/) !== null;
}

public static IsField(code: string): boolean {
Expand Down
3 changes: 2 additions & 1 deletion test/TestData/X.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ public void Testing2(string String1, string String2, string String3) : base() {
[Route("{cameraId}/readings")]
public IActionResult GetReadingsForCamera(int[] cameraId, int[] offset, int[] limit, string orderBy) { return null; }
public string Test<T>(T obj) where T : class { }
public static BoolVector operator |(BoolScalar a, BoolVector b)
public static BoolVector operator |(BoolScalar a, BoolVector b) { }
public string[] ss = new string[2] { }
}
}

0 comments on commit a645848

Please sign in to comment.