C# Class Boo.Lang.Compiler.CompilerErrorFactory

Datei anzeigen Open project: boo-lang/boo Class Usage Examples

Private Properties

Property Type Description
DidYouMeanOrNull string
DisplayStringFor string
Instantiate CompilerError
Instantiate CompilerError
StripSurroundingParens string

Public Methods

Method Description
AbstractMethodCantHaveBody ( Node node, IMethod method ) : CompilerError
AddressOfOutsideDelegateConstructor ( Node node ) : CompilerError
AmbiguousReference ( Node node, string name, IEnumerable entities ) : CompilerError
AmbiguousReference ( ReferenceExpression reference, System members ) : CompilerError
AstAttributeMustBeExternal ( Node node, IType attributeType ) : CompilerError
AstMacroMustBeExternal ( Node node, IType type ) : CompilerError
AttributeApplicationError ( Exception error, Ast attribute, Type attributeType ) : CompilerError
AttributeNotFound ( string elementName, string attributeName ) : CompilerError
BoolExpressionRequired ( Node node, IType typeName ) : CompilerError
BuiltinCannotBeUsedAsExpression ( Node node, string name ) : CompilerError
CannotBranchIntoEnsure ( Node node ) : CompilerError
CannotBranchIntoExcept ( Node node ) : CompilerError
CannotBranchIntoTry ( Node node ) : CompilerError
CannotCreateAnInstanceOfGenericParameterWithoutDefaultConstructorConstraint ( Node node, IType type ) : CompilerError
CannotExtendFinalType ( Node node, IType typeName ) : CompilerError
CannotInferGenericMethodArguments ( Node node, IMethod method ) : CompilerError
CannotReturnValue ( Method node ) : CompilerError
CantBeMarkedAbstract ( Node node ) : CompilerError
CantBeMarkedFinal ( Node node ) : CompilerError
CantBeMarkedPartial ( Node node ) : CompilerError
CantBeMarkedStatic ( Node node ) : CompilerError
CantBeMarkedTransient ( Node node ) : CompilerError
CantCastToValueType ( Node node, IType typeName ) : CompilerError
CantCreateInstanceOfAbstractType ( Node node, IType typeName ) : CompilerError
CantCreateInstanceOfEnum ( Node node, IType typeName ) : CompilerError
CantCreateInstanceOfInterface ( Node node, IType typeName ) : CompilerError
CantHaveDestructorParameters ( Node node ) : CompilerError
CantOverrideNonVirtual ( Node node, IMethod method ) : CompilerError
CantRedefinePrimitive ( Node node, string name ) : CompilerError
CantReturnFromEnsure ( Node node ) : CompilerError
ClassAlreadyHasBaseType ( Node node, string className, IType baseType ) : CompilerError
ColonInsteadOfEquals ( Node node ) : CompilerError
ConflictWithInheritedMember ( Node node, IMember member, IMember baseMember ) : CompilerError
ConstantCannotBeConverted ( Node node, IType type ) : CompilerError
ConstructorCantBePolymorphic ( Node node, IMethod ctor ) : CompilerError
CouldNotInferReturnType ( Node node, string signature ) : CompilerError
CustomError ( LexicalInfo lexicalInfo, string msg ) : CompilerError
CustomError ( Node anchor, string msg ) : CompilerError
CustomError ( string msg ) : CompilerError
DerivedMethodCannotReduceAccess ( Node node, IMethod derivedMethod, IMethod superMethod, TypeMemberModifiers derivedAccess, TypeMemberModifiers superAccess ) : CompilerError
DuplicateParameterName ( Node node, string parameter, IMethod method ) : CompilerError
EnumMemberMustBeConstant ( EnumMember member ) : CompilerError
EventArgumentMustBeAMethod ( Node node, ITypedEntity eventMember ) : CompilerError
EventCanOnlyBeInvokedFromWithinDeclaringClass ( Node node, IEvent ev ) : CompilerError
EventIsNotAnExpression ( Node node, IEntity eventMember ) : CompilerError
EventTypeIsNotCallable ( Node node, IType typeName ) : CompilerError
ExceptionAlreadyHandled ( Boo.Lang.Compiler.Ast.ExceptionHandler dupe, Boo.Lang.Compiler.Ast.ExceptionHandler previous ) : CompilerError
ExplicitImplMustNotHaveModifiers ( Node node, string iface, string item ) : CompilerError
ExplodeExpressionMustMatchVarArgCall ( Node node ) : CompilerError
ExplodedExpressionMustBeArray ( Node node ) : CompilerError
ExpressionMustBeExecutedForItsSideEffects ( Node node ) : CompilerError
FailedToLoadTypesFromAssembly ( string assemblyName, Exception x ) : CompilerError
FieldIsReadonly ( Node node, string name ) : CompilerError
FileNotFound ( string fname ) : CompilerError
GeneratorCantReturnValue ( Node node ) : CompilerError
GenericArgumentMustBeReferenceType ( Node node, IGenericParameter parameter, IType argument ) : CompilerError
GenericArgumentMustBeValueType ( Node node, IGenericParameter parameter, IType argument ) : CompilerError
GenericArgumentMustHaveBaseType ( Node node, IGenericParameter parameter, IType argument, IType baseType ) : CompilerError
GenericArgumentMustHaveDefaultConstructor ( Node node, IGenericParameter parameter, IType argument ) : CompilerError
GenericDefinitionArgumentCount ( Node node, IEntity genericDefinition, int expectedCount ) : CompilerError
GenericParserError ( LexicalInfo lexicalInfo, Exception error ) : CompilerError
GenericTypesMustBeConstructedToBeInstantiated ( Node node ) : CompilerError
GetSignature ( object parameters ) : string
IncompatibleExpressionType ( Node node, IType expectedType, IType actualType ) : CompilerError
IncompatiblePartialDefinition ( Node node, string typeName, string expectedType, string actualType ) : CompilerError
InheritanceCycle ( Node node, IType type ) : CompilerError
InputError ( LexicalInfo lexicalInfo, Exception error ) : CompilerError
InputError ( string inputName, Exception error ) : CompilerError
InstanceMethodInvocationBeforeInitialization ( Constructor ctor, Boo.Lang.Compiler.Ast.MemberReferenceExpression mre ) : CompilerError
InstanceRequired ( Node node, IMember member ) : CompilerError
Instantiate ( string code, Exception error ) : CompilerError
Instantiate ( string code, Node anchor ) : CompilerError
Instantiate ( string code, Node anchor, Exception error ) : CompilerError
InterfaceCanOnlyInheritFromInterface ( Node node, IType interfaceType, IType baseType ) : CompilerError
InterfaceImplForInvalidInterface ( Node node, string iface, string item ) : CompilerError
InterfaceImplementationMustBePublicOrExplicit ( Boo.Lang.Compiler.Ast.TypeMember node, IMember member ) : CompilerError
InternalError ( Node node, Exception error ) : CompilerError
InternalError ( Node node, string message, Exception cause ) : CompilerError
InvalidArray ( Node node ) : CompilerError
InvalidArrayRank ( Node node, string arrayName, int real, int given ) : CompilerError
InvalidAssemblySetUp ( Node node ) : CompilerError
InvalidAttributeTarget ( Node node, Type attrType, AttributeTargets validOn ) : CompilerError
InvalidCharLiteral ( Node node, string value ) : CompilerError
InvalidCombinationOfModifiers ( Node node, IEntity member, string modifiers ) : CompilerError
InvalidDeclarationType ( Node node, IType type ) : CompilerError
InvalidDestructorModifier ( Node node ) : CompilerError
InvalidEntryPoint ( Node node ) : CompilerError
InvalidExceptArgument ( Node node, IType exceptionType ) : CompilerError
InvalidExpressionType ( Node node, IType type ) : CompilerError
InvalidExtensionDefinition ( Node node ) : CompilerError
InvalidFieldType ( Node node, IType typeName ) : CompilerError
InvalidGeneratorReturnType ( Node node, IType type ) : CompilerError
InvalidGenericParameterType ( Node node, IType type ) : CompilerError
InvalidInterfaceForInterfaceMember ( Node node, string value ) : CompilerError
InvalidIteratorType ( Node node, IType type ) : CompilerError
InvalidLen ( Node node, IType typeName ) : CompilerError
InvalidLockMacroArguments ( Node node ) : CompilerError
InvalidMacro ( Node node, IType type ) : CompilerError
InvalidName ( Node node, string name ) : CompilerError
InvalidNamespace ( Import import ) : CompilerError
InvalidNode ( Node node ) : CompilerError
InvalidNodeForAttribute ( Node node, string attributeName, string expectedNodeTypes ) : CompilerError
InvalidOperatorForType ( Node node, string operatorName, IType typeName ) : CompilerError
InvalidOperatorForTypes ( Node node, string operatorName, IType lhs, IType rhs ) : CompilerError
InvalidOverrideReturnType ( Node node, IMethod method, IType expectedReturnType, IType actualReturnType ) : CompilerError
InvalidParameterType ( Node node, IType typeName ) : CompilerError
InvalidRaiseArgument ( Node node, IType typeName ) : CompilerError
InvalidRegexOption ( RELiteralExpression node, char option ) : CompilerError
InvalidSuper ( Node node ) : CompilerError
InvalidSwitch ( Node node ) : CompilerError
InvalidTryStatement ( Node node ) : CompilerError
InvalidTypeConstraint ( GenericParameterDeclaration gpd, TypeReference type ) : CompilerError
InvalidTypeForExplicitMember ( Node node, IType type ) : CompilerError
InvalidTypeof ( Node node ) : CompilerError
IsaArgument ( Node node ) : CompilerError
LValueExpected ( Node node ) : CompilerError
LabelAlreadyDefined ( Node node, IMethod method, string label ) : CompilerError
LocalAlreadyExists ( Node node, string name ) : CompilerError
MacroExpansionError ( Node node ) : CompilerError
MacroExpansionError ( Node node, Exception error ) : CompilerError
MemberNameConflict ( Node node, IType declaringType, string memberName ) : CompilerError
MemberNotFound ( MemberReferenceExpression node, INamespace @namespace, string suggestion ) : CompilerError
MemberNotFound ( Node node, string memberName, INamespace @namespace, string suggestion ) : CompilerError
MethodArgumentCount ( Node node, string name, int count ) : CompilerError
MethodIsNotOverride ( Node node, IMethod method ) : CompilerError
MethodReferenceExpected ( Node node ) : CompilerError
MethodSignature ( Node node, IEntity expectedSignature, string actualSignature ) : CompilerError
MissingConstructor ( Exception error, Node node, Type type, object parameters ) : CompilerError
MoreThanOneEntryPoint ( Method method ) : CompilerError
MultipleAttributeUsage ( Node node, Type attrType ) : CompilerError
MultipleBaseTypeConstraints ( GenericParameterDeclaration gpd, TypeReference type, TypeReference other ) : CompilerError
NameNotType ( Node node, string typeName, IEntity whatItIs, string suggestion ) : CompilerError
NamedArgumentsNotAllowed ( Node node ) : CompilerError
NamedParameterMustBeIdentifier ( ExpressionPair pair ) : CompilerError
NamespaceAlreadyContainsMember ( Node node, string container, string member ) : CompilerError
NamespaceIsNotAnExpression ( Node node, string name ) : CompilerError
NestedTypeCannotExtendEnclosingType ( Node node, IType nestedType, IType enclosingType ) : CompilerError
NoApropriateConstructorFound ( Node node, IType typeName, string signature ) : CompilerError
NoApropriateOverloadFound ( Node node, string signature, string memberName ) : CompilerError
NoEnclosingLoop ( Node node ) : CompilerError
NoEntryPoint ( ) : CompilerError
NoMethodToOverride ( Node node, IMethod signature, bool incompatibleSignature ) : CompilerError
NoMethodToOverride ( Node node, IMethod signature, string suggestion ) : CompilerError
NoSuchLabel ( Node node, string label ) : CompilerError
NotAGenericDefinition ( Node node, string name ) : CompilerError
NotAMemberOfExplicitInterface ( TypeMember member, IType type ) : CompilerError
NotANamespace ( Node node, IEntity entity ) : CompilerError
NotAPublicFieldOrProperty ( Node node, string name, IType type ) : CompilerError
NotImplemented ( Node node, string message ) : CompilerError
Obsolete ( Node node, IMember member, string message ) : CompilerError
OperatorCantBeUsedWithValueType ( Node node, string operatorName, IType typeName ) : CompilerError
PointerIncompatibleType ( Node node, IType type ) : CompilerError
PropertyIsReadOnly ( Node node, IProperty property ) : CompilerError
PropertyIsWriteOnly ( Node node, IEntity property ) : CompilerError
PropertyRequiresParameters ( Node node, IEntity name ) : CompilerError
ReRaiseOutsideExceptionHandler ( Node node ) : CompilerError
RefArgTakesLValue ( Node node ) : CompilerError
RuntimeMethodBodyMustBeEmpty ( Node node, IMethod method ) : CompilerError
SelfIsNotValidInStaticMember ( Node node ) : CompilerError
SelfOutsideMethod ( Node node ) : CompilerError
StaticConstructorCannotDeclareParameters ( Node node ) : CompilerError
StaticConstructorMustBePrivate ( Node node ) : CompilerError
StepExecutionError ( Exception error, ICompilerStep step ) : CompilerError
StructAndClassConstraintsConflict ( GenericParameterDeclaration gpd ) : CompilerError
StructAndConstructorConstraintsConflict ( GenericParameterDeclaration gpd ) : CompilerError
ToAssemblyQualifiedNameList ( List types ) : string
ToNameList ( System members ) : string
ToStringList ( System names ) : string
TypeConstraintConflictsWithSpecialConstraint ( GenericParameterDeclaration gpd, TypeReference type, string constraint ) : CompilerError
TypeDoesNotSupportSlicing ( Node node, IType fullName ) : CompilerError
TypeExpected ( Node node ) : CompilerError
TypeIsNotCallable ( Node node, IType name ) : CompilerError
TypeMustImplementICompilerStep ( string typeName ) : CompilerError
TypeNotAttribute ( Node node, IType attributeType ) : CompilerError
UnableToLoadAssembly ( Node node, string name, Exception error ) : CompilerError
UnaccessibleMember ( Node node, IAccessibleMember name ) : CompilerError
UnexpectedToken ( LexicalInfo lexicalInfo, Exception error, string token ) : CompilerError
UnknownAttribute ( Node node, string attributeName, string suggestion ) : CompilerError
UnknownClassMacroWithFieldHint ( MacroStatement node, string name ) : CompilerError
UnknownIdentifier ( Node node, string name ) : CompilerError
UnknownMacro ( Node node, string name ) : CompilerError
UnresolvedDependency ( Node node, IEntity source, IEntity target ) : CompilerError
ValueTypeCantHaveAbstractMember ( Node node, IType type, IMember abstractMember ) : CompilerError
ValueTypeFieldsCannotHaveInitializers ( Node node ) : CompilerError
ValueTypeParameterCannotUseDefaultAttribute ( Node node, string parameter ) : CompilerError
ValueTypesCannotDeclareParameterlessConstructors ( Node node ) : CompilerError
YieldInsideConstructor ( Node node ) : CompilerError
YieldInsideTryExceptOrEnsureBlock ( Node node ) : CompilerError
YieldTypeDoesNotMatchReturnType ( Node node, IType yieldType, IType returnType ) : CompilerError

Private Methods

Method Description
DidYouMeanOrNull ( string suggestion ) : string
DisplayStringFor ( object o ) : string
Instantiate ( string code, LexicalInfo location ) : CompilerError
Instantiate ( string code, LexicalInfo location, Exception error ) : CompilerError
StripSurroundingParens ( string code ) : string

Method Details

AbstractMethodCantHaveBody() public static method

public static AbstractMethodCantHaveBody ( Node node, IMethod method ) : CompilerError
node Node
method IMethod
return CompilerError

AddressOfOutsideDelegateConstructor() public static method

public static AddressOfOutsideDelegateConstructor ( Node node ) : CompilerError
node Node
return CompilerError

AmbiguousReference() public static method

public static AmbiguousReference ( Node node, string name, IEnumerable entities ) : CompilerError
node Node
name string
entities IEnumerable
return CompilerError

AmbiguousReference() public static method

public static AmbiguousReference ( ReferenceExpression reference, System members ) : CompilerError
reference Boo.Lang.Compiler.Ast.ReferenceExpression
members System
return CompilerError

AstAttributeMustBeExternal() public static method

public static AstAttributeMustBeExternal ( Node node, IType attributeType ) : CompilerError
node Node
attributeType IType
return CompilerError

AstMacroMustBeExternal() public static method

public static AstMacroMustBeExternal ( Node node, IType type ) : CompilerError
node Node
type IType
return CompilerError

AttributeApplicationError() public static method

public static AttributeApplicationError ( Exception error, Ast attribute, Type attributeType ) : CompilerError
error System.Exception
attribute Ast
attributeType System.Type
return CompilerError

AttributeNotFound() public static method

public static AttributeNotFound ( string elementName, string attributeName ) : CompilerError
elementName string
attributeName string
return CompilerError

BoolExpressionRequired() public static method

public static BoolExpressionRequired ( Node node, IType typeName ) : CompilerError
node Node
typeName IType
return CompilerError

BuiltinCannotBeUsedAsExpression() public static method

public static BuiltinCannotBeUsedAsExpression ( Node node, string name ) : CompilerError
node Node
name string
return CompilerError

CannotBranchIntoEnsure() public static method

public static CannotBranchIntoEnsure ( Node node ) : CompilerError
node Node
return CompilerError

CannotBranchIntoExcept() public static method

public static CannotBranchIntoExcept ( Node node ) : CompilerError
node Node
return CompilerError

CannotBranchIntoTry() public static method

public static CannotBranchIntoTry ( Node node ) : CompilerError
node Node
return CompilerError

CannotCreateAnInstanceOfGenericParameterWithoutDefaultConstructorConstraint() public static method

public static CannotCreateAnInstanceOfGenericParameterWithoutDefaultConstructorConstraint ( Node node, IType type ) : CompilerError
node Node
type IType
return CompilerError

CannotExtendFinalType() public static method

public static CannotExtendFinalType ( Node node, IType typeName ) : CompilerError
node Node
typeName IType
return CompilerError

CannotInferGenericMethodArguments() public static method

public static CannotInferGenericMethodArguments ( Node node, IMethod method ) : CompilerError
node Node
method IMethod
return CompilerError

CannotReturnValue() public static method

public static CannotReturnValue ( Method node ) : CompilerError
node Boo.Lang.Compiler.Ast.Method
return CompilerError

CantBeMarkedAbstract() public static method

public static CantBeMarkedAbstract ( Node node ) : CompilerError
node Node
return CompilerError

CantBeMarkedFinal() public static method

public static CantBeMarkedFinal ( Node node ) : CompilerError
node Node
return CompilerError

CantBeMarkedPartial() public static method

public static CantBeMarkedPartial ( Node node ) : CompilerError
node Node
return CompilerError

CantBeMarkedStatic() public static method

public static CantBeMarkedStatic ( Node node ) : CompilerError
node Node
return CompilerError

CantBeMarkedTransient() public static method

public static CantBeMarkedTransient ( Node node ) : CompilerError
node Node
return CompilerError

CantCastToValueType() public static method

public static CantCastToValueType ( Node node, IType typeName ) : CompilerError
node Node
typeName IType
return CompilerError

CantCreateInstanceOfAbstractType() public static method

public static CantCreateInstanceOfAbstractType ( Node node, IType typeName ) : CompilerError
node Node
typeName IType
return CompilerError

CantCreateInstanceOfEnum() public static method

public static CantCreateInstanceOfEnum ( Node node, IType typeName ) : CompilerError
node Node
typeName IType
return CompilerError

CantCreateInstanceOfInterface() public static method

public static CantCreateInstanceOfInterface ( Node node, IType typeName ) : CompilerError
node Node
typeName IType
return CompilerError

CantHaveDestructorParameters() public static method

public static CantHaveDestructorParameters ( Node node ) : CompilerError
node Node
return CompilerError

CantOverrideNonVirtual() public static method

public static CantOverrideNonVirtual ( Node node, IMethod method ) : CompilerError
node Node
method IMethod
return CompilerError

CantRedefinePrimitive() public static method

public static CantRedefinePrimitive ( Node node, string name ) : CompilerError
node Node
name string
return CompilerError

CantReturnFromEnsure() public static method

public static CantReturnFromEnsure ( Node node ) : CompilerError
node Node
return CompilerError

ClassAlreadyHasBaseType() public static method

public static ClassAlreadyHasBaseType ( Node node, string className, IType baseType ) : CompilerError
node Node
className string
baseType IType
return CompilerError

ColonInsteadOfEquals() public static method

public static ColonInsteadOfEquals ( Node node ) : CompilerError
node Node
return CompilerError

ConflictWithInheritedMember() public static method

public static ConflictWithInheritedMember ( Node node, IMember member, IMember baseMember ) : CompilerError
node Node
member IMember
baseMember IMember
return CompilerError

ConstantCannotBeConverted() public static method

public static ConstantCannotBeConverted ( Node node, IType type ) : CompilerError
node Node
type IType
return CompilerError

ConstructorCantBePolymorphic() public static method

public static ConstructorCantBePolymorphic ( Node node, IMethod ctor ) : CompilerError
node Node
ctor IMethod
return CompilerError

CouldNotInferReturnType() public static method

public static CouldNotInferReturnType ( Node node, string signature ) : CompilerError
node Node
signature string
return CompilerError

CustomError() public static method

public static CustomError ( LexicalInfo lexicalInfo, string msg ) : CompilerError
lexicalInfo LexicalInfo
msg string
return CompilerError

CustomError() public static method

public static CustomError ( Node anchor, string msg ) : CompilerError
anchor Node
msg string
return CompilerError

CustomError() public static method

public static CustomError ( string msg ) : CompilerError
msg string
return CompilerError

DerivedMethodCannotReduceAccess() public static method

public static DerivedMethodCannotReduceAccess ( Node node, IMethod derivedMethod, IMethod superMethod, TypeMemberModifiers derivedAccess, TypeMemberModifiers superAccess ) : CompilerError
node Node
derivedMethod IMethod
superMethod IMethod
derivedAccess TypeMemberModifiers
superAccess TypeMemberModifiers
return CompilerError

DuplicateParameterName() public static method

public static DuplicateParameterName ( Node node, string parameter, IMethod method ) : CompilerError
node Node
parameter string
method IMethod
return CompilerError

EnumMemberMustBeConstant() public static method

public static EnumMemberMustBeConstant ( EnumMember member ) : CompilerError
member Boo.Lang.Compiler.Ast.EnumMember
return CompilerError

EventArgumentMustBeAMethod() public static method

public static EventArgumentMustBeAMethod ( Node node, ITypedEntity eventMember ) : CompilerError
node Node
eventMember ITypedEntity
return CompilerError

EventCanOnlyBeInvokedFromWithinDeclaringClass() public static method

public static EventCanOnlyBeInvokedFromWithinDeclaringClass ( Node node, IEvent ev ) : CompilerError
node Node
ev IEvent
return CompilerError

EventIsNotAnExpression() public static method

public static EventIsNotAnExpression ( Node node, IEntity eventMember ) : CompilerError
node Node
eventMember IEntity
return CompilerError

EventTypeIsNotCallable() public static method

public static EventTypeIsNotCallable ( Node node, IType typeName ) : CompilerError
node Node
typeName IType
return CompilerError

ExceptionAlreadyHandled() public static method

public static ExceptionAlreadyHandled ( Boo.Lang.Compiler.Ast.ExceptionHandler dupe, Boo.Lang.Compiler.Ast.ExceptionHandler previous ) : CompilerError
dupe Boo.Lang.Compiler.Ast.ExceptionHandler
previous Boo.Lang.Compiler.Ast.ExceptionHandler
return CompilerError

ExplicitImplMustNotHaveModifiers() public static method

public static ExplicitImplMustNotHaveModifiers ( Node node, string iface, string item ) : CompilerError
node Node
iface string
item string
return CompilerError

ExplodeExpressionMustMatchVarArgCall() public static method

public static ExplodeExpressionMustMatchVarArgCall ( Node node ) : CompilerError
node Node
return CompilerError

ExplodedExpressionMustBeArray() public static method

public static ExplodedExpressionMustBeArray ( Node node ) : CompilerError
node Node
return CompilerError

ExpressionMustBeExecutedForItsSideEffects() public static method

public static ExpressionMustBeExecutedForItsSideEffects ( Node node ) : CompilerError
node Node
return CompilerError

FailedToLoadTypesFromAssembly() public static method

public static FailedToLoadTypesFromAssembly ( string assemblyName, Exception x ) : CompilerError
assemblyName string
x System.Exception
return CompilerError

FieldIsReadonly() public static method

public static FieldIsReadonly ( Node node, string name ) : CompilerError
node Node
name string
return CompilerError

FileNotFound() public static method

public static FileNotFound ( string fname ) : CompilerError
fname string
return CompilerError

GeneratorCantReturnValue() public static method

public static GeneratorCantReturnValue ( Node node ) : CompilerError
node Node
return CompilerError

GenericArgumentMustBeReferenceType() public static method

public static GenericArgumentMustBeReferenceType ( Node node, IGenericParameter parameter, IType argument ) : CompilerError
node Node
parameter IGenericParameter
argument IType
return CompilerError

GenericArgumentMustBeValueType() public static method

public static GenericArgumentMustBeValueType ( Node node, IGenericParameter parameter, IType argument ) : CompilerError
node Node
parameter IGenericParameter
argument IType
return CompilerError

GenericArgumentMustHaveBaseType() public static method

public static GenericArgumentMustHaveBaseType ( Node node, IGenericParameter parameter, IType argument, IType baseType ) : CompilerError
node Node
parameter IGenericParameter
argument IType
baseType IType
return CompilerError

GenericArgumentMustHaveDefaultConstructor() public static method

public static GenericArgumentMustHaveDefaultConstructor ( Node node, IGenericParameter parameter, IType argument ) : CompilerError
node Node
parameter IGenericParameter
argument IType
return CompilerError

GenericDefinitionArgumentCount() public static method

public static GenericDefinitionArgumentCount ( Node node, IEntity genericDefinition, int expectedCount ) : CompilerError
node Node
genericDefinition IEntity
expectedCount int
return CompilerError

GenericParserError() public static method

public static GenericParserError ( LexicalInfo lexicalInfo, Exception error ) : CompilerError
lexicalInfo LexicalInfo
error System.Exception
return CompilerError

GenericTypesMustBeConstructedToBeInstantiated() public static method

public static GenericTypesMustBeConstructedToBeInstantiated ( Node node ) : CompilerError
node Node
return CompilerError

GetSignature() public static method

public static GetSignature ( object parameters ) : string
parameters object
return string

IncompatibleExpressionType() public static method

public static IncompatibleExpressionType ( Node node, IType expectedType, IType actualType ) : CompilerError
node Node
expectedType IType
actualType IType
return CompilerError

IncompatiblePartialDefinition() public static method

public static IncompatiblePartialDefinition ( Node node, string typeName, string expectedType, string actualType ) : CompilerError
node Node
typeName string
expectedType string
actualType string
return CompilerError

InheritanceCycle() public static method

public static InheritanceCycle ( Node node, IType type ) : CompilerError
node Node
type IType
return CompilerError

InputError() public static method

public static InputError ( LexicalInfo lexicalInfo, Exception error ) : CompilerError
lexicalInfo LexicalInfo
error System.Exception
return CompilerError

InputError() public static method

public static InputError ( string inputName, Exception error ) : CompilerError
inputName string
error System.Exception
return CompilerError

InstanceMethodInvocationBeforeInitialization() public static method

public static InstanceMethodInvocationBeforeInitialization ( Constructor ctor, Boo.Lang.Compiler.Ast.MemberReferenceExpression mre ) : CompilerError
ctor Boo.Lang.Compiler.Ast.Constructor
mre Boo.Lang.Compiler.Ast.MemberReferenceExpression
return CompilerError

InstanceRequired() public static method

public static InstanceRequired ( Node node, IMember member ) : CompilerError
node Node
member IMember
return CompilerError

Instantiate() public static method

public static Instantiate ( string code, Exception error ) : CompilerError
code string
error System.Exception
return CompilerError

Instantiate() public static method

public static Instantiate ( string code, Node anchor ) : CompilerError
code string
anchor Node
return CompilerError

Instantiate() public static method

public static Instantiate ( string code, Node anchor, Exception error ) : CompilerError
code string
anchor Node
error System.Exception
return CompilerError

InterfaceCanOnlyInheritFromInterface() public static method

public static InterfaceCanOnlyInheritFromInterface ( Node node, IType interfaceType, IType baseType ) : CompilerError
node Node
interfaceType IType
baseType IType
return CompilerError

InterfaceImplForInvalidInterface() public static method

public static InterfaceImplForInvalidInterface ( Node node, string iface, string item ) : CompilerError
node Node
iface string
item string
return CompilerError

InterfaceImplementationMustBePublicOrExplicit() public static method

public static InterfaceImplementationMustBePublicOrExplicit ( Boo.Lang.Compiler.Ast.TypeMember node, IMember member ) : CompilerError
node Boo.Lang.Compiler.Ast.TypeMember
member IMember
return CompilerError

InternalError() public static method

public static InternalError ( Node node, Exception error ) : CompilerError
node Node
error System.Exception
return CompilerError

InternalError() public static method

public static InternalError ( Node node, string message, Exception cause ) : CompilerError
node Node
message string
cause System.Exception
return CompilerError

InvalidArray() public static method

public static InvalidArray ( Node node ) : CompilerError
node Node
return CompilerError

InvalidArrayRank() public static method

public static InvalidArrayRank ( Node node, string arrayName, int real, int given ) : CompilerError
node Node
arrayName string
real int
given int
return CompilerError

InvalidAssemblySetUp() public static method

public static InvalidAssemblySetUp ( Node node ) : CompilerError
node Node
return CompilerError

InvalidAttributeTarget() public static method

public static InvalidAttributeTarget ( Node node, Type attrType, AttributeTargets validOn ) : CompilerError
node Node
attrType System.Type
validOn AttributeTargets
return CompilerError

InvalidCharLiteral() public static method

public static InvalidCharLiteral ( Node node, string value ) : CompilerError
node Node
value string
return CompilerError

InvalidCombinationOfModifiers() public static method

public static InvalidCombinationOfModifiers ( Node node, IEntity member, string modifiers ) : CompilerError
node Node
member IEntity
modifiers string
return CompilerError

InvalidDeclarationType() public static method

public static InvalidDeclarationType ( Node node, IType type ) : CompilerError
node Node
type IType
return CompilerError

InvalidDestructorModifier() public static method

public static InvalidDestructorModifier ( Node node ) : CompilerError
node Node
return CompilerError

InvalidEntryPoint() public static method

public static InvalidEntryPoint ( Node node ) : CompilerError
node Node
return CompilerError

InvalidExceptArgument() public static method

public static InvalidExceptArgument ( Node node, IType exceptionType ) : CompilerError
node Node
exceptionType IType
return CompilerError

InvalidExpressionType() public static method

public static InvalidExpressionType ( Node node, IType type ) : CompilerError
node Node
type IType
return CompilerError

InvalidExtensionDefinition() public static method

public static InvalidExtensionDefinition ( Node node ) : CompilerError
node Node
return CompilerError

InvalidFieldType() public static method

public static InvalidFieldType ( Node node, IType typeName ) : CompilerError
node Node
typeName IType
return CompilerError

InvalidGeneratorReturnType() public static method

public static InvalidGeneratorReturnType ( Node node, IType type ) : CompilerError
node Node
type IType
return CompilerError

InvalidGenericParameterType() public static method

public static InvalidGenericParameterType ( Node node, IType type ) : CompilerError
node Node
type IType
return CompilerError

InvalidInterfaceForInterfaceMember() public static method

public static InvalidInterfaceForInterfaceMember ( Node node, string value ) : CompilerError
node Node
value string
return CompilerError

InvalidIteratorType() public static method

public static InvalidIteratorType ( Node node, IType type ) : CompilerError
node Node
type IType
return CompilerError

InvalidLen() public static method

public static InvalidLen ( Node node, IType typeName ) : CompilerError
node Node
typeName IType
return CompilerError

InvalidLockMacroArguments() public static method

public static InvalidLockMacroArguments ( Node node ) : CompilerError
node Node
return CompilerError

InvalidMacro() public static method

public static InvalidMacro ( Node node, IType type ) : CompilerError
node Node
type IType
return CompilerError

InvalidName() public static method

public static InvalidName ( Node node, string name ) : CompilerError
node Node
name string
return CompilerError

InvalidNamespace() public static method

public static InvalidNamespace ( Import import ) : CompilerError
import Boo.Lang.Compiler.Ast.Import
return CompilerError

InvalidNode() public static method

public static InvalidNode ( Node node ) : CompilerError
node Node
return CompilerError

InvalidNodeForAttribute() public static method

public static InvalidNodeForAttribute ( Node node, string attributeName, string expectedNodeTypes ) : CompilerError
node Node
attributeName string
expectedNodeTypes string
return CompilerError

InvalidOperatorForType() public static method

public static InvalidOperatorForType ( Node node, string operatorName, IType typeName ) : CompilerError
node Node
operatorName string
typeName IType
return CompilerError

InvalidOperatorForTypes() public static method

public static InvalidOperatorForTypes ( Node node, string operatorName, IType lhs, IType rhs ) : CompilerError
node Node
operatorName string
lhs IType
rhs IType
return CompilerError

InvalidOverrideReturnType() public static method

public static InvalidOverrideReturnType ( Node node, IMethod method, IType expectedReturnType, IType actualReturnType ) : CompilerError
node Node
method IMethod
expectedReturnType IType
actualReturnType IType
return CompilerError

InvalidParameterType() public static method

public static InvalidParameterType ( Node node, IType typeName ) : CompilerError
node Node
typeName IType
return CompilerError

InvalidRaiseArgument() public static method

public static InvalidRaiseArgument ( Node node, IType typeName ) : CompilerError
node Node
typeName IType
return CompilerError

InvalidRegexOption() public static method

public static InvalidRegexOption ( RELiteralExpression node, char option ) : CompilerError
node Boo.Lang.Compiler.Ast.RELiteralExpression
option char
return CompilerError

InvalidSuper() public static method

public static InvalidSuper ( Node node ) : CompilerError
node Node
return CompilerError

InvalidSwitch() public static method

public static InvalidSwitch ( Node node ) : CompilerError
node Node
return CompilerError

InvalidTryStatement() public static method

public static InvalidTryStatement ( Node node ) : CompilerError
node Node
return CompilerError

InvalidTypeConstraint() public static method

public static InvalidTypeConstraint ( GenericParameterDeclaration gpd, TypeReference type ) : CompilerError
gpd GenericParameterDeclaration
type TypeReference
return CompilerError

InvalidTypeForExplicitMember() public static method

public static InvalidTypeForExplicitMember ( Node node, IType type ) : CompilerError
node Node
type IType
return CompilerError

InvalidTypeof() public static method

public static InvalidTypeof ( Node node ) : CompilerError
node Node
return CompilerError

IsaArgument() public static method

public static IsaArgument ( Node node ) : CompilerError
node Node
return CompilerError

LValueExpected() public static method

public static LValueExpected ( Node node ) : CompilerError
node Node
return CompilerError

LabelAlreadyDefined() public static method

public static LabelAlreadyDefined ( Node node, IMethod method, string label ) : CompilerError
node Node
method IMethod
label string
return CompilerError

LocalAlreadyExists() public static method

public static LocalAlreadyExists ( Node node, string name ) : CompilerError
node Node
name string
return CompilerError

MacroExpansionError() public static method

public static MacroExpansionError ( Node node ) : CompilerError
node Node
return CompilerError

MacroExpansionError() public static method

public static MacroExpansionError ( Node node, Exception error ) : CompilerError
node Node
error Exception
return CompilerError

MemberNameConflict() public static method

public static MemberNameConflict ( Node node, IType declaringType, string memberName ) : CompilerError
node Node
declaringType IType
memberName string
return CompilerError

MemberNotFound() public static method

public static MemberNotFound ( MemberReferenceExpression node, INamespace @namespace, string suggestion ) : CompilerError
node MemberReferenceExpression
@namespace INamespace
suggestion string
return CompilerError

MemberNotFound() public static method

public static MemberNotFound ( Node node, string memberName, INamespace @namespace, string suggestion ) : CompilerError
node Node
memberName string
@namespace INamespace
suggestion string
return CompilerError

MethodArgumentCount() public static method

public static MethodArgumentCount ( Node node, string name, int count ) : CompilerError
node Node
name string
count int
return CompilerError

MethodIsNotOverride() public static method

public static MethodIsNotOverride ( Node node, IMethod method ) : CompilerError
node Node
method IMethod
return CompilerError

MethodReferenceExpected() public static method

public static MethodReferenceExpected ( Node node ) : CompilerError
node Node
return CompilerError

MethodSignature() public static method

public static MethodSignature ( Node node, IEntity expectedSignature, string actualSignature ) : CompilerError
node Node
expectedSignature IEntity
actualSignature string
return CompilerError

MissingConstructor() public static method

public static MissingConstructor ( Exception error, Node node, Type type, object parameters ) : CompilerError
error Exception
node Node
type Type
parameters object
return CompilerError

MoreThanOneEntryPoint() public static method

public static MoreThanOneEntryPoint ( Method method ) : CompilerError
method Method
return CompilerError

MultipleAttributeUsage() public static method

public static MultipleAttributeUsage ( Node node, Type attrType ) : CompilerError
node Node
attrType Type
return CompilerError

MultipleBaseTypeConstraints() public static method

public static MultipleBaseTypeConstraints ( GenericParameterDeclaration gpd, TypeReference type, TypeReference other ) : CompilerError
gpd GenericParameterDeclaration
type TypeReference
other TypeReference
return CompilerError

NameNotType() public static method

public static NameNotType ( Node node, string typeName, IEntity whatItIs, string suggestion ) : CompilerError
node Node
typeName string
whatItIs IEntity
suggestion string
return CompilerError

NamedArgumentsNotAllowed() public static method

public static NamedArgumentsNotAllowed ( Node node ) : CompilerError
node Node
return CompilerError

NamedParameterMustBeIdentifier() public static method

public static NamedParameterMustBeIdentifier ( ExpressionPair pair ) : CompilerError
pair ExpressionPair
return CompilerError

NamespaceAlreadyContainsMember() public static method

public static NamespaceAlreadyContainsMember ( Node node, string container, string member ) : CompilerError
node Node
container string
member string
return CompilerError

NamespaceIsNotAnExpression() public static method

public static NamespaceIsNotAnExpression ( Node node, string name ) : CompilerError
node Node
name string
return CompilerError

NestedTypeCannotExtendEnclosingType() public static method

public static NestedTypeCannotExtendEnclosingType ( Node node, IType nestedType, IType enclosingType ) : CompilerError
node Node
nestedType IType
enclosingType IType
return CompilerError

NoApropriateConstructorFound() public static method

public static NoApropriateConstructorFound ( Node node, IType typeName, string signature ) : CompilerError
node Node
typeName IType
signature string
return CompilerError

NoApropriateOverloadFound() public static method

public static NoApropriateOverloadFound ( Node node, string signature, string memberName ) : CompilerError
node Node
signature string
memberName string
return CompilerError

NoEnclosingLoop() public static method

public static NoEnclosingLoop ( Node node ) : CompilerError
node Node
return CompilerError

NoEntryPoint() public static method

public static NoEntryPoint ( ) : CompilerError
return CompilerError

NoMethodToOverride() public static method

public static NoMethodToOverride ( Node node, IMethod signature, bool incompatibleSignature ) : CompilerError
node Node
signature IMethod
incompatibleSignature bool
return CompilerError

NoMethodToOverride() public static method

public static NoMethodToOverride ( Node node, IMethod signature, string suggestion ) : CompilerError
node Node
signature IMethod
suggestion string
return CompilerError

NoSuchLabel() public static method

public static NoSuchLabel ( Node node, string label ) : CompilerError
node Node
label string
return CompilerError

NotAGenericDefinition() public static method

public static NotAGenericDefinition ( Node node, string name ) : CompilerError
node Node
name string
return CompilerError

NotAMemberOfExplicitInterface() public static method

public static NotAMemberOfExplicitInterface ( TypeMember member, IType type ) : CompilerError
member TypeMember
type IType
return CompilerError

NotANamespace() public static method

public static NotANamespace ( Node node, IEntity entity ) : CompilerError
node Node
entity IEntity
return CompilerError

NotAPublicFieldOrProperty() public static method

public static NotAPublicFieldOrProperty ( Node node, string name, IType type ) : CompilerError
node Node
name string
type IType
return CompilerError

NotImplemented() public static method

public static NotImplemented ( Node node, string message ) : CompilerError
node Node
message string
return CompilerError

Obsolete() public static method

public static Obsolete ( Node node, IMember member, string message ) : CompilerError
node Node
member IMember
message string
return CompilerError

OperatorCantBeUsedWithValueType() public static method

public static OperatorCantBeUsedWithValueType ( Node node, string operatorName, IType typeName ) : CompilerError
node Node
operatorName string
typeName IType
return CompilerError

PointerIncompatibleType() public static method

public static PointerIncompatibleType ( Node node, IType type ) : CompilerError
node Node
type IType
return CompilerError

PropertyIsReadOnly() public static method

public static PropertyIsReadOnly ( Node node, IProperty property ) : CompilerError
node Node
property IProperty
return CompilerError

PropertyIsWriteOnly() public static method

public static PropertyIsWriteOnly ( Node node, IEntity property ) : CompilerError
node Node
property IEntity
return CompilerError

PropertyRequiresParameters() public static method

public static PropertyRequiresParameters ( Node node, IEntity name ) : CompilerError
node Node
name IEntity
return CompilerError

ReRaiseOutsideExceptionHandler() public static method

public static ReRaiseOutsideExceptionHandler ( Node node ) : CompilerError
node Node
return CompilerError

RefArgTakesLValue() public static method

public static RefArgTakesLValue ( Node node ) : CompilerError
node Node
return CompilerError

RuntimeMethodBodyMustBeEmpty() public static method

public static RuntimeMethodBodyMustBeEmpty ( Node node, IMethod method ) : CompilerError
node Node
method IMethod
return CompilerError

SelfIsNotValidInStaticMember() public static method

public static SelfIsNotValidInStaticMember ( Node node ) : CompilerError
node Node
return CompilerError

SelfOutsideMethod() public static method

public static SelfOutsideMethod ( Node node ) : CompilerError
node Node
return CompilerError

StaticConstructorCannotDeclareParameters() public static method

public static StaticConstructorCannotDeclareParameters ( Node node ) : CompilerError
node Node
return CompilerError

StaticConstructorMustBePrivate() public static method

public static StaticConstructorMustBePrivate ( Node node ) : CompilerError
node Node
return CompilerError

StepExecutionError() public static method

public static StepExecutionError ( Exception error, ICompilerStep step ) : CompilerError
error Exception
step ICompilerStep
return CompilerError

StructAndClassConstraintsConflict() public static method

public static StructAndClassConstraintsConflict ( GenericParameterDeclaration gpd ) : CompilerError
gpd GenericParameterDeclaration
return CompilerError

StructAndConstructorConstraintsConflict() public static method

public static StructAndConstructorConstraintsConflict ( GenericParameterDeclaration gpd ) : CompilerError
gpd GenericParameterDeclaration
return CompilerError

ToAssemblyQualifiedNameList() public static method

public static ToAssemblyQualifiedNameList ( List types ) : string
types List
return string

ToNameList() public static method

public static ToNameList ( System members ) : string
members System
return string

ToStringList() public static method

public static ToStringList ( System names ) : string
names System
return string

TypeConstraintConflictsWithSpecialConstraint() public static method

public static TypeConstraintConflictsWithSpecialConstraint ( GenericParameterDeclaration gpd, TypeReference type, string constraint ) : CompilerError
gpd GenericParameterDeclaration
type TypeReference
constraint string
return CompilerError

TypeDoesNotSupportSlicing() public static method

public static TypeDoesNotSupportSlicing ( Node node, IType fullName ) : CompilerError
node Node
fullName IType
return CompilerError

TypeExpected() public static method

public static TypeExpected ( Node node ) : CompilerError
node Node
return CompilerError

TypeIsNotCallable() public static method

public static TypeIsNotCallable ( Node node, IType name ) : CompilerError
node Node
name IType
return CompilerError

TypeMustImplementICompilerStep() public static method

public static TypeMustImplementICompilerStep ( string typeName ) : CompilerError
typeName string
return CompilerError

TypeNotAttribute() public static method

public static TypeNotAttribute ( Node node, IType attributeType ) : CompilerError
node Node
attributeType IType
return CompilerError

UnableToLoadAssembly() public static method

public static UnableToLoadAssembly ( Node node, string name, Exception error ) : CompilerError
node Node
name string
error Exception
return CompilerError

UnaccessibleMember() public static method

public static UnaccessibleMember ( Node node, IAccessibleMember name ) : CompilerError
node Node
name IAccessibleMember
return CompilerError

UnexpectedToken() public static method

public static UnexpectedToken ( LexicalInfo lexicalInfo, Exception error, string token ) : CompilerError
lexicalInfo LexicalInfo
error Exception
token string
return CompilerError

UnknownAttribute() public static method

public static UnknownAttribute ( Node node, string attributeName, string suggestion ) : CompilerError
node Node
attributeName string
suggestion string
return CompilerError

UnknownClassMacroWithFieldHint() public static method

public static UnknownClassMacroWithFieldHint ( MacroStatement node, string name ) : CompilerError
node MacroStatement
name string
return CompilerError

UnknownIdentifier() public static method

public static UnknownIdentifier ( Node node, string name ) : CompilerError
node Node
name string
return CompilerError

UnknownMacro() public static method

public static UnknownMacro ( Node node, string name ) : CompilerError
node Node
name string
return CompilerError

UnresolvedDependency() public static method

public static UnresolvedDependency ( Node node, IEntity source, IEntity target ) : CompilerError
node Node
source IEntity
target IEntity
return CompilerError

ValueTypeCantHaveAbstractMember() public static method

public static ValueTypeCantHaveAbstractMember ( Node node, IType type, IMember abstractMember ) : CompilerError
node Node
type IType
abstractMember IMember
return CompilerError

ValueTypeFieldsCannotHaveInitializers() public static method

public static ValueTypeFieldsCannotHaveInitializers ( Node node ) : CompilerError
node Node
return CompilerError

ValueTypeParameterCannotUseDefaultAttribute() public static method

public static ValueTypeParameterCannotUseDefaultAttribute ( Node node, string parameter ) : CompilerError
node Node
parameter string
return CompilerError

ValueTypesCannotDeclareParameterlessConstructors() public static method

public static ValueTypesCannotDeclareParameterlessConstructors ( Node node ) : CompilerError
node Node
return CompilerError

YieldInsideConstructor() public static method

public static YieldInsideConstructor ( Node node ) : CompilerError
node Node
return CompilerError

YieldInsideTryExceptOrEnsureBlock() public static method

public static YieldInsideTryExceptOrEnsureBlock ( Node node ) : CompilerError
node Node
return CompilerError

YieldTypeDoesNotMatchReturnType() public static method

public static YieldTypeDoesNotMatchReturnType ( Node node, IType yieldType, IType returnType ) : CompilerError
node Node
yieldType IType
returnType IType
return CompilerError