protected virtual void GetCodeType() { if (_canInferType && (_contextHandler.GetCodeType() == null || _contextHandler.GetCodeType().Infer) && ComponentCollection.IsComponent <InitialValueComponent>()) { _varInfo.InferType = true; } else { CodeType type; if (_contextHandler.GetCodeType() == null) { type = _parseInfo.TranslateInfo.Types.Any(); } else { // Get the type. type = TypeFromContext.GetCodeTypeFromContext( _parseInfo, _scope, _contextHandler.GetCodeType() ); } ApplyCodeType(type); } }
protected virtual void GetCodeType() { if (_contextHandler.GetCodeType() == null) { return; } // Get the type. CodeType type = CodeType.GetCodeTypeFromContext(_parseInfo, _contextHandler.GetCodeType()); ApplyCodeType(type); }
protected virtual void GetCodeType() { if (_contextHandler.GetCodeType() == null) { return; } // Get the type. CodeType type = CodeType.GetCodeTypeFromContext(_parseInfo, _contextHandler.GetCodeType()); if (type != null && type.IsConstant()) { _varInfo.IsWorkshopReference = true; } _varInfo.Type = type; }
protected virtual void GetCodeType() { // Get the type. CodeType type = CodeType.GetCodeTypeFromContext(_parseInfo, _contextHandler.GetCodeType()); if (type != null && type.Constant() != TypeSettable.Normal) { _varInfo.IsWorkshopReference = true; } _varInfo.Type = type; }