Interface ICodeProcessor
Describes an entity that may process source code in some language
Namespace: Azos.CodeAnalysis
Assembly: Azos.dll
Syntax
public interface ICodeProcessor
Properties
Context
Returns context that this processor operates under
Declaration
IAnalysisContext Context { get; }
Property Value
Type | Description |
---|---|
IAnalysisContext |
Language
References language that this entity supports
Declaration
Language Language { get; }
Property Value
Type | Description |
---|---|
Language |
Messages
References message list that processor emits messages into. May be null, in which case errors are always thrown because they can not get logged into message list
Declaration
MessageList Messages { get; }
Property Value
Type | Description |
---|---|
MessageList |
ThrowErrors
When true, throws an exception on the first error even when MessageList is set. When MessageList is not set any error is always thrown regardless of this parameter
Declaration
bool ThrowErrors { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
MessageCodeToString(Int32)
Returns string representation of message code which is output by this processor
Declaration
string MessageCodeToString(int code)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | code |
Returns
Type | Description |
---|---|
System.String |