public static XamlParseError MismatchedVersionSDKType(ITextLocation lineInformation, IType childType, FrameworkName frameworkName) { string str = (string)(frameworkName.Identifier == "Silverlight" ? (object)frameworkName.Identifier : (object)"Windows Presentation Framework") + (object)" " + (string)(object)frameworkName.Version.Major; string messageFormat = string.Format((IFormatProvider)CultureInfo.CurrentCulture, StringTable.MismatchedVersionSDKType, (object)childType.Name, (object)childType.RuntimeAssembly.Name, (object)str); return(XamlParseErrors.NewParseError(XamlErrorSeverity.Error, XamlErrorCode.MismatchedType, lineInformation, messageFormat)); }
public static XamlParseError MemberNotRoutedEvent(ITextLocation lineInformation, IMemberId memberId) { return(XamlParseErrors.NewParseError(XamlErrorSeverity.Error, XamlErrorCode.MemberNotRoutedEvent, lineInformation, StringTable.ParserMemberNotRoutedEvent, memberId.Name)); }
public static XamlParseError PropertyIsNotWritable(ITextLocation lineInformation, IPropertyId propertyKey) { return(XamlParseErrors.NewParseError(XamlErrorSeverity.Error, XamlErrorCode.PropertyIsNotWritable, lineInformation, StringTable.ParserPropertyIsNotWritable, propertyKey.Name)); }
public static XamlParseError NestedPropertiesNotSupported(ITextLocation lineInformation, string propertyName) { return(XamlParseErrors.NewParseError(XamlErrorSeverity.Error, XamlErrorCode.NestedPropertiesNotSupported, lineInformation, StringTable.ParserNestedPropertiesNotSupported, propertyName)); }
public static XamlParseError InaccessibleType(ITextLocation lineInformation, string typeName) { return(XamlParseErrors.NewParseError(XamlErrorSeverity.Error, XamlErrorCode.InaccessibleType, lineInformation, StringTable.ParserInaccessibleType, typeName)); }
public static XamlParseError UnrecognizedPlatformTypeName(ITextLocation lineInformation, bool isSilverlightProject, string typeName) { return(XamlParseErrors.NewParseError(XamlErrorSeverity.Error, XamlErrorCode.UnrecognizedTypeName, lineInformation, StringTable.ParserUnrecognizedPlatformTypeName, isSilverlightProject ? StringTable.ParserSilverlightPlatformName : StringTable.ParserWPFPlatformName, typeName)); }
public static XamlParseError InvalidClassName(ITextLocation lineInformation, string typeName) { return(XamlParseErrors.NewParseError(XamlErrorSeverity.Warning, XamlErrorCode.InvalidClassName, lineInformation, StringTable.ParserInvalidClassName, typeName)); }
public static XamlParseError MultipleRootElements(ITextLocation lineInformation) { return(XamlParseErrors.NewParseError(XamlErrorSeverity.Error, XamlErrorCode.MultipleRootElements, lineInformation, StringTable.ParserMultipleRootElements)); }
public static XamlParseError UnexpectedPositionalArgument(ITextLocation lineInformation, string argumentName) { return(XamlParseErrors.NewParseError(XamlErrorSeverity.Error, XamlErrorCode.UnexpectedPositionalArgument, lineInformation, StringTable.ParserUnexpectedPositionalArgument, argumentName)); }
public static XamlParseError MissingArgumentName(ITextLocation lineInformation) { return(XamlParseErrors.NewParseError(XamlErrorSeverity.Error, XamlErrorCode.MissingArgumentName, lineInformation, StringTable.ParserMissingArgumentName)); }
public static XamlParseError ParentTypeDoesNotSupportChildren(ITextLocation lineInformation, ITypeId parentType) { return(XamlParseErrors.NewParseError(XamlErrorSeverity.Error, XamlErrorCode.ParentTypeDoesNotSupportChildren, lineInformation, StringTable.ParserParentTypeDoesNotSupportChildren, parentType.Name)); }
public static XamlParseError NoRootElement(ITextLocation lineInformation) { return(XamlParseErrors.NewParseError(XamlErrorSeverity.Error, XamlErrorCode.NoRootElement, lineInformation, StringTable.ParserNoRootElement)); }
public static XamlParseError MissingDictionaryKey(ITextLocation lineInformation) { return(XamlParseErrors.NewParseError(XamlErrorSeverity.Error, XamlErrorCode.MissingDictionaryKey, lineInformation, StringTable.ParserMissingDictionaryKey)); }
public static XamlParseError AttachedPropertyDoesNotApply(ITextLocation lineInformation, IProperty propertyKey) { return(XamlParseErrors.NewParseError(XamlErrorSeverity.Error, XamlErrorCode.AttachedPropertyDoesNotApply, lineInformation, StringTable.ParserAttachedPropertyDoesNotApply, propertyKey.Name, propertyKey.TargetType.Name)); }
public static XamlParseError TypeInitializationException(ITextLocation lineInformation, ITypeId typeId, string message) { return(XamlParseErrors.NewParseError(XamlErrorSeverity.Error, XamlErrorCode.TypeInitializationException, lineInformation, StringTable.ParserTypeInitializationException, typeId.Name, message)); }
public static XamlParseError UnknownError(ITextLocation lineInformation) { return(XamlParseErrors.NewParseError(XamlErrorSeverity.Error, XamlErrorCode.UnknownError, lineInformation, StringTable.ParserUnknownError)); }
public static XamlParseError InvalidMarkupExtensionArguments(ITextLocation lineInformation, string markupExtensionName) { return(XamlParseErrors.NewParseError(XamlErrorSeverity.Error, XamlErrorCode.InvalidMarkupExtensionArguments, lineInformation, StringTable.ParserInvalidMarkupExtensionArguments, markupExtensionName)); }
public static XamlParseError UnexpectedCharacter(ITextLocation lineInformation, char c) { return(XamlParseErrors.NewParseError(XamlErrorSeverity.Error, XamlErrorCode.UnexpectedCharacter, lineInformation, StringTable.ParserUnexpectedCharacter, c.ToString())); }
public static XamlParseError NoDefaultNamespace(ITextLocation lineInformation) { return(XamlParseErrors.NewParseError(XamlErrorSeverity.Error, XamlErrorCode.NoDefaultNamespace, lineInformation, StringTable.ParserNoDefaultNamespace)); }
public static XamlParseError InvalidPropertyPathSyntax(ITextLocation lineInformation, string propertyPath) { return(XamlParseErrors.NewParseError(XamlErrorSeverity.Error, XamlErrorCode.InvalidPropertyPathSyntax, lineInformation, StringTable.ParserInvalidPropertyPathSyntax, propertyPath)); }
public static XamlParseError DuplicateXmlnsPrefix(ITextLocation lineInformation, XmlnsPrefix prefix) { return(XamlParseErrors.NewParseError(XamlErrorSeverity.Error, XamlErrorCode.DuplicateXmlnsPrefix, lineInformation, StringTable.ParserDuplicateXmlnsPrefix, prefix.Value)); }
public static XamlParseError InvalidClrNamespaceUri(ITextLocation lineInformation, string uriValue) { return(XamlParseErrors.NewParseError(XamlErrorSeverity.Error, XamlErrorCode.InvalidClrNamespaceUri, lineInformation, StringTable.ParserInvalidClrNamespaceUri, uriValue)); }
public static XamlParseError UnrecognizedTypeName(ITextLocation lineInformation, XmlNamespace xmlNamespace, string typeName) { return(XamlParseErrors.NewParseError(XamlErrorSeverity.Error, XamlErrorCode.UnrecognizedTypeName, lineInformation, StringTable.ParserUnrecognizedTypeName, xmlNamespace.Value, typeName)); }
public static XamlParseError InvalidXmlSpace(ITextLocation lineInformation, string value) { return(XamlParseErrors.NewParseError(XamlErrorSeverity.Error, XamlErrorCode.InvalidXmlSpace, lineInformation, StringTable.ParserInvalidXmlSpace, value)); }
public static XamlParseError InnerTypesNotSupported(ITextLocation lineInformation, string typeName) { return(XamlParseErrors.NewParseError(XamlErrorSeverity.Error, XamlErrorCode.InnerTypesNotSupported, lineInformation, StringTable.ParserInnerTypesNotSupported, typeName)); }
public static XamlParseError UnexpectedRootType(ITextLocation lineInformation, ITypeId expectedType) { return(XamlParseErrors.NewParseError(XamlErrorSeverity.Error, XamlErrorCode.UnexpectedRootType, lineInformation, StringTable.ParserUnexpectedRootType, expectedType.Name)); }
public static XamlParseError UnrecognizedOrInaccessibleMember(ITextLocation lineInformation, string memberName) { return(XamlParseErrors.NewParseError(XamlErrorSeverity.Error, XamlErrorCode.UnrecognizedOrInaccessibleMember, lineInformation, StringTable.ParserUnrecognizedOrInaccessibleMember, memberName)); }
public static XamlParseError CDataNotSupported(ITextLocation lineInformation) { return(XamlParseErrors.NewParseError(XamlErrorSeverity.Error, XamlErrorCode.CDataNotSupported, lineInformation, StringTable.ParserCDataNotSupported)); }
public static XamlParseError CannotDetermineMemberTargetType(ITextLocation lineInformation, string memberName) { return(XamlParseErrors.NewParseError(XamlErrorSeverity.Error, XamlErrorCode.CannotDetermineMemberTargetType, lineInformation, StringTable.ParserCannotDetermineMemberTargetType, memberName)); }
public static XamlParseError MemberNotDependencyProperty(ITextLocation lineInformation, IMemberId memberId) { return(XamlParseErrors.NewParseError(XamlErrorSeverity.Error, XamlErrorCode.MemberNotDependencyProperty, lineInformation, StringTable.ParserMemberNotDependencyProperty, memberId.Name)); }