diff options
author | Lluis Sanchez Gual <lluis@xamarin.com> | 2015-04-20 19:07:51 +0300 |
---|---|---|
committer | Lluis Sanchez Gual <lluis@xamarin.com> | 2015-04-20 19:07:51 +0300 |
commit | 95408b1a41b31b645f3a8c3323ab7d3ca4bff26b (patch) | |
tree | f8f137cddcb9a40499d303be95722fd2c6081bce /main/src/addins/CBinding/Parser/Function.cs | |
parent | b70e4e04b4e41b8ec28d7e4b220b401ecf467e7a (diff) | |
parent | de043d330a8bf5855d4d983c804cd36727cb2406 (diff) |
Merge remote-tracking branch 'origin/roslyn' into new-project-model
Diffstat (limited to 'main/src/addins/CBinding/Parser/Function.cs')
-rw-r--r-- | main/src/addins/CBinding/Parser/Function.cs | 30 |
1 files changed, 29 insertions, 1 deletions
diff --git a/main/src/addins/CBinding/Parser/Function.cs b/main/src/addins/CBinding/Parser/Function.cs index 09d12dbd21..bae2d94577 100644 --- a/main/src/addins/CBinding/Parser/Function.cs +++ b/main/src/addins/CBinding/Parser/Function.cs @@ -32,11 +32,39 @@ using System; using MonoDevelop.Projects; +using ICSharpCode.NRefactory6.CSharp.Completion; namespace CBinding.Parser { - public class Function : LanguageItem + public class Function : LanguageItem, IParameterHintingData { + #region IParameterHintingData implementation + + public string GetParameterName (int currentParameter) + { + return parameters [currentParameter]; + } + + public Microsoft.CodeAnalysis.ISymbol Symbol { + get { + return null; + } + } + + public int ParameterCount { + get { + return parameters.Length; + } + } + + public bool IsParameterListAllowed { + get { + return false; + } + } + + #endregion + private string[] parameters; private string signature; private bool is_const = false; |