public FFFunction(FFApp app, FFFile file, FFClass cls, CodeModel.Definitions.FunctionDefinition def) { #if DEBUG if (app == null) { throw new ArgumentNullException("app"); } if (file == null) { throw new ArgumentNullException("file"); } if (def == null) { throw new ArgumentNullException("def"); } #endif _app = app; _file = file; _class = cls; _name = def.Name; _sig = def.Signature; _span = new CodeModel.Span(def.SourceStartPos, def.SourceStartPos); _def = def; UpdateVisibility(); }
public void UpdateFromDefinition(CodeModel.Definitions.FunctionDefinition def) { #if DEBUG if (def == null) { throw new ArgumentNullException("def"); } if (def.DataType == null) { throw new ArgumentNullException("def.DataType"); } #endif _sig = def.Signature; _span = new CodeModel.Span(def.SourceStartPos, def.SourceStartPos); _def = def; UpdateVisibility(); }
public void ReportError(CodeModel.Span span, CAError errorCode, params object[] args) { CodeAnalyzer.ReportError(span, errorCode, args); }
public Node(Statement stmt, DataType dataType, Span span) { _stmt = stmt; _dataType = dataType; _span = span; }
internal FunctionListItem(CodeModel.FileStore.FunctionDropDownItem func) { this.Name = func.Name; this.Span = func.Span; }