void MarkSequencePoint([NotNull] IRoutineBuilder rb, [NotNull] IProvideSourceLine node) { if (!WantDebugInfo || !(node.SourceLine is FileSourceLine fileSourceLine)) { return; } Debug.Assert(Game.DebugFile != null); Game.DebugFile.MarkSequencePoint(rb, new DebugLineRef(fileSourceLine.FileName, fileSourceLine.Line, 1)); }
public CompilerFatal([NotNull] IProvideSourceLine sourceLine, int code) : this(sourceLine, code, null) { }
public CompilerFatal([NotNull] IProvideSourceLine node, int code, params object[] messageArgs) : base(MakeDiagnostic(node.SourceLine, code, messageArgs)) { }
public DeclCheckError([NotNull] IProvideSourceLine src, [NotNull] Context ctx, [NotNull] ZilObject value, [NotNull] ZilObject pattern, [NotNull] string usageFormat, [NotNull] object arg0) : this(src, ctx, value, pattern, string.Format(usageFormat, arg0)) { }
public DeclCheckError([NotNull] IProvideSourceLine src, [NotNull] Context ctx, [NotNull] ZilObject value, [NotNull] ZilObject pattern, string usage) : base(src, DiagnosticCode, usage, pattern.ToStringContext(ctx, false), value.ToStringContext(ctx, false)) { }
public InterpreterError([NotNull] IProvideSourceLine node, int code, params object[] messageArgs) : base(MakeDiagnostic(node.SourceLine, code, messageArgs)) { }
public InterpreterError([NotNull] IProvideSourceLine sourceLine, int code) : this(sourceLine, code, null) { }
public InterpreterError([NotNull] IProvideSourceLine node, [NotNull] string message) : base(node.SourceLine, message) { }