private void CompileAndAddAutoPropertyMethodsToType(JsClass jsClass, IProperty property, PropertyScriptSemantics options, string backingFieldName) { if (options.GetMethod != null && options.GetMethod.GenerateCode) { var compiled = CreateMethodCompiler().CompileAutoPropertyGetter(property, options, backingFieldName); AddCompiledMethodToType(jsClass, property.Getter, options.GetMethod, new JsMethod(property.Getter, options.GetMethod.Name, new string[0], compiled)); } if (options.SetMethod != null && options.SetMethod.GenerateCode) { var compiled = CreateMethodCompiler().CompileAutoPropertySetter(property, options, backingFieldName); AddCompiledMethodToType(jsClass, property.Setter, options.SetMethod, new JsMethod(property.Setter, options.SetMethod.Name, new string[0], compiled)); } }
void IMetadataImporter.SetPropertySemantics(IProperty property, PropertyScriptSemantics semantics) { }
public virtual void SetPropertySemantics(IProperty property, PropertyScriptSemantics semantics) { _prev.SetPropertySemantics(property, semantics); }
public void SetPropertySemantics(IProperty property, PropertyScriptSemantics semantics) { _propertySemantics[property] = semantics; _ignoredMembers.Add(property); }