|
|
|
@ -10,10 +10,10 @@ namespace CppSharp.AST |
|
|
|
{ |
|
|
|
{ |
|
|
|
// Invalid comment.
|
|
|
|
// Invalid comment.
|
|
|
|
Invalid, |
|
|
|
Invalid, |
|
|
|
// Any normal BCPL comments.
|
|
|
|
// "// stuff"
|
|
|
|
OrdinaryBCPL, |
|
|
|
BCPL, |
|
|
|
// Any normal C comment.
|
|
|
|
// "/* stuff */"
|
|
|
|
OrdinaryC, |
|
|
|
C, |
|
|
|
// "/// stuff"
|
|
|
|
// "/// stuff"
|
|
|
|
BCPLSlash, |
|
|
|
BCPLSlash, |
|
|
|
// "//! stuff"
|
|
|
|
// "//! stuff"
|
|
|
|
@ -80,8 +80,8 @@ namespace CppSharp.AST |
|
|
|
{ |
|
|
|
{ |
|
|
|
get |
|
|
|
get |
|
|
|
{ |
|
|
|
{ |
|
|
|
return Kind == CommentKind.OrdinaryBCPL || |
|
|
|
return Kind == CommentKind.BCPL || |
|
|
|
Kind == CommentKind.OrdinaryC; |
|
|
|
Kind == CommentKind.C; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@ -131,10 +131,10 @@ namespace CppSharp.AST |
|
|
|
{ |
|
|
|
{ |
|
|
|
switch (kind) |
|
|
|
switch (kind) |
|
|
|
{ |
|
|
|
{ |
|
|
|
case CommentKind.OrdinaryBCPL: |
|
|
|
case CommentKind.BCPL: |
|
|
|
case CommentKind.BCPLExcl: |
|
|
|
case CommentKind.BCPLExcl: |
|
|
|
return "//"; |
|
|
|
return "//"; |
|
|
|
case CommentKind.OrdinaryC: |
|
|
|
case CommentKind.C: |
|
|
|
case CommentKind.JavaDoc: |
|
|
|
case CommentKind.JavaDoc: |
|
|
|
case CommentKind.Qt: |
|
|
|
case CommentKind.Qt: |
|
|
|
return " *"; |
|
|
|
return " *"; |
|
|
|
@ -149,10 +149,10 @@ namespace CppSharp.AST |
|
|
|
{ |
|
|
|
{ |
|
|
|
switch (kind) |
|
|
|
switch (kind) |
|
|
|
{ |
|
|
|
{ |
|
|
|
case CommentKind.OrdinaryBCPL: |
|
|
|
case CommentKind.BCPL: |
|
|
|
case CommentKind.BCPLSlash: |
|
|
|
case CommentKind.BCPLSlash: |
|
|
|
return string.Empty; |
|
|
|
return string.Empty; |
|
|
|
case CommentKind.OrdinaryC: |
|
|
|
case CommentKind.C: |
|
|
|
return "/*"; |
|
|
|
return "/*"; |
|
|
|
case CommentKind.BCPLExcl: |
|
|
|
case CommentKind.BCPLExcl: |
|
|
|
return "//!"; |
|
|
|
return "//!"; |
|
|
|
@ -169,11 +169,11 @@ namespace CppSharp.AST |
|
|
|
{ |
|
|
|
{ |
|
|
|
switch (kind) |
|
|
|
switch (kind) |
|
|
|
{ |
|
|
|
{ |
|
|
|
case CommentKind.OrdinaryBCPL: |
|
|
|
case CommentKind.BCPL: |
|
|
|
case CommentKind.BCPLSlash: |
|
|
|
case CommentKind.BCPLSlash: |
|
|
|
case CommentKind.BCPLExcl: |
|
|
|
case CommentKind.BCPLExcl: |
|
|
|
return string.Empty; |
|
|
|
return string.Empty; |
|
|
|
case CommentKind.OrdinaryC: |
|
|
|
case CommentKind.C: |
|
|
|
case CommentKind.JavaDoc: |
|
|
|
case CommentKind.JavaDoc: |
|
|
|
case CommentKind.Qt: |
|
|
|
case CommentKind.Qt: |
|
|
|
return " */"; |
|
|
|
return " */"; |
|
|
|
|