/*
Copyright (C) 2014-2019 de4dot@gmail.com
This file is part of dnSpy
dnSpy is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
dnSpy is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with dnSpy. If not, see .
*/
using System.Threading;
using dnSpy.Contracts.Debugger.Code;
using dnSpy.Contracts.Debugger.Evaluation;
namespace dnSpy.Contracts.Debugger.Engine.Evaluation {
///
/// Debugger language that evaluates expressions and formats values
///
public abstract class DbgEngineLanguage {
///
/// Gets the language name, see
///
public abstract string Name { get; }
///
/// Gets the language's display name (shown in the UI)
///
public abstract string DisplayName { get; }
///
/// Gets the expression evaluator
///
public abstract DbgEngineExpressionEvaluator ExpressionEvaluator { get; }
///
/// Gets the formatter
///
public abstract DbgEngineFormatter Formatter { get; }
///
/// Gets the locals and parameters provider
///
public abstract DbgEngineLocalsValueNodeProvider LocalsProvider { get; }
///
/// Gets the autos provider
///
public abstract DbgEngineValueNodeProvider AutosProvider { get; }
///
/// Gets the exceptions provider
///
public abstract DbgEngineValueNodeProvider ExceptionsProvider { get; }
///
/// Gets the return values provider
///
public abstract DbgEngineValueNodeProvider ReturnValuesProvider { get; }
///
/// Gets the type variables provider
///
public abstract DbgEngineValueNodeProvider TypeVariablesProvider { get; }
///
/// Gets the factory
///
public abstract DbgEngineValueNodeFactory ValueNodeFactory { get; }
///
/// Initializes an evaluation context
///
/// Context
/// Location or null
/// Cancellation token
///
public abstract void InitializeContext(DbgEvaluationContext context, DbgCodeLocation? location, CancellationToken cancellationToken);
}
}