Skip to content

Commit

Permalink
Merge pull request #37 from k--kato/#35
Browse files Browse the repository at this point in the history
fixed #35 Please add support for generic types restrains
  • Loading branch information
Keisuke KATO authored Feb 15, 2017
2 parents e2e6c76 + 9b9cde2 commit 8aa4af2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## 0.0.14 (February 15, 2017)

* bug fix - 3 Attributes bug. See [#34](https://github.com/k--kato/vscode-docomment/issues/34).
* bug fix - Please add support for generic types restrains. See [#35](https://github.com/k--kato/vscode-docomment/issues/35).

## 0.0.13 (January 31, 2017)

Expand Down
6 changes: 3 additions & 3 deletions src/Domain/Lang/DocommentDomainCSharp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ export class DocommentDomainCSharp extends DocommentDomain {
/* @override */
public GetCodeType(code: string): CodeType {

/* method */
if (SyntacticAnalysisCSharp.IsMethod(code)) return CodeType.Method;

/* namespace */
if (SyntacticAnalysisCSharp.IsNamespace(code)) return CodeType.Namespace;

Expand Down Expand Up @@ -107,9 +110,6 @@ export class DocommentDomainCSharp extends DocommentDomain {
/* field */
if (SyntacticAnalysisCSharp.IsField(code)) return CodeType.Field;

/* method */
if (SyntacticAnalysisCSharp.IsMethod(code)) return CodeType.Method;

/* comment */
if (SyntacticAnalysisCSharp.IsComment(code)) return CodeType.Comment;

Expand Down
1 change: 1 addition & 0 deletions test/TestData/X.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,6 @@ public void Testing2(string String1, string String2, string String3) : base() {
[AllowAnonymous]
[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 { }
}
}

0 comments on commit 8aa4af2

Please sign in to comment.